[Gelöst] Probleme Energiemessung Shelly 2.5

Begonnen von jangofritz, 08 Januar 2022, 13:41:41

Vorheriges Thema - Nächstes Thema

jangofritz

Hallo und ein schönes Wochenende,

Ich habe ein kleines Problem mit oben genannten Shelly.
Die Leistung wird mir im entsprechenden Reading angezeigt, die Energiemenge nicht.
Das ganze hat mal funktioniert.
Die Firmware ist auf neuestem Stand.

Ich hänge mal das list an:

Internals:
CID        shellyswitch25_3C6105E5719F
   DEF        shellyswitch25_3C6105E5719F
   DEVICETOPIC MQTT2_shellyswitch25_3C6105E5719F
   FUUID      61a3b1fb-f33f-6c9a-2a64-2d589e92e76720b4
   IODev      MQTT2
   LASTInputDev MQTT2
   MQTT2_CONN MQTT2_192.168.178.xxx
   MQTT2_MSGCNT 208
   MQTT2_TIME 2022-01-08 13:32:59
   MSGCNT     208
   NAME       MQTT2_shellyswitch25_3C6105E5719F
   NR         161
   STATE      on
   TYPE       MQTT2_DEVICE
   READINGS:
     2022-01-08 13:22:23   IODev           MQTT2
     2022-01-08 13:22:33   actions_stats_skipped 0
     2022-01-08 13:22:33   cfg_changed_cnt 4
     2022-01-08 13:22:33   cloud_connected false
     2022-01-08 13:22:33   cloud_enabled   false
     2022-01-08 13:22:33   event           
     2022-01-08 13:22:33   event_cnt       0
     2022-01-08 13:22:33   fs_free         146082
     2022-01-08 13:22:33   fs_size         233681
     2022-01-08 13:22:33   fw_ver          20211109-125214/v1.11.7-g682a0db
     2022-01-08 13:22:33   has_update      false
     2022-01-08 13:22:33   id              shellyswitch25-3C6105E5719F
     2022-01-08 13:32:40   input0          0
     2022-01-08 13:22:33   inputs_1_event 
     2022-01-08 13:22:33   inputs_1_event_cnt 0
     2022-01-08 13:22:33   inputs_1_input  0
     2022-01-08 13:22:33   inputs_2_event 
     2022-01-08 13:22:33   inputs_2_event_cnt 0
     2022-01-08 13:22:33   inputs_2_input  0
     2022-01-08 13:22:33   ip              192.168.178.54
     2022-01-08 13:32:50   loadState       on
     2022-01-08 13:22:33   mac             3C6105E5719F
     2022-01-08 13:22:33   meters_1_counters_1 0.000
     2022-01-08 13:22:33   meters_1_counters_2 0.000
     2022-01-08 13:22:33   meters_1_counters_3 0.000
     2022-01-08 13:22:33   meters_1_is_valid true
     2022-01-08 13:22:33   meters_1_overpower 0.00
     2022-01-08 13:22:33   meters_1_power  553.25
     2022-01-08 13:22:33   meters_1_timestamp 0
     2022-01-08 13:22:33   meters_1_total  0
     2022-01-08 13:22:33   meters_2_counters_1 0.000
     2022-01-08 13:22:33   meters_2_counters_2 0.000
     2022-01-08 13:22:33   meters_2_counters_3 0.000
     2022-01-08 13:22:33   meters_2_is_valid true
     2022-01-08 13:22:33   meters_2_overpower 0.00
     2022-01-08 13:22:33   meters_2_power  0.00
     2022-01-08 13:22:33   meters_2_timestamp 0
     2022-01-08 13:22:33   meters_2_total  0
     2022-01-08 13:22:33   mode            relay
     2022-01-08 13:22:33   model           SHSW-25
     2022-01-08 13:22:33   mqtt_connected  true
     2022-01-08 13:22:33   new_fw          false
     2022-01-08 13:22:33   online          true
     2022-01-08 13:32:40   overtemperature 0
     2022-01-08 13:22:33   ram_free        36524
     2022-01-08 13:22:33   ram_total       49944
     2022-01-08 13:32:50   relay0          on
     2022-01-08 13:32:59   relay_0_energy  0
     2022-01-08 13:32:59   relay_0_energy_total 0
     2022-01-08 13:32:59   relay_0_kWh     0.00
     2022-01-08 13:32:59   relay_0_power   338.77
     2022-01-08 13:22:33   relays_1_has_timer false
     2022-01-08 13:22:33   relays_1_is_valid true
     2022-01-08 13:22:33   relays_1_ison   true
     2022-01-08 13:22:33   relays_1_overpower false
     2022-01-08 13:22:33   relays_1_overtemperature false
     2022-01-08 13:22:33   relays_1_source mqtt
     2022-01-08 13:22:33   relays_1_timer_duration 0
     2022-01-08 13:22:33   relays_1_timer_remaining 0
     2022-01-08 13:22:33   relays_1_timer_started 0
     2022-01-08 13:22:33   relays_2_has_timer false
     2022-01-08 13:22:33   relays_2_is_valid true
     2022-01-08 13:22:33   relays_2_ison   false
     2022-01-08 13:22:33   relays_2_overpower false
     2022-01-08 13:22:33   relays_2_overtemperature false
     2022-01-08 13:22:33   relays_2_source mqtt
     2022-01-08 13:22:33   relays_2_timer_duration 0
     2022-01-08 13:22:33   relays_2_timer_remaining 0
     2022-01-08 13:22:33   relays_2_timer_started 0
     2022-01-08 13:22:33   serial          111
     2022-01-08 13:32:50   state           on
     2022-01-08 13:32:40   temperature     32.12
     2022-01-08 13:32:40   temperature_f   89.82
     2022-01-08 13:32:40   temperature_status Normal
     2022-01-08 13:22:33   time           
     2022-01-08 13:22:33   tmp_is_valid    true
     2022-01-08 13:22:33   tmp_tC          34.58
     2022-01-08 13:22:33   tmp_tF          94.24
     2022-01-08 13:22:33   unixtime        0
     2022-01-08 13:22:33   update_has_update false
     2022-01-08 13:22:33   update_new_version
     2022-01-08 13:22:33   update_old_version 20211109-125214/v1.11.7-g682a0db
     2022-01-08 13:22:33   update_status   unknown
     2022-01-08 13:22:33   uptime          166857
     2022-01-08 13:32:40   voltage         234.73
     2022-01-08 13:22:33   wifi_sta_connected true
     2022-01-08 13:22:33   wifi_sta_ip     192.168.178.xxx
     2022-01-08 13:22:33   wifi_sta_rssi   -79
     2022-01-08 13:22:33   wifi_sta_ssid   Leckxxx
