Hallo Grüß euch
Also sicher will ich mit Kanonen auf Spatzen schießen 
Wie gesagt es stehen 2 Tiefkühler in der Garage und nun ist eine der beiden Doppelsteckdosen ausgefallen und durch Zufall haben wir es rechtzeitig bemerkt.
Das kommt wahrscheinlich auch nur alle 100 Jahre vor. Darum kam mir die Idee mit der Strommessung.
Sicher wenn ein Totalausfall ist, nützt mir das auch nix. Da muss dann Plan B her.
Ein Tablet mit Wertkarte (bereits vorhanden) welches bei Wegfall des WLANs eine SMS schickt. Tablet hängt in der Garage für die Poolsteuerung.
Wie gesagt ich habe gestern einen anderen Plug_s zurückgesetzt um neu zu starten.
Habe jetzt festgestellt dass ca. alle 30 Minuten der Wert relax_0_power mit ca 73 gefüllt wird. Diese KühlgefrierKobi ist ca 1/2 Jahr alt. Der Tiefkühlschrank - wesentlich älter - schreibt permanent werte zwischen 0.40 und 0.60.
Ja beide Plug_s haben natürlich bei Power on default Mode ON eingetragen.
mMn bräuchte ich jetzt eine Abfrage in FHEM ob innerhalb von ca. 2 Stunden ein Wert Größer 1 eingetragen wird.
Nur um ehrlich zu sein, da stehe ich mit meinen FHEM Kenntnissen im Moment an.
Ich glaube mich zu Erinnern, da gibt es Module dafür oder?
Gruß
Helmut
PS: nochmals ein List der beiden
KühlgefrierKombi (Problemkind). hier habe ich übrigens den Wert auf 1 gesetzt?
Internals: CID shellyplug_s_041778 DEF shellyplug_s_041778 DEVICETOPIC KuehlGefrierKombi FUUID 5db010a4-f33f-b033-fd19-fbc0b0064a8835dd IODev myBroker LASTInputDev myBroker MSGCNT 12096 NAME KuehlGefrierKombi NR 502 STATE on TYPE MQTT2_DEVICE myBroker_MSGCNT 12096 myBroker_TIME 2019-12-10 11:23:24 READINGS: 2019-12-09 18:35:46 fw_ver 20191127-095857/v1.5.6@0d769d69 2019-12-09 18:35:46 id shellyplug-s-041778 2019-12-09 18:35:46 ip 10.0.0.91 2019-12-10 11:23:24 loadState on 2019-12-09 18:35:46 mac 4C11AE041778 2019-12-09 18:35:46 new_fw false 2019-12-09 18:35:46 online true 2019-12-10 11:23:24 overtemperature 0 2019-12-10 11:20:54 price -0.04 2019-12-10 11:23:24 relay0 on 2019-12-10 11:23:24 relay_0_energy 8224 2019-12-10 11:23:24 relay_0_kWh 0.14 2019-12-10 11:23:24 relay_0_power 1.00 2019-12-10 11:23:24 state on 2019-12-10 11:23:24 temperature 19.35 2019-12-10 11:23:24 temperature_f 66.82 2019-12-10 11:20:54 time 00:10 2019-12-10 11:23:24 total_temp 0.14 2019-12-10 11:20:54 wash -0.12
Attributes: IODev myBroker comment To get appropriate loadState values: Change the default limit "100" in readingList to your needs. devStateIcon {my $onl = ReadingsVal($name,"online","false") eq "true"?"10px-kreis-gruen":"10px-kreis-rot";; 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>"} getList power:noArg shellies/shellyplug-s-041778/relay/power power model shelly1_w_energy_meassuring readingList shellies/shellyplug-s-041778/relay/0:.* state shellies/shellyplug-s-041778/relay/0:.* relay0 shellies/shellyplug-s-041778/input/0:.* input0 shellies/shellyplug-s-041778/online:.* online shellies/announce:.* { $EVENT =~ m,..id...shellyplug-s-041778...mac.*, ? json2nameValue($EVENT) : undef } shellies/shellyplug-s-041778/announce:.* { json2nameValue($EVENT) } shellies/shellyplug-s-041778/relay/0/power:.* relay_0_power shellies/shellyplug-s-041778/relay/0/power:.* { my $compare = $EVTPART0 < 1 ? "off":"on"; ReadingsVal($NAME,"loadState","off") ne $compare ? { 'loadState' => $compare } : undef } shellies/shellyplug-s-041778/temperature:.* temperature shellies/shellyplug-s-041778/overtemperature:.* overtemperature shellies/shellyplug-s-041778/relay/0/energy:.* relay_0_energy shellies/shellyplug-s-041778/relay/0/energy:.* {'relay_0_kWh' => sprintf("%.2f",$EVENT/60/1000)} shellies/shellyplug-s-041778/longpush/0:.* longpush_0
shellyplug_s_041778:shellies/shellyplug-s-041778/temperature_f:.* temperature_f room Favoriten,Garage,MQTT2_DEVICE setList relay0:on,off,toggle shellies/shellyplug-s-041778/relay/0/command $EVTPART1 off:noArg shellies/shellyplug-s-041778/relay/0/command off on:noArg shellies/shellyplug-s-041778/relay/0/command on x_update:noArg shellies/shellyplug-s-041778/command update_fw x_mqttcom shellies/shellyplug-s-041778/command $EVTPART1 userReadings total_temp:loadState:.on { ReadingsNum("$name","relay_0_kWh",0) },wash:loadState:.off { ReadingsNum("$name","total",0) - ReadingsNum("$name","total_temp",0) },price:loadState:.off {sprintf("%.2f",ReadingsNum("$name","wash",1)*ReadingsNum("kWh_Price","state",0.30))},time:loadState:.off {strftime("%H:%M", localtime(ReadingsAge("$name","total_temp",0)-3600))} webCmd :
und hier der Gefrierschrank:
Internals: CID shellyplug_s_268497 DEF shellyplug_s_268497 DEVICETOPIC Tiefkuehler FUUID 5decf781-f33f-b033-ffe1-e9b5216c82f00302 IODev myBroker LASTInputDev myBroker MSGCNT 12242 NAME Tiefkuehler NR 516 STATE on TYPE MQTT2_DEVICE myBroker_MSGCNT 12242 myBroker_TIME 2019-12-10 11:24:44 READINGS: 2019-12-09 18:35:45 fw_ver 20191127-095857/v1.5.6@0d769d69 2019-12-09 18:35:45 id shellyplug-s-268497 2019-12-09 18:35:45 ip 10.0.0.86 2019-12-10 10:54:05 loadState off 2019-12-09 18:35:45 mac 2CF432268497 2019-12-09 18:35:45 new_fw false 2019-12-09 18:35:45 online true 2019-12-10 11:24:44 overtemperature 0 2019-12-10 11:24:44 relay0 on 2019-12-10 11:24:44 relay_0_energy 22762 2019-12-10 11:24:44 relay_0_kWh 0.38 2019-12-10 11:24:44 relay_0_power 0.43 2019-12-10 11:24:44 state on 2019-12-10 11:24:44 temperature 19.43 2019-12-10 11:24:44 temperature_f 66.97
Attributes: IODev myBroker comment To get appropriate loadState values: Change the default limit "100" in readingList to your needs. devStateIcon {my $onl = ReadingsVal($name,"online","false") eq "true"?"10px-kreis-gruen":"10px-kreis-rot";; 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 shelly1_w_energy_meassuring readingList shellies/shellyplug-s-268497/relay/0:.* state shellies/shellyplug-s-268497/relay/0:.* relay0 shellies/shellyplug-s-268497/input/0:.* input0 shellies/shellyplug-s-268497/online:.* online shellies/announce:.* { $EVENT =~ m,..id...shellyplug-s-268497...mac.*, ? json2nameValue($EVENT) : undef } shellies/shellyplug-s-268497/announce:.* { json2nameValue($EVENT) } shellies/shellyplug-s-268497/relay/0/power:.* relay_0_power shellies/shellyplug-s-268497/relay/0/power:.* { my $compare = $EVTPART0 < 100 ? "off":"on"; ReadingsVal($NAME,"loadState","off") ne $compare ? { 'loadState' => $compare } : undef } shellies/shellyplug-s-268497/temperature:.* temperature shellies/shellyplug-s-268497/overtemperature:.* overtemperature shellies/shellyplug-s-268497/relay/0/energy:.* relay_0_energy shellies/shellyplug-s-268497/relay/0/energy:.* {'relay_0_kWh' => sprintf("%.2f",$EVENT/60/1000)} shellies/shellyplug-s-268497/longpush/0:.* longpush_0
shellyplug_s_268497:shellies/shellyplug-s-268497/temperature_f:.* temperature_f room Favoriten,Garage,MQTT2_DEVICE setList relay0:on,off,toggle shellies/shellyplug-s-268497/relay/0/command $EVTPART1 off:noArg shellies/shellyplug-s-268497/relay/0/command off on:noArg shellies/shellyplug-s-268497/relay/0/command on x_update:noArg shellies/shellyplug-s-268497/command update_fw x_mqttcom shellies/shellyplug-s-268497/command $EVTPART1 webCmd :
Danke
LG
Helmut