VPN/Proxy erkannt
Es scheint, dass Sie einen VPN- oder Proxy-Dienst verwenden. Bitte beachten Sie, dass die Nutzung eines solchen Dienstes die Funktionalität dieser Webseite einschränken kann.
-
Hallo Guzzi-Charlie
Ich benötige bitte nochmals von dir eine auf den Hinterkopf.
Ich habe jetzt einiges aus deinem Beispiel verwendet - aber:
Wenn ich aus FHEM heraus schaltet, kommt nix am Shelly an.
Gehe ich jedoch auf die Weboberfläche und schalte dort, kommt das signal in FHEM an.
Was mach ich da wieder falsch?
Hab ein aktuelles List angehängt
Internals:
CID shelly1_8CAAB5061949
DEF shelly1_8CAAB5061949
DEVICETOPIC Brunnen
FUUID 601c0708-f33f-b033-1f85-d02daf8e20af7560
IODev myBroker
LASTInputDev myBroker
MSGCNT 1300
NAME Brunnen
NR 541
STATE 5.2
TYPE MQTT2_DEVICE
myBroker_MSGCNT 1300
myBroker_TIME 2021-02-22 15:33:38
READINGS:
2021-02-22 15:33:38 0_hwID 28db600222200170
2021-02-22 15:33:38 0_tC 5.2
2021-02-22 15:33:38 0_tF 41.3
2021-02-22 15:33:38 event
2021-02-22 15:33:38 event_cnt 0
2021-02-22 15:33:38 ext_temperature_0 5.2
2021-02-22 15:33:38 ext_temperature_f_0 41.3
2021-02-22 14:02:05 fw_ver 20210115-102904/v1.9.4@e2732e05
2021-02-22 14:02:05 id shelly1-8CAAB5061949
2021-02-22 15:33:38 input_0 0
2021-02-22 14:02:05 ip 10.0.0.158
2021-02-22 14:02:05 mac 8CAAB5061949
2021-02-22 14:02:05 model SHSW-1
2021-02-22 14:02:05 new_fw false
2021-02-22 14:02:05 online true
2021-02-22 15:33:38 relay_0 off
2021-02-22 14:02:48 state relay_0
Attributes:
IODev myBroker
event-on-change-reading .*
group Temperatur
readingList shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/online:.* online
shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/announce:.* { json2nameValue($EVENT) }
shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/relay/0:.* relay_0
shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/input/0:.* input_0
shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/input_event/0:.* { json2nameValue($EVENT) }
shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/ext_temperature/0:.* ext_temperature_0
shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/ext_temperature_f/0:.* ext_temperature_f_0
shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/ext_temperatures:.* { json2nameValue($EVENT) }
shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/ext_temperatures_f:.* { json2nameValue($EVENT) }
shelly1_8CAAB5061949:shellies/shelly1_8CAAB5061949/relay/0/energy:.* relay_0_energy
room Brunnen,Favoriten,MQTT2_DEVICE
setList relay_0:iconSwitch,on,li_wht_off,off,li_wht_on shellies/shelly1_8CAAB5061949/relay/0/command $EVTPART1
x_mqttcom shellies/shelly1_8CAAB5061949/command $EVTPART1
stateFormat ext_temperature_0
webCmd relay_0
webCmdLabel Brunnen Heizung
Alles anzeigen
Danke schon mal für deine Zeit
LG
Helmut
-
Hallo
und was ist mit einem übergeordneten System wie z.B. FHEM.
Da kann man dann so einiges realisieren
Hab nicht alles über Shelly laufen (alte HM sind auch dabei) aber da geht das sehr komfortabel
Gruß
helmut
-
Danke Bernd
werde ich mir in Ruhe ansehen und melde mich wieder
Nice eve
Helmut
-
Servus Bernd Guzzi-Charlie
So scheint es nun zu funktionieren (mit FW.1.9.4)
relay_0_energy_kWh monotonic { ReadingsVal("Softub","relay_0_energy",0)/60/1000.0}, Kosten {ReadingsVal("Softub","relay_0_energy_kWh",0)*.2 ." €"}
Zumindest bei 2 Shelly PlugS und bei einem Shelly 2.5
Danke für deine Unterstützung
LG
Helmut
-
Servus Bernd
Tja diese 0_tC ist mir als erstes aufgefallen (wurde autom. angelegt) und darum habe ich das userReading erstellt. Habe jetzt auf ext_temperature_0 umgestellt.
Internals: CID shelly1_8CAAB5061949 DEF shelly1_8CAAB5061949 DEVICETOPIC Brunnen FUUID 601c0708-f33f-b033-1f85-d02daf8e20af7560 IODev myBroker LASTInputDev myBroker MSGCNT 15726 NAME Brunnen NR 544 STATE 8.6 TYPE MQTT2_DEVICE myBroker_MSGCNT 15726 myBroker_TIME 2021-02-10 12:01:39 OLDREADINGS: READINGS: 2021-02-10 12:01:39 0_hwID 28db600222200170 2021-02-10 12:01:39 0_tC 8.6 2021-02-10 12:01:39 0_tF 47.4 2021-02-10 12:01:32 event 2021-02-10 12:01:32 event_cnt 0 2021-02-10 12:01:39 ext_temperature_0 8.6 2021-02-10 12:01:39 ext_temperature_f_0 47.4 2021-02-09 17:34:32 fw_ver 20210115-102904/v1.9.4@e2732e05 2021-02-09 17:34:32 id shelly1-8CAAB5061949 2021-02-10 12:01:32 input_0 0 2021-02-09 17:34:32 ip 10.0.0.158 2021-02-09 17:34:32 mac 8CAAB5061949 2021-02-09 17:34:32 model SHSW-1 2021-02-09 17:34:32 new_fw false 2021-02-09 17:34:32 online true 2021-02-10 12:01:32 relay_0 off 2021-02-10 12:00:38 state off
Attributes: IODev myBroker event-on-change-reading .* group Temperatur readingList shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/online:.* online
shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/announce:.* { json2nameValue($EVENT) }
shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/relay/0:.* relay_0
shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/input/0:.* input_0
shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/input_event/0:.* { json2nameValue($EVENT) }
shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/ext_temperature/0:.* ext_temperature_0
shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/ext_temperature_f/0:.* ext_temperature_f_0
shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/ext_temperatures:.* { json2nameValue($EVENT) }
shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/ext_temperatures_f:.* { json2nameValue($EVENT) } room Brunnen,Favoriten,MQTT2_DEVICE setList off:noArg shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/relay/0/command off on:noArg shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/relay/0/command on
stateFormat ext_temperature_0 webCmd on:off
Alles anzeigen
Nur was ich im Moment nicht begreife
ist das mit dem stateFormat...
Habe nun die Temperaturanzeige und ein on off aber das lässt ich nicht schalten und ich hab keine Rückmeldung Wenn ich ein devStateIcon verwende, verschwindet die Temperaturanzeige?
Gib mir bitte mal einen festen Schlag auf den Hinterkopf - Danke
Gruß
Helmut
-
Guten Abend,
ich steh wohl wieder auf der Leitung
Ich habe einen 1er mit Temp add on per MQTT2 in FHEM integriert
Ich bekomm es im Device Overview nicht hin das in einer Zeile die Temp dargestellt wird und der Shelly sich schalten lässt:
Hier ein List aus FHEM
Internals:
CID shelly1_8CAAB5061949
DEF shelly1_8CAAB5061949
DEVICETOPIC Brunnen
FUUID 601c0708-f33f-b033-1f85-d02daf8e20af7560
IODev myBroker
LASTInputDev myBroker
MSGCNT 1191
NAME Brunnen
NR 544
STATE 3.8
TYPE MQTT2_DEVICE
myBroker_MSGCNT 1191
myBroker_TIME 2021-02-09 18:58:34
READINGS:
2021-02-09 18:58:34 0_hwID 28db600222200170
2021-02-09 18:58:34 0_tC 3.8
2021-02-09 18:58:34 0_tF 38.8
2021-02-09 18:58:34 event
2021-02-09 18:58:34 event_cnt 0
2021-02-09 18:58:34 ext_temperature_0 3.8
2021-02-09 18:58:34 ext_temperature_f_0 38.8
2021-02-09 17:34:32 fw_ver 20210115-102904/v1.9.4@e2732e05
2021-02-09 17:34:32 id shelly1-8CAAB5061949
2021-02-09 18:58:34 input_0 0
2021-02-09 17:34:32 ip 10.0.0.158
2021-02-09 17:34:32 mac 8CAAB5061949
2021-02-09 17:34:32 model SHSW-1
2021-02-09 17:34:32 new_fw false
2021-02-09 17:34:32 online true
2021-02-09 18:58:34 relay_0 off
2021-02-09 17:40:50 state off
2021-02-09 18:58:34 temperature 3.8
Attributes:
IODev myBroker
event-on-change-reading .*
group Temperatur
readingList shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/online:.* online
shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/announce:.* { json2nameValue($EVENT) }
shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/relay/0:.* relay_0
shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/input/0:.* input_0
shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/input_event/0:.* { json2nameValue($EVENT) }
shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/ext_temperature/0:.* ext_temperature_0
shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/ext_temperature_f/0:.* ext_temperature_f_0
shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/ext_temperatures:.* { json2nameValue($EVENT) }
shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/ext_temperatures_f:.* { json2nameValue($EVENT) }
room Brunnen,Favoriten,MQTT2_DEVICE
setList off:noArg shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/relay/0/command off
on:noArg shelly1_8CAAB5061949:shellies/shelly1-8CAAB5061949/relay/0/command on
stateFormat 0_tC
userReadings temperature {ReadingsVal("Brunnen","0_tC",0)}
webCmd on:off
Alles anzeigen
was hab ich da wieder übersehen?
Bitte um eure Hilfe
Danke
Helmut
-
servus Bernd
habe jetzt einiges versucht - ohne Erfolg. hatte heute einen Stromausfall - ich selbst hervorgerufen da der Shelly 2.5 nicht mehr im Netz erreichbar war. daher die Sicherung runter und er war wieder da - nur die readings Osten waren wieder auf NULL
vielleicht kommst du mal dazu da drüber zu schauen
Danke
LG
Helmut
-
Du könntest wenn du schon eine RPi verwendest mit FHEM alle 30 Sekunden einen Ping senden - ABER - bei Stromausfall geht der RPi auch nicht
Gruß
Helmut
-
Hab das Problem eingemeindet und folgende Antwort bekommen
Thank you very much, we will further that report to developers to be checked.
-
danke ich stehe auf angebissene Äpfel
Werde mit dem Link das Problem Einmelden Danke
Helmut
-
N' Abend
der von Olsche freundlicher weise zur Verfügung gestellt Link (app) bzgl. Shelly Finder
funktioniert leider am Mac überhaupt nicht.
Habe am iMac 10.15.7 und am MacBook 11.0 Beta Big Sure
Beim Aufruf der App stürzt diese sofort ab.
Schade
-
bitte keine Hektik. ich teste auch weiter und berichte falls sich etwas ändert
Danke für deine Unterstützung
Alles Gute zu deinen Vorhaben....
Gruß
helmut
-
Hallo Bernd,
also ich bekomme nur die Verbrauchsrechnung hin
CID shellyplug_s_040F3C
DEF shellyplug_s_040F3C
DEVICETOPIC HZ_AZ_Helmut
FUUID 5f7dc63f-f33f-ee2d-c50a-61e2b8a7e99df929
IODev myBrokerHaus
LASTInputDev myBrokerHaus
MSGCNT 140
NAME HZ_AZ_Helmut
NR 621
STATE off
TYPE MQTT2_DEVICE
myBrokerHaus_MSGCNT 140
myBrokerHaus_TIME 2020-10-07 16:11:17
READINGS:
2020-10-07 16:11:17 Kosten 0.002 €
2020-10-07 15:46:41 actions_stats_skipped 0
2020-10-07 15:46:40 attrTemplateVersion 20200522 or prior
2020-10-07 15:46:41 cfg_changed_cnt 0
2020-10-07 15:46:41 cloud_connected false
2020-10-07 15:46:41 cloud_enabled false
2020-10-07 15:46:41 fs_free 165158
2020-10-07 15:46:41 fs_size 233681
2020-10-07 16:00:47 fw_ver 20200827-070306/v1.8.3@4a8bc427
2020-10-07 15:46:41 has_update false
2020-10-07 16:00:47 id shellyplug-s-040F3C
2020-10-07 16:00:47 ip 10.0.0.107
2020-10-07 16:00:47 mac 4C11AE040F3C
2020-10-07 15:46:41 meters_1_counters_1 0.000
2020-10-07 15:46:41 meters_1_counters_2 0.000
2020-10-07 15:46:41 meters_1_counters_3 0.000
2020-10-07 15:46:41 meters_1_is_valid true
2020-10-07 15:46:41 meters_1_overpower 0.00
2020-10-07 15:46:41 meters_1_power 0.00
2020-10-07 15:46:41 meters_1_timestamp 1602085601
2020-10-07 15:46:41 meters_1_total 0
2020-10-07 16:00:47 model SHPLG-S
2020-10-07 15:46:41 mqtt_connected true
2020-10-07 16:00:47 new_fw false
2020-10-07 16:00:47 online true
2020-10-07 16:11:17 overtemperature 0
2020-10-07 15:46:41 ram_free 40036
2020-10-07 15:46:41 ram_total 51080
2020-10-07 16:11:17 relay0 off
2020-10-07 16:11:17 relay_0_energy 1016
2020-10-07 16:11:17 relay_0_kWh 0.02
2020-10-07 16:11:17 relay_0_power 0.00
2020-10-07 15:46:41 relays_1_has_timer false
2020-10-07 15:46:41 relays_1_ison false
2020-10-07 15:46:41 relays_1_overpower false
2020-10-07 15:46:41 relays_1_source input
2020-10-07 15:46:41 relays_1_timer_duration 0
2020-10-07 15:46:41 relays_1_timer_remaining 0
2020-10-07 15:46:41 relays_1_timer_started 0
2020-10-07 15:46:41 serial 4
2020-10-07 16:11:17 state off
2020-10-07 16:11:17 temperature 31.27
2020-10-07 16:11:17 temperature_f 88.28
2020-10-07 15:46:41 time 15:46
2020-10-07 15:46:41 tmp_is_valid true
2020-10-07 15:46:41 tmp_tC 31.44
2020-10-07 15:46:41 tmp_tF 88.58
2020-10-07 15:46:41 unixtime 1602085601
2020-10-07 15:46:41 update_has_update false
2020-10-07 15:46:41 update_new_version 20200827-070306/v1.8.3@4a8bc427
2020-10-07 15:46:41 update_old_version 20200827-070306/v1.8.3@4a8bc427
2020-10-07 15:46:41 update_status idle
2020-10-07 15:46:41 uptime 141
2020-10-07 15:46:41 wifi_sta_connected true
2020-10-07 15:46:41 wifi_sta_ip 10.0.0.107
2020-10-07 15:46:41 wifi_sta_rssi -89
2020-10-07 15:46:41 wifi_sta_ssid Dahoam
Attributes:
IODev myBrokerHaus
devStateIcon {my $onl = ReadingsVal($name,"online","false") eq "false" ? "rot" : ReadingsVal($name,"new_fw","false") eq "true" ? "gelb" : "gruen"; my $light = ReadingsVal($name,"state","off"); my $show = '<a href="';$show .= $onl eq "gelb" ? "/fhem?cmd.dummy=set $name x_update&XHR=1\">" : "http://".ReadingsVal($name,"ip","none").' "target="_blank">'; $show .= FW_makeImage("10px-kreis-".$onl)."</a>"; "<div> $show <a href=\"/fhem?cmd.dummy=set $name toggle&XHR=1\">".FW_makeImage($light)."</a></div>" }
genericDeviceType switch
getList power:noArg shellies/shellyplug-s-040F3C/relay/power power
model shellyplug
readingList shellies/shellyplug-s-040F3C/relay/0:.* state
shellies/shellyplug-s-040F3C/relay/0:.* relay0
shellies/shellyplug-s-040F3C/input/0:.* input0
shellies/shellyplug-s-040F3C/online:.* online
shellies/shellyplug-s-040F3C/announce:.* { json2nameValue($EVENT) }
shellies/announce:.* { $EVENT =~ m,..id...shellyplug-s-040F3C...mac.*, ? json2nameValue($EVENT) : return }
shellyplug_s_040F3C:shellies/shellyplug-s-040F3C/info:.* { json2nameValue($EVENT) }
shellyplug_s_040F3C:shellies/shellyplug-s-040F3C/relay/0/power:.* relay_0_power
shellyplug_s_040F3C:shellies/shellyplug-s-040F3C/relay/0/energy:.* relay_0_energy
shellyplug_s_040F3C:shellies/shellyplug-s-040F3C/temperature:.* temperature
shellyplug_s_040F3C:shellies/shellyplug-s-040F3C/temperature_f:.* temperature_f
shellyplug_s_040F3C:shellies/shellyplug-s-040F3C/overtemperature:.* overtemperature
shellyplug_s_040F3C:shellies/shellyplug-s-040F3C/relay/0/energy:.* {'relay_0_kWh' => sprintf("%.2f",$EVENT/60/1000)}
room MQTT2_DEVICE
setList off:noArg shellies/shellyplug-s-040F3C/relay/0/command off
on:noArg shellies/shellyplug-s-040F3C/relay/0/command on
x_update:noArg shellies/shellyplug-s-040F3C/command update_fw
x_mqttcom shellies/shellyplug-s-040F3C/command $EVTPART1
userReadings Kosten {ReadingsVal("HZ_AZ_Helmut","relay_0_kWh",0)*.1 ." €"}
Alles anzeigen
indem ich ein
readingsList
shellyplug_s_040F3C:shellies/shellyplug-s-040F3C/relay/0/energy:.* {'relay_0_kWh' => sprintf("%.2f",$EVENT/60/1000)}
und ein
userReadings
Kosten {ReadingsVal("HZ_AZ_Helmut","relay_0_kWh",0)*.1 ." €"}
angefügt habe.
wie oben schon beschrieben bleibt relay_0_kWh leer
Bei Gelegenheit bitte - Danke
Helmut
-
Hallo Bernd
irgendwie bekomme ich das nicht hin
Kannst du bitte bei Gelegenheit nochmals drüber schauen..... Danke
List vom Device
Internals:
CID shellyplug_s_040F3C
DEF shellyplug_s_040F3C
DEVICETOPIC MQTT2_shellyplug_s_040F3C
FUUID 5f747d1a-f33f-ee2d-869a-53a843cee0aa01eb
IODev myBrokerHaus
LASTInputDev myBrokerHaus
MSGCNT 312
NAME MQTT2_shellyplug_s_040F3C
NR 621
STATE off
TYPE MQTT2_DEVICE
myBrokerHaus_MSGCNT 312
myBrokerHaus_TIME 2020-09-30 15:10:51
READINGS:
2020-09-30 14:44:28 actions_stats_skipped 0
2020-09-30 14:44:28 attrTemplateVersion 20200522 or prior
2020-09-30 14:44:28 cfg_changed_cnt 1
2020-09-30 14:44:28 cloud_connected false
2020-09-30 14:44:28 cloud_enabled false
2020-09-30 14:44:28 fs_free 165158
2020-09-30 14:44:28 fs_size 233681
2020-09-30 15:02:01 fw_ver 20200827-070306/v1.8.3@4a8bc427
2020-09-30 14:44:28 has_update false
2020-09-30 15:02:01 id shellyplug-s-040F3C
2020-09-30 15:02:01 ip 10.0.0.107
2020-09-30 15:02:01 mac 4C11AE040F3C
2020-09-30 14:44:28 meters_1_counters_1 0.000
2020-09-30 14:44:28 meters_1_counters_2 0.000
2020-09-30 14:44:28 meters_1_counters_3 0.000
2020-09-30 14:44:28 meters_1_is_valid true
2020-09-30 14:44:28 meters_1_overpower 0.00
2020-09-30 14:44:28 meters_1_power 0.00
2020-09-30 14:44:28 meters_1_timestamp 1601477069
2020-09-30 14:44:28 meters_1_total 0
2020-09-30 15:02:01 model SHPLG-S
2020-09-30 14:44:28 mqtt_connected true
2020-09-30 15:02:01 new_fw false
2020-09-30 15:02:01 online true
2020-09-30 15:09:36 overtemperature 0
2020-09-30 14:44:28 ram_free 39228
2020-09-30 14:44:28 ram_total 51080
2020-09-30 15:10:51 relay0 off
2020-09-30 15:10:51 relay_0_energy 1139
2020-09-30 15:10:51 relay_0_energy_kWh 0
2020-09-30 15:10:51 relay_0_energy_total 994
2020-09-30 15:10:51 relay_0_power 0.00
2020-09-30 14:44:28 relays_1_has_timer false
2020-09-30 14:44:28 relays_1_ison false
2020-09-30 14:44:28 relays_1_overpower false
2020-09-30 14:44:28 relays_1_source http
2020-09-30 14:44:28 relays_1_timer_duration 0
2020-09-30 14:44:28 relays_1_timer_remaining 0
2020-09-30 14:44:28 relays_1_timer_started 0
2020-09-30 14:44:28 serial 5
2020-09-30 15:10:51 state off
2020-09-30 15:09:36 temperature 30.77
2020-09-30 15:09:36 temperature_f 87.38
2020-09-30 14:44:28 time 14:44
2020-09-30 14:44:28 tmp_is_valid true
2020-09-30 14:44:28 tmp_tC 24.73
2020-09-30 14:44:28 tmp_tF 76.52
2020-09-30 14:44:28 unixtime 1601477069
2020-09-30 14:44:28 update_has_update false
2020-09-30 14:44:28 update_new_version 20200827-070306/v1.8.3@4a8bc427
2020-09-30 14:44:28 update_old_version 20200827-070306/v1.8.3@4a8bc427
2020-09-30 14:44:28 update_status idle
2020-09-30 14:44:28 uptime 86
2020-09-30 14:44:28 wifi_sta_connected true
2020-09-30 14:44:28 wifi_sta_ip 10.0.0.107
2020-09-30 14:44:28 wifi_sta_rssi -89
2020-09-30 14:44:28 wifi_sta_ssid Dahoam
Attributes:
IODev myBrokerHaus
devStateIcon {my $onl = ReadingsVal($name,"online","false") eq "false" ? "rot" : ReadingsVal($name,"new_fw","false") eq "true" ? "gelb" : "gruen"; my $light = ReadingsVal($name,"state","off"); my $show = '<a href="';$show .= $onl eq "gelb" ? "/fhem?cmd.dummy=set $name x_update&XHR=1\">" : "http://".ReadingsVal($name,"ip","none").' "target="_blank">'; $show .= FW_makeImage("10px-kreis-".$onl)."</a>"; "<div> $show <a href=\"/fhem?cmd.dummy=set $name toggle&XHR=1\">".FW_makeImage($light)."</a></div>" }
genericDeviceType switch
getList power:noArg shellies/shellyplug-s-040F3C/relay/power power
model shellyplug
readingList shellies/shellyplug-s-040F3C/relay/0:.* state
shellies/shellyplug-s-040F3C/relay/0:.* relay0
shellies/shellyplug-s-040F3C/input/0:.* input0
shellies/shellyplug-s-040F3C/online:.* online
shellies/shellyplug-s-040F3C/announce:.* { json2nameValue($EVENT) }
shellies/announce:.* { $EVENT =~ m,..id...shellyplug-s-040F3C...mac.*, ? json2nameValue($EVENT) : return }
shellyplug_s_040F3C:shellies/shellyplug-s-040F3C/info:.* { json2nameValue($EVENT) }
shellyplug_s_040F3C:shellies/shellyplug-s-040F3C/relay/0/power:.* relay_0_power
shellyplug_s_040F3C:shellies/shellyplug-s-040F3C/relay/0/energy:.* relay_0_energy
shellyplug_s_040F3C:shellies/shellyplug-s-040F3C/temperature:.* temperature
shellyplug_s_040F3C:shellies/shellyplug-s-040F3C/temperature_f:.* temperature_f
shellyplug_s_040F3C:shellies/shellyplug-s-040F3C/overtemperature:.* overtemperature
room MQTT2_DEVICE
setList off:noArg shellies/shellyplug-s-040F3C/relay/0/command off
on:noArg shellies/shellyplug-s-040F3C/relay/0/command on
x_update:noArg shellies/shellyplug-s-040F3C/command update_fw
x_mqttcom shellies/shellyplug-s-040F3C/command $EVTPART1
userReadings relay_0_energy_kWh monotonic { ReadingsVal("MQTT2_shellyplug-s-040F3C","relay_0_energy",0)/60/1000.0},
relay_0_energy_total:relay_0_energy:.* monotonic {ReadingsNum("$name","relay_0_energy",0)}
Alles anzeigen
Danke für deine Mühe
Gruß
Helmut
-
Servus das dürfte bei mir irgendwie durchgerutscht sein...
Aber ich hab das userReadings nun angelegt
Kosten {ReadingsVal("Softub","relay_0_kWh",0)*.2 ." €"},
relay_0_energy_kWh monotonic { ReadingsVal("shellies/shellyplug-s-B86B05","relay_0_energy",0)/60/1000}
Aber das neu Reading relay_0_energy_kWh bleibt leer obwohl relay_0_kWh und relay_0_energy hochzählen
Weil das relay_0_kWh wird auf Null gesetzt wenn der Shelly vom Strom getrennt?
Was hab ich da wieder falsch gemacht?
Gruß
Helmut
-
Guten Abend,
entweder ich habe was falsch verstanden oder falsch gemacht.
Habe gestern meine PlugS der am Whirlpool hängt versehentlich abgesteckt und nun sind die
Werte in FHEM auch weg. ich dachte das wird hier immer aufaddiert?
Gruß
Helmut
-
Hallo Bernd
ich habe es jetzt so gelöst wie in einem Template vom 2.5er angegeben mit readingsList
shellyplug_s_B86B05:shellies/shellyplug-s-B86B05/relay/0/energy:.* {'relay_0_kWh' => sprintf("%.2f",$EVENT/60/1000)}
und das Ergebnis stimmt und sieht so aus:
Der Inhalt kann nicht angezeigt werden, da Sie keine Berechtigung haben, diesen Inhalt zu sehen.
Ich kann es mir nicht erklären, denn die Miniformel ist bis auf die Formatierung gleich.
Vielleicht hilfts ja jemanden weiter
LG Helmut
-
Hallo Bernd, lange her
aber ich wollte das jetzt mit einem Plug-S umsetzen nur die Berechnung stimmt nicht
Hier ein List von meinem FHEM MQTT2 Internals:
CFGFN
CID shellyplug_s_B86B05
DEF shellyplug_s_B86B05
DEVICETOPIC Softub
FUUID 5f3a6d23-f33f-ee2d-6a32-ecea64d8a5af6272
IODev myBrokerHaus
LASTInputDev myBrokerHaus
MSGCNT 2812
NAME Softub
NR 749057
STATE on
TYPE MQTT2_DEVICE
myBrokerHaus_MSGCNT 2812
myBrokerHaus_TIME 2020-08-17 18:40:00
OLDREADINGS:
READINGS:
2020-08-17 13:44:22 actions_stats_skipped 0
2020-08-17 13:44:22 attrTemplateVersion 20200522 or prior
2020-08-17 13:44:22 cfg_changed_cnt 0
2020-08-17 13:44:22 cloud_connected false
2020-08-17 13:44:22 cloud_enabled false
2020-08-17 13:44:22 fs_free 164656
2020-08-17 13:44:22 fs_size 233681
2020-08-17 16:07:58 fw_ver 20200812-091824/v1.8.0@8acf41b0
2020-08-17 13:44:22 has_update false
2020-08-17 16:07:58 id shellyplug-s-B86B05
2020-08-17 16:07:58 ip 10.0.0.123
2020-08-17 16:07:58 mac 98F4ABB86B05
2020-08-17 13:44:22 meters_1_counters_1 0.000
2020-08-17 13:44:22 meters_1_counters_2 0.000
2020-08-17 13:44:22 meters_1_counters_3 0.000
2020-08-17 13:44:22 meters_1_is_valid true
2020-08-17 13:44:22 meters_1_overpower 0.00
2020-08-17 13:44:22 meters_1_power 0.00
2020-08-17 13:44:22 meters_1_timestamp 1597671862
2020-08-17 13:44:22 meters_1_total 0
2020-08-17 16:07:58 model SHPLG-S
2020-08-17 13:44:22 mqtt_connected true
2020-08-17 16:07:58 new_fw false
2020-08-17 16:07:58 online true
2020-08-17 18:39:36 overtemperature 0
2020-08-17 13:44:22 ram_free 39472
2020-08-17 13:44:22 ram_total 51080
2020-08-17 18:39:36 relay0 on
2020-08-17 18:40:00 relay_0_energy 128367
2020-08-17 18:40:00 relay_0_energy_kWh 1.80186666666667
2020-08-17 18:39:36 relay_0_power 829.07
2020-08-17 13:44:22 relays_1_has_timer false
2020-08-17 13:44:22 relays_1_ison false
2020-08-17 13:44:22 relays_1_overpower false
2020-08-17 13:44:22 relays_1_source input
2020-08-17 13:44:22 relays_1_timer_duration 0
2020-08-17 13:44:22 relays_1_timer_remaining 0
2020-08-17 13:44:22 relays_1_timer_started 0
2020-08-17 13:44:22 serial 2
2020-08-17 18:39:36 state on
2020-08-17 18:39:36 temperature 44.13
2020-08-17 18:39:36 temperature_f 111.43
2020-08-17 13:44:22 time 13:44
2020-08-17 13:44:22 tmp_is_valid true
2020-08-17 13:44:22 tmp_tC 33.19
2020-08-17 13:44:22 tmp_tF 91.74
2020-08-17 13:44:22 unixtime 1597671862
2020-08-17 13:44:22 update_has_update false
2020-08-17 13:44:22 update_new_version 20200812-091824/v1.8.0@8acf41b0
2020-08-17 13:44:22 update_old_version 20200812-091824/v1.8.0@8acf41b0
2020-08-17 13:44:22 update_status idle
2020-08-17 13:44:22 uptime 37
2020-08-17 13:44:22 wifi_sta_connected true
2020-08-17 13:44:22 wifi_sta_ip 10.0.0.123
2020-08-17 13:44:22 wifi_sta_rssi -86
2020-08-17 13:44:22 wifi_sta_ssid Dahoam
Attributes:
IODev myBrokerHaus
devStateIcon {my $onl = ReadingsVal($name,"online","false") eq "false" ? "rot" : ReadingsVal($name,"new_fw","false") eq "true" ? "gelb" : "gruen";; my $light = ReadingsVal($name,"state","off");; my $show = '<a href="';;$show .= $onl eq "gelb" ? "/fhem?cmd.dummy=set $name x_update&XHR=1\">" : "http://".ReadingsVal($name,"ip","none").' "target="_blank">';;$show .= FW_makeImage("10px-kreis-".$onl)."</a>";; "<div> $show <a href=\"/fhem?cmd.dummy=set $name toggle&XHR=1\">".FW_makeImage($light)."</a></div>" }
genericDeviceType switch
getList power:noArg shellies/shellyplug-s-B86B05/relay/power power
model shellyplug
readingList shellies/shellyplug-s-B86B05/relay/0:.* state
shellies/shellyplug-s-B86B05/relay/0:.* relay0
shellies/shellyplug-s-B86B05/input/0:.* input0
shellies/shellyplug-s-B86B05/online:.* online
shellies/shellyplug-s-B86B05/announce:.* { json2nameValue($EVENT) }
shellies/announce:.* { $EVENT =~ m,..id...shellyplug-s-B86B05...mac.*, ? json2nameValue($EVENT) : return }
shellyplug_s_B86B05:shellies/shellyplug-s-B86B05/info:.* { json2nameValue($EVENT) }
shellyplug_s_B86B05:shellies/shellyplug-s-B86B05/relay/0/power:.* relay_0_power
shellyplug_s_B86B05:shellies/shellyplug-s-B86B05/relay/0/energy:.* relay_0_energy
shellyplug_s_B86B05:shellies/shellyplug-s-B86B05/temperature:.* temperature
shellyplug_s_B86B05:shellies/shellyplug-s-B86B05/temperature_f:.* temperature_f
shellyplug_s_B86B05:shellies/shellyplug-s-B86B05/overtemperature:.* overtemperature
room MQTT2_DEVICE,Terrasse
setList off:noArg shellies/shellyplug-s-B86B05/relay/0/command off
on:noArg shellies/shellyplug-s-B86B05/relay/0/command on
x_update:noArg shellies/shellyplug-s-B86B05/command update_fw
x_mqttcom shellies/shellyplug-s-B86B05/command $EVTPART1
userReadings relay_0_energy_kWh monotonic { ReadingsVal("Softub","relay_0_energy",0)/60/1000.0},
Alles anzeigen
Hab ich da von deinem Screenshot irgendetwas von deinem userReadings falsch übernommen - ich sehe nix
Wenn ich die 128367/60und/1000 teile komme ich auf 2,13 und nicht auf 1,8018.....
Bin mir sicher das Problem sitzt vor dem Bildschirm, aber ich find den Fehler nicht
Kannst du mir unter die Arme greifen - Danke
Helmut
-
Einer kann auf keinen Fall falsch sein
Lg Helmut
-
Hallo herzlichen Dank für eure Hilfe.
Der Glaskörper scheint nicht gebrochen zu sein. War auch die erste Frage vom Supportteam
Dürfte was anderes sein - ich bekomme einen Neuen.
Der geht aber leider auch erst am 2.8. weg
Mal sehen
Schönen Tag
Gruß
Helmut