Attributes:
   alias      Parkplatz Steckdose
   comment    Channel 1 for MQTT2_shellyswitch25_3C6105E5719F, see also MQTT2_shellyswitch25_3C6105E5719F_CH2
   devStateIcon {my $onl = ReadingsVal($name,"online","false") eq "false"?"10px-kreis-rot" : ReadingsVal($name,"new_fw","false") eq "true" ? "10px-kreis-gelb" : "10px-kreis-gruen"; my $light = ReadingsVal($name,"state","off"); my $cons = ReadingsVal($name,"relay_0_power","unknown"); my $total = ReadingsVal($name,"relay_0_kWh","unknown"); my $temp = ReadingsVal($name,"temperature","-100"); "<a href=\"http://".ReadingsVal($name,"ip","none")." \"target=\"_blank\">".FW_makeImage($onl)."</a> <a href=\"/fhem?cmd.dummy=set $name toggle&XHR=1\">".FW_makeImage($light)."</a><div>Verbrauch: $cons / Total: $total/ Temp: $temp °C</div>"}
   model      shelly25_split
   readingList shellies/shellyswitch25-3C6105E5719F/relay/0:.* state
  shellies/shellyswitch25-3C6105E5719F/relay/0:.* relay0
  shellies/shellyswitch25-3C6105E5719F/input/0:.* input0
  shellies/shellyswitch25-3C6105E5719F/online:.* online
  shellies/announce:.* { $EVENT =~ m,..id...shellyswitch25-3C6105E5719F...mac.*, ? json2nameValue($EVENT) : return }
  shellies/shellyswitch25-3C6105E5719F/announce:.* { json2nameValue($EVENT) }
  shellies/shellyswitch25-3C6105E5719F/relay/0/power:.* relay_0_power
  shellies/shellyswitch25-3C6105E5719F/relay/0/power:.* { my $compare = $EVTPART0 < 100 ? "off":"on"; ReadingsVal($NAME,"loadState","off") ne $compare ? { 'loadState' => $compare } : return }
  shellies/shellyswitch25-3C6105E5719F/temperature:.* temperature
  shellies/shellyswitch25-3C6105E5719F/temperature_f:.* temperature_f
  shellies/shellyswitch25-3C6105E5719F/input_event/0:.* { json2nameValue($EVENT) }
  shellies/shellyswitch25-3C6105E5719F/overtemperature:.* overtemperature
  shellies/shellyswitch25-3C6105E5719F/relay/0/energy:.* relay_0_energy
  shellies/shellyswitch25-3C6105E5719F/relay/0/energy:.* {'relay_0_kWh' => sprintf("%.2f",$EVENT/60/1000)}
  shellies/shellyswitch25-3C6105E5719F/longpush/0:.* longpush_0
shellyswitch25_3C6105E5719F:shellies/shellyswitch25-3C6105E5719F/info:.* { json2nameValue($EVENT) }
shellyswitch25_3C6105E5719F:shellies/shellyswitch25-3C6105E5719F/temperature_status:.* temperature_status
shellyswitch25_3C6105E5719F:shellies/shellyswitch25-3C6105E5719F/voltage:.* voltage
   room       30 Geräte,MQTT2_DEVICE
   setList    relay0:on,off,toggle shellies/shellyswitch25-3C6105E5719F/relay/0/command $EVTPART1
  toggle:noArg shellies/shellyswitch25-3C6105E5719F/relay/0/command toggle
  off:noArg shellies/shellyswitch25-3C6105E5719F/relay/0/command off
  on:noArg shellies/shellyswitch25-3C6105E5719F/relay/0/command on
  x_update:noArg shellies/shellyswitch25-3C6105E5719F/command update_fw
  x_mqttcom shellies/shellyswitch25-3C6105E5719F/command $EVTPART1
   setStateList on off toggle
   userReadings relay_0_energy_total:relay_0_energy:.* monotonic {ReadingsNum("$name","relay_0_energy",0)}
   webCmd     :


Ist nicht lebenswichtig, aber ich möchte noch mehr von den Dingern einbinden und schön wärs schon.

Danke J.
nanoCUL und 9 MAX! Thermostate. TabletUI und MAX!Scanner - ESP8266 als Aktor für die Zirkulationspumpe und zur Feuchte und Temperaturmessung - Sonoff TH16 als Aktor für Espressomaschine - Conbee + diverse THPs in Feuchträumen, sowie BWMs und Drucktaster

Otto123

Hi,

bitte formatiere das list mit Code tags https://forum.fhem.de/index.php/topic,71806.0.html

Du meinst weil relay_0_kWh     0.00 auf null steht?

Gruß Otto
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

jangofritz

Danke, ja!

Auch Energy und Energy_total zeigen keine Werte.
nanoCUL und 9 MAX! Thermostate. TabletUI und MAX!Scanner - ESP8266 als Aktor für die Zirkulationspumpe und zur Feuchte und Temperaturmessung - Sonoff TH16 als Aktor für Espressomaschine - Conbee + diverse THPs in Feuchträumen, sowie BWMs und Drucktaster

Hermann

Hallo
Das liegt höchst wahrscheinlich an der Uhrzeit.
Schau bitte mal direkt auf den Shelly ob er oben rechts die Zeit anzeigt.
Wenn nicht kann er keine Kwh errechnen weil er dafür die Zeit braucht.
den shelly so einrichten das er auch den ntp Server erreicht.
Sollte der ntp server eine fritbox sein besser die ip eintragen .. mit dem namen der Fritzbox hat bei mir jedenfalls nicht funtioniert.

mfg.
Hermann
Schöne Grüße aus dem Münsterland :-)
PI3+ Fritzbox , Homematic , FS20 , 1Wire , Shelly , EspXXXX , Duofern

jangofritz

Danke Hermann,

genauso ist/war es.

Gruß J.
nanoCUL und 9 MAX! Thermostate. TabletUI und MAX!Scanner - ESP8266 als Aktor für die Zirkulationspumpe und zur Feuchte und Temperaturmessung - Sonoff TH16 als Aktor für Espressomaschine - Conbee + diverse THPs in Feuchträumen, sowie BWMs und Drucktaster