Support-Thread Modul 36_Shelly.pm

Begonnen von Prof. Dr. Peter Henning, 03 Februar 2021, 08:03:09

Vorheriges Thema - Nächstes Thema

FhemPiUser


alf.ele

#1066
Zitat von: alf.ele am 05 Januar 2025, 10:54:32
Zitat von: Starkstrombastler am 05 Januar 2025, 10:03:08
Zitat von: alf.ele am 04 Januar 2025, 18:35:45Jetzt habe ich das Problem, das 2 der Shelly (beide PRO auf Hutschiene) mit LAN permanent als offline angezeigt werden. Alle ca.5 Sekunden, das ist mein update Interval, blitzt kurz online auf und State wechselt zu got data, danach wieder offline.
Das sieht so aus, als ob "nur" die Readings zum Netzwerk-Status fehlerhaft sind, die Funktion scheint ansonsten korrekt zu sein.
Bitte mal ein List von einem der PRO-Shellies hier einstellen.

Habe das Problem gelöst.
Durch manuelles Aufrufen von dem Befehl get <shellyname> model

Jetzt wird der Status korrekt mit online (LAN) angezeigt  und es gab auch mehr readings!

Starkstrombastler

Zitat von: FhemPiUser am 06 Januar 2025, 20:39:58Unterstützt dieses Modul auch den Shelly Pro 3EM-3CT63?
Ja, das sollte funktionieren. Das Reading "ct_type" sollte dann den entsprechenden Typ anzeigen.
IPC\Ubuntu + Fhem, 1wire, Shellies, Siemens Logo!, Z-Wave, PhilipsTV, Vu+duo2, KM200

Starkstrombastler

Zitat von: hugomckinley am 25 Dezember 2024, 20:52:38Mein Problem ist, dass der hostname-Befehl unter FreeBSD diese Optionen nicht unterstützt
Das wird in der nächsten Version des Moduls so geändert, dass die IP-Adresse des Hosts bei der Definiton eines Shelly-Devices als Attribut abgelegt wird.
Bei Systemen, die hostname -I nicht unterstützen muss das Attribut manuell gesetzt werden.
IPC\Ubuntu + Fhem, 1wire, Shellies, Siemens Logo!, Z-Wave, PhilipsTV, Vu+duo2, KM200

pfeffi

hat etwas gedauert war länger nicht online
das sind die gewünschten Daten zu #1063
hoffe das hilft weiter

logfile FHEM

2025.01.09 13:04:09.784 1: PERL WARNING: Argument "100 %" isn't numeric in numeric lt (<) at (eval 4227701) line 1.
{"status":1,"request":"1b006237-6380-422c-bf68-16b994cbaf86"}2025.01.09 13:04:42.238 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyStatus","params":{"ts":1736424282.20,"switch:0":{"id":0,"output":true,"source":"SHC"}}}: syntax error at (eval 4227766) line 1, near ""src":"
syntax error at (eval 4227766) line 1, near "}}"

2025.01.09 13:04:48.111 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyStatus","params":{"ts":1736424283.08,"switch:0":{"id":0,"apower":34.9,"current":0.404}}}: syntax error at (eval 4227768) line 1, near ""src":"
syntax error at (eval 4227768) line 1, near "}}"

2025.01.09 13:04:48.185 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyStatus","params":{"ts":1736424284.09,"switch:1":{"id":1,"apower":91.9,"current":0.476}}}: syntax error at (eval 4227769) line 1, near ""src":"
syntax error at (eval 4227769) line 1, near "}}"

2025.01.09 13:05:00.138 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyStatus","params":{"ts":1736424300.00,"switch:1":{"id":1,"aenergy":{"by_minute":[1650.758,1648.624,1649.901],"minute_ts":1736424300,"total":143753.181},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424300,"total":0.000}}}}: syntax error at (eval 4227776) line 1, near ""src":"

2025.01.09 13:05:00.139 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyStatus","params":{"ts":1736424300.00,"switch:0":{"id":0,"aenergy":{"by_minute":[178.073,0.000,0.000],"minute_ts":1736424300,"total":1965.523},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424300,"total":0.000}}}}: syntax error at (eval 4227777) line 1, near ""src":"

2025.01.09 13:05:00.140 1: ERROR evaluating {"src":"shelly1pmminig3-34b7dac64734","dst":"ws","method":"NotifyStatus","params":{"ts":1736424300.00,"switch:0":{"id":0,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424300,"total":33.152},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424300,"total":0.000}}}}: syntax error at (eval 4227778) line 1, near ""src":"

2025.01.09 13:05:00.142 1: ERROR evaluating {"src":"shellyplus1pm-c4d8d542ac58","dst":"ws","method":"NotifyStatus","params":{"ts":1736424300.00,"switch:0":{"id":0,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424300,"total":342.119}}}}: syntax error at (eval 4227779) line 1, near ""src":"
syntax error at (eval 4227779) line 1, near "}}"

2025.01.09 13:05:25.105 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyStatus","params":{"ts":1736424324.10,"switch:1":{"id":1,"apower":91.8,"current":0.475}}}: syntax error at (eval 4227840) line 1, near ""src":"
syntax error at (eval 4227840) line 1, near "}}"

2025.01.09 13:05:54.559 1: ERROR evaluating {"src":"shellyplus1pm-c4d8d542ac58","dst":"ws","method":"NotifyFullStatus","params":{"ts":1736424354.57,"ble":{},"cloud":{"connected":true},"input:0":{"id":0,"state":false},"mqtt":{"connected":false},"switch:0":{"id":0, "source":"http", "output":false, "apower":0.0, "voltage":238.5, "current":0.000, "aenergy":{"total":342.119,"by_minute":[0.000,0.000,0.000],"minute_ts":1736424300},"temperature":{"tC":37.7, "tF":99.9}},"sys":{"mac":"C4D8D542AC58","restart_required":false,"time":"13:05","unixtime":1736424354,"uptime":4905028,"ram_size":253532,"ram_free":128964,"fs_size":393216,"fs_free":106496,"cfg_rev":14,"kvs_rev":0,"schedule_rev":2,"webhook_rev":0,"available_updates":{},"reset_reason":3},"wifi":{"sta_ip":"192.168.178.117","status":"got ip","ssid":"Karamba","rssi":-61,"ap_client_count":0},"ws":{"connected":true}}}: syntax error at (eval 4227874) line 1, near ""src":"

2025.01.09 13:05:54.573 1: ERROR evaluating {"src":"shellyplus1pm-c4d8d542ac58","dst":"ws","method":"NotifyStatus","params":{"ts":1736424354.58,"ws":{"connected":true}}}: syntax error at (eval 4227875) line 1, near ""src":"
syntax error at (eval 4227875) line 1, near "}}"

2025.01.09 13:05:57.251 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyFullStatus","params":{"ts":1736424357.24,"ble":{},"cloud":{"connected":true},"input:0":{"id":0,"state":false},"input:1":{"id":1,"state":true},"mqtt":{"connected":false},"switch:0":{"id":0, "source":"SHC", "output":true, "apower":34.2, "voltage":238.9, "freq":50.0, "current":0.398, "pf":0.61, "aenergy":{"total":1966.129,"by_minute":[178.073,0.000,0.000],"minute_ts":1736424300}, "ret_aenergy":{"total":0.000,"by_minute":[0.000,0.000,0.000],"minute_ts":1736424300},"temperature":{"tC":52.0, "tF":125.5}},"switch:1":{"id":1, "source":"init", "output":true, "apower":92.0, "voltage":239.0, "freq":50.0, "current":0.475, "pf":0.84, "aenergy":{"total":143754.775,"by_minute":[1650.758,1648.624,1649.901],"minute_ts":1736424300}, "ret_aenergy":{"total":0.000,"by_minute":[0.000,0.000,0.000],"minute_ts":1736424300},"temperature":{"tC":52.0, "tF":125.5}},"sys":{"mac":"2CBCBB3BAFDC","restart_required":false,"time":"13:05","unixtime":1736424357,"uptime":239053,"ram_size":252356,"ram_free":125908,"fs_size":393216,"fs_free":90112,"cfg_rev":21,"kvs_rev":0,"schedule_rev":2,"webhook_rev":0,"available_updates":{},"reset_reason":3},"wifi":{"sta_ip":"192.168.178.119","status":"got ip","ssid":"Karamba","rssi":-67},"ws":{"connected":true}}}: syntax error at (eval 4227881) line 1, near ""src":"

2025.01.09 13:05:57.253 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyStatus","params":{"ts":1736424357.26,"ws":{"connected":true}}}: syntax error at (eval 4227882) line 1, near ""src":"
syntax error at (eval 4227882) line 1, near "}}"

2025.01.09 13:05:57.274 1: ERROR evaluating {"src":"shelly1pmminig3-34b7dac64734","dst":"ws","method":"NotifyFullStatus","params":{"ts":1736424357.28,"ble":{},"bthome":{"errors":["observer_disabled"]},"cloud":{"connected":true},"input:0":{"id":0,"state":true},"knx":{},"mqtt":{"connected":false},"switch:0":{"id":0, "source":"SHC", "output":false, "apower":0.0, "voltage":238.4, "freq":50.0, "current":0.000, "aenergy":{"total":33.152,"by_minute":[0.000,0.000,0.000],"minute_ts":1736424300}, "ret_aenergy":{"total":0.000,"by_minute":[0.000,0.000,0.000],"minute_ts":1736424300},"temperature":{"tC":56.9, "tF":134.4}},"sys":{"mac":"34B7DAC64734","restart_required":false,"time":"13:05","unixtime":1736424357,"uptime":3698035,"ram_size":259416,"ram_free":86100,"fs_size":1048576,"fs_free":593920,"cfg_rev":10,"kvs_rev":3,"schedule_rev":2,"webhook_rev":0,"available_updates":{},"reset_reason":1},"wifi":{"sta_ip":"192.168.178.118","status":"got ip","ssid":"Karamba","rssi":-42},"ws":{"connected":true}}}: syntax error at (eval 4227883) line 1, near ""src":"

2025.01.09 13:05:57.287 1: ERROR evaluating {"src":"shelly1pmminig3-34b7dac64734","dst":"ws","method":"NotifyStatus","params":{"ts":1736424357.29,"ws":{"connected":true}}}: syntax error at (eval 4227884) line 1, near ""src":"
syntax error at (eval 4227884) line 1, near "}}"

2025.01.09 13:05:59.994 1: ERROR evaluating {"src":"shellyplus1pm-c4d8d542ac58","dst":"ws","method":"NotifyStatus","params":{"ts":1736424360.00,"switch:0":{"id":0,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424360,"total":342.119}}}}: syntax error at (eval 4227885) line 1, near ""src":"
syntax error at (eval 4227885) line 1, near "}}"

2025.01.09 13:06:00.012 1: ERROR evaluating {"src":"shelly1pmminig3-34b7dac64734","dst":"ws","method":"NotifyStatus","params":{"ts":1736424360.00,"switch:0":{"id":0,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424360,"total":33.152},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424360,"total":0.000}}}}: syntax error at (eval 4227886) line 1, near ""src":"

2025.01.09 13:06:00.048 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyStatus","params":{"ts":1736424360.00,"switch:0":{"id":0,"aenergy":{"by_minute":[626.945,178.073,0.000],"minute_ts":1736424360,"total":1966.149},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424360,"total":0.000}}}}: syntax error at (eval 4227887) line 1, near ""src":"

2025.01.09 13:06:00.052 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyStatus","params":{"ts":1736424360.00,"switch:1":{"id":1,"aenergy":{"by_minute":[1648.936,1650.758,1648.624],"minute_ts":1736424360,"total":143754.830},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424360,"total":0.000}}}}: syntax error at (eval 4227888) line 1, near ""src":"

2025.01.09 13:06:05.105 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyStatus","params":{"ts":1736424364.10,"switch:1":{"id":1,"apower":92.0,"current":0.476}}}: syntax error at (eval 4227891) line 1, near ""src":"
syntax error at (eval 4227891) line 1, near "}}"

2025.01.09 13:06:45.097 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyStatus","params":{"ts":1736424404.10,"switch:1":{"id":1,"apower":92.0,"current":0.476}}}: syntax error at (eval 4227949) line 1, near ""src":"
syntax error at (eval 4227949) line 1, near "}}"

2025.01.09 13:06:59.992 1: ERROR evaluating {"src":"shellyplus1pm-c4d8d542ac58","dst":"ws","method":"NotifyStatus","params":{"ts":1736424420.00,"switch:0":{"id":0,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424420,"total":342.119}}}}: syntax error at (eval 4227957) line 1, near ""src":"
syntax error at (eval 4227957) line 1, near "}}"

2025.01.09 13:07:00.011 1: ERROR evaluating {"src":"shelly1pmminig3-34b7dac64734","dst":"ws","method":"NotifyStatus","params":{"ts":1736424420.00,"switch:0":{"id":0,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424420,"total":33.152},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424420,"total":0.000}}}}: syntax error at (eval 4227958) line 1, near ""src":"

2025.01.09 13:07:00.049 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyStatus","params":{"ts":1736424420.00,"switch:1":{"id":1,"aenergy":{"by_minute":[1655.135,1648.936,1650.758],"minute_ts":1736424420,"total":143756.485},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424420,"total":0.000}}}}: syntax error at (eval 4227959) line 1, near ""src":"

2025.01.09 13:07:00.089 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyStatus","params":{"ts":1736424420.00,"switch:0":{"id":0,"aenergy":{"by_minute":[629.204,626.945,178.073],"minute_ts":1736424420,"total":1966.779},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424420,"total":0.000}}}}: syntax error at (eval 4227960) line 1, near ""src":"

2025.01.09 13:07:15.674 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyStatus","params":{"ts":1736424433.10,"switch:1":{"id":1,"apower":105.0,"current":0.529}}}: syntax error at (eval 4228018) line 1, near ""src":"
syntax error at (eval 4228018) line 1, near "}}"

2025.01.09 13:07:25.097 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyStatus","params":{"ts":1736424444.10,"switch:1":{"id":1,"apower":103.9}}}: syntax error at (eval 4228020) line 1, near ""src":"
syntax error at (eval 4228020) line 1, near "}}"

2025.01.09 13:07:55.901 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyFullStatus","params":{"ts":1736424475.91,"ble":{},"cloud":{"connected":true},"input:0":{"id":0,"state":false},"input:1":{"id":1,"state":true},"mqtt":{"connected":false},"switch:0":{"id":0, "source":"SHC", "output":true, "apower":34.6, "voltage":239.6, "freq":50.0, "current":0.397, "pf":0.61, "aenergy":{"total":1967.368,"by_minute":[629.204,626.945,178.073],"minute_ts":1736424420}, "ret_aenergy":{"total":0.000,"by_minute":[0.000,0.000,0.000],"minute_ts":1736424420},"temperature":{"tC":52.7, "tF":126.9}},"switch:1":{"id":1, "source":"init", "output":true, "apower":104.2, "voltage":239.7, "freq":50.0, "current":0.517, "pf":0.86, "aenergy":{"total":143758.184,"by_minute":[1655.135,1648.936,1650.758],"minute_ts":1736424420}, "ret_aenergy":{"total":0.000,"by_minute":[0.000,0.000,0.000],"minute_ts":1736424420},"temperature":{"tC":52.7, "tF":126.9}},"sys":{"mac":"2CBCBB3BAFDC","restart_required":false,"time":"13:07","unixtime":1736424475,"uptime":239171,"ram_size":252356,"ram_free":125900,"fs_size":393216,"fs_free":90112,"cfg_rev":21,"kvs_rev":0,"schedule_rev":2,"webhook_rev":0,"available_updates":{},"reset_reason":3},"wifi":{"sta_ip":"192.168.178.119","status":"got ip","ssid":"Karamba","rssi":-67},"ws":{"connected":true}}}: syntax error at (eval 4228046) line 1, near ""src":"

2025.01.09 13:07:55.920 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyStatus","params":{"ts":1736424475.92,"ws":{"connected":true}}}: syntax error at (eval 4228047) line 1, near ""src":"
syntax error at (eval 4228047) line 1, near "}}"

2025.01.09 13:07:55.999 1: ERROR evaluating {"src":"shellyplus1pm-c4d8d542ac58","dst":"ws","method":"NotifyFullStatus","params":{"ts":1736424475.94,"ble":{},"cloud":{"connected":true},"input:0":{"id":0,"state":false},"mqtt":{"connected":false},"switch:0":{"id":0, "source":"http", "output":false, "apower":0.0, "voltage":238.9, "current":0.000, "aenergy":{"total":342.119,"by_minute":[0.000,0.000,0.000],"minute_ts":1736424420},"temperature":{"tC":37.8, "tF":100.0}},"sys":{"mac":"C4D8D542AC58","restart_required":false,"time":"13:07","unixtime":1736424475,"uptime":4905150,"ram_size":253532,"ram_free":128984,"fs_size":393216,"fs_free":106496,"cfg_rev":14,"kvs_rev":0,"schedule_rev":2,"webhook_rev":0,"available_updates":{},"reset_reason":3},"wifi":{"sta_ip":"192.168.178.117","status":"got ip","ssid":"Karamba","rssi":-58,"ap_client_count":0},"ws":{"connected":true}}}: syntax error at (eval 4228048) line 1, near ""src":"

2025.01.09 13:07:56.000 1: ERROR evaluating {"src":"shellyplus1pm-c4d8d542ac58","dst":"ws","method":"NotifyStatus","params":{"ts":1736424475.95,"ws":{"connected":true}}}: syntax error at (eval 4228049) line 1, near ""src":"
syntax error at (eval 4228049) line 1, near "}}"

2025.01.09 13:07:56.171 1: ERROR evaluating {"src":"shelly1pmminig3-34b7dac64734","dst":"ws","method":"NotifyFullStatus","params":{"ts":1736424476.18,"ble":{},"bthome":{"errors":["observer_disabled"]},"cloud":{"connected":true},"input:0":{"id":0,"state":true},"knx":{},"mqtt":{"connected":false},"switch:0":{"id":0, "source":"SHC", "output":false, "apower":0.0, "voltage":238.9, "freq":50.1, "current":0.000, "aenergy":{"total":33.152,"by_minute":[0.000,0.000,0.000],"minute_ts":1736424420}, "ret_aenergy":{"total":0.000,"by_minute":[0.000,0.000,0.000],"minute_ts":1736424420},"temperature":{"tC":56.9, "tF":134.4}},"sys":{"mac":"34B7DAC64734","restart_required":false,"time":"13:07","unixtime":1736424476,"uptime":3698154,"ram_size":259416,"ram_free":86112,"fs_size":1048576,"fs_free":593920,"cfg_rev":10,"kvs_rev":3,"schedule_rev":2,"webhook_rev":0,"available_updates":{},"reset_reason":1},"wifi":{"sta_ip":"192.168.178.118","status":"got ip","ssid":"Karamba","rssi":-35},"ws":{"connected":true}}}: syntax error at (eval 4228050) line 1, near ""src":"

2025.01.09 13:07:56.181 1: ERROR evaluating {"src":"shelly1pmminig3-34b7dac64734","dst":"ws","method":"NotifyStatus","params":{"ts":1736424476.19,"ws":{"connected":true}}}: syntax error at (eval 4228051) line 1, near ""src":"
syntax error at (eval 4228051) line 1, near "}}"

2025.01.09 13:08:00.007 1: ERROR evaluating {"src":"shelly1pmminig3-34b7dac64734","dst":"ws","method":"NotifyStatus","params":{"ts":1736424480.00,"switch:0":{"id":0,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424480,"total":33.152},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424480,"total":0.000}}}}: syntax error at (eval 4228053) line 1, near ""src":"

2025.01.09 13:08:00.024 1: ERROR evaluating {"src":"shellyplus1pm-c4d8d542ac58","dst":"ws","method":"NotifyStatus","params":{"ts":1736424480.00,"switch:0":{"id":0,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424480,"total":342.119}}}}: syntax error at (eval 4228054) line 1, near ""src":"
syntax error at (eval 4228054) line 1, near "}}"

2025.01.09 13:08:00.046 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyStatus","params":{"ts":1736424480.00,"switch:0":{"id":0,"aenergy":{"by_minute":[631.351,629.204,626.945],"minute_ts":1736424480,"total":1967.410},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424480,"total":0.000}}}}: syntax error at (eval 4228055) line 1, near ""src":"

2025.01.09 13:08:00.074 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyStatus","params":{"ts":1736424480.00,"switch:1":{"id":1,"aenergy":{"by_minute":[1823.042,1655.135,1648.936],"minute_ts":1736424480,"total":143758.308},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424480,"total":0.000}}}}: syntax error at (eval 4228056) line 1, near ""src":"

2025.01.09 13:08:05.092 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyStatus","params":{"ts":1736424484.10,"switch:1":{"id":1,"apower":104.1}}}: syntax error at (eval 4228069) line 1, near ""src":"
syntax error at (eval 4228069) line 1, near "}}"

2025.01.09 13:08:45.152 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyStatus","params":{"ts":1736424524.10,"switch:1":{"id":1,"apower":104.5}}}: syntax error at (eval 4228279) line 1, near ""src":"
syntax error at (eval 4228279) line 1, near "}}"

2025.01.09 13:09:00.007 1: ERROR evaluating {"src":"shelly1pmminig3-34b7dac64734","dst":"ws","method":"NotifyStatus","params":{"ts":1736424540.00,"switch:0":{"id":0,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424540,"total":33.152},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424540,"total":0.000}}}}: syntax error at (eval 4228378) line 1, near ""src":"

2025.01.09 13:09:00.023 1: ERROR evaluating {"src":"shellyplus1pm-c4d8d542ac58","dst":"ws","method":"NotifyStatus","params":{"ts":1736424540.00,"switch:0":{"id":0,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424540,"total":342.119}}}}: syntax error at (eval 4228379) line 1, near ""src":"
syntax error at (eval 4228379) line 1, near "}}"

2025.01.09 13:09:00.044 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyStatus","params":{"ts":1736424540.00,"switch:1":{"id":1,"aenergy":{"by_minute":[1875.439,1823.042,1655.135],"minute_ts":1736424540,"total":143760.184},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424540,"total":0.000}}}}: syntax error at (eval 4228380) line 1, near ""src":"

2025.01.09 13:09:00.052 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyStatus","params":{"ts":1736424540.00,"switch:0":{"id":0,"aenergy":{"by_minute":[630.524,631.351,629.204],"minute_ts":1736424540,"total":1968.041},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424540,"total":0.000}}}}: syntax error at (eval 4228381) line 1, near ""src":"

2025.01.09 13:09:09.683 1: PERL WARNING: Argument "100 %" isn't numeric in numeric lt (<) at (eval 4228458) line 1.
{"status":1,"request":"efd8801e-2a8e-4d7c-80f3-68143314da6d"}2025.01.09 13:09:25.271 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyStatus","params":{"ts":1736424564.11,"switch:1":{"id":1,"apower":104.5}}}: syntax error at (eval 4228504) line 1, near ""src":"
syntax error at (eval 4228504) line 1, near "}}"

2025.01.09 13:09:59.822 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyFullStatus","params":{"ts":1736424599.83,"ble":{},"cloud":{"connected":true},"input:0":{"id":0,"state":false},"input:1":{"id":1,"state":true},"mqtt":{"connected":false},"switch:0":{"id":0, "source":"SHC", "output":true, "apower":34.3, "voltage":239.1, "freq":50.0, "current":0.394, "pf":0.61, "aenergy":{"total":1968.668,"by_minute":[630.524,631.351,629.204],"minute_ts":1736424540}, "ret_aenergy":{"total":0.000,"by_minute":[0.000,0.000,0.000],"minute_ts":1736424540},"temperature":{"tC":53.7, "tF":128.6}},"switch:1":{"id":1, "source":"init", "output":true, "apower":104.4, "voltage":239.2, "freq":50.0, "current":0.518, "pf":0.86, "aenergy":{"total":143762.060,"by_minute":[1875.439,1823.042,1655.135],"minute_ts":1736424540}, "ret_aenergy":{"total":0.000,"by_minute":[0.000,0.000,0.000],"minute_ts":1736424540},"temperature":{"tC":53.7, "tF":128.6}},"sys":{"mac":"2CBCBB3BAFDC","restart_required":false,"time":"13:09","unixtime":1736424599,"uptime":239295,"ram_size":252356,"ram_free":125908,"fs_size":393216,"fs_free":90112,"cfg_rev":21,"kvs_rev":0,"schedule_rev":2,"webhook_rev":0,"available_updates":{},"reset_reason":3},"wifi":{"sta_ip":"192.168.178.119","status":"got ip","ssid":"Karamba","rssi":-66},"ws":{"connected":true}}}: syntax error at (eval 4228543) line 1, near ""src":"

2025.01.09 13:09:59.836 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyStatus","params":{"ts":1736424599.85,"ws":{"connected":true}}}: syntax error at (eval 4228544) line 1, near ""src":"
syntax error at (eval 4228544) line 1, near "}}"

2025.01.09 13:10:00.251 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyStatus","params":{"ts":1736424600.00,"switch:0":{"id":0,"aenergy":{"by_minute":[627.852,630.524,631.351],"minute_ts":1736424600,"total":1968.668},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424600,"total":0.000}}}}: syntax error at (eval 4228545) line 1, near ""src":"

2025.01.09 13:10:00.253 1: ERROR evaluating {"src":"shellyplus2pm-2cbcbb3bafdc","dst":"ws","method":"NotifyStatus","params":{"ts":1736424600.00,"switch:1":{"id":1,"aenergy":{"by_minute":[1876.405,1875.439,1823.042],"minute_ts":1736424600,"total":143762.060},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736424600,"total":0.000}}}}: syntax error at (eval 4228546) line 1, near ""src":"

2025.01.09 13:10:00.298 1: ERROR evaluating {"src":"shelly1pmminig3-34b7dac64734","dst":"ws","method":"NotifyFullStatus","params":{"ts":1736424600.30,"ble":{},"bthome":{"errors":["observer_disabled"]},"cloud":{"connected":true},"input:0":{"id":0,"state":true},"knx":{},"mqtt":{"connected":false},"switch:0":{"id":0, "source":"SHC", "output":false, "apower":0.0, "voltage":238.8, "freq":50.0, "current":0.000, "aenergy":{"total":33.152,"by_minute":[0.000,0.000,0.000],"minute_ts":1736424600}, "ret_aenergy":{"total":0.000,"by_minute":[0.000,0.000,0.000],"minute_ts":1736424600},"temperature":{"tC":56.9, "tF":134.4}},"sys":{"mac":"34B7DAC64734","restart_required":false,"time":"13:10","unixtime":1736424600,"uptime":3698278,"ram_size":259216,"ram_free":83548,"fs_size":1048576,"fs_free":593920,"cfg_rev":10,"kvs_rev":3,"schedule_rev":2,"webhook_rev":0,"available_updates":{},"reset_reason":1},"wifi":{"sta_ip":"192.168.178.118","status":"got ip","ssid":"Karamba","rssi":-43},"ws":{"connected":true}}}: syntax error at (eval 4228547) line 1, near ""src":"

2025.01.09 13:10:00.313 1: ERROR evaluating {"src":"shelly1pmminig3-34b7dac64734","dst":"ws","method":"NotifyStatus","params":{"ts":1736424600.31,"ws":{"connected":true}}}: syntax error at (eval 4228548) line 1, near ""src":"
syntax error at (eval 4228548) line 1, near "}}"


Logfile Shelly

shelly_notification:162 Status change of switch:0: {"id":0,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736426220,"total":1971.642},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736426220,"total":0.000}}
13:37:00
shelly_notification:162 Status change of switch:1: {"id":1,"aenergy":{"by_minute":[1837.403,1836.562,1841.842],"minute_ts":1736426220,"total":143811.578},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736426220,"total":0.000}}
13:37:00
shos_rpc_inst.c:457 0x3ffd62bc INVALID FRAME (83): '["syntax error at (eval 4231390) line 1, near \u0022\u0022src\u0022:\u0022\u000a"] '
13:37:00
shos_rpc_inst.c:457 0x3ffd62bc INVALID FRAME (83): '["syntax error at (eval 4231391) line 1, near \u0022\u0022src\u0022:\u0022\u000a"] '
13:37:00
shelly_http_client.:611 0x3ffe23cc: Finished; bytes 570, code 101, redir 0/3, auth 0, status OK
13:37:33
shelly_notification:162 Status change of ws: {"connected":false}
13:37:33
shelly_http_client.:308 0x3ffdf09c: WS http://192.168.178.65:8083/fhem?cmd=set Heizung input_on 1, http://192.168.178.65:8083/fhem?cmd=set Heizung input_off 1, http://192.168.178.65:8083/fhem?cmd=set Warmwasser input_on 0, http://192.168.178.65:8083/fhem?cmd=set Warmwasser input_off 0
13:37:59
shelly_http_client.:556 0x3ffdf09c: WS handshake complete
13:37:59
shelly_notification:162 Status change of ws: {"connected":true}
13:37:59
shos_rpc_inst.c:457 0x3ffd62bc INVALID FRAME (83): '["syntax error at (eval 4231446) line 1, near \u0022\u0022src\u0022:\u0022\u000a"] '
13:37:59
shos_rpc_inst.c:457 0x3ffd62bc INVALID FRAME (147): '["syntax error at (eval 4231447) line 1, near \u0022\u0022src\u0022:\u0022\u000asyntax error at (eval 4231447) line 1, near \u0022}}\u0022\u000a"] '
13:37:59
shelly_notification:162 Status change of switch:1: {"id":1,"aenergy":{"by_minute":[1805.535,1837.403,1836.562],"minute_ts":1736426280,"total":143813.383},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736426280,"total":0.000}}
13:38:00
shelly_notification:162 Status change of switch:0: {"id":0,"aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736426280,"total":1971.642},"ret_aenergy":{"by_minute":[0.000,0.000,0.000],"minute_ts":1736426280,"total":0.000}}
13:38:00
shos_rpc_inst.c:457 0x3ffd62bc INVALID FRAME (83): '["syntax error at (eval 4231449) line 1, near \u0022\u0022src\u0022:\u0022\u000a"] '
13:38:00
shos_rpc_inst.c:457 0x3ffd62bc INVALID FRAME (83): '["syntax error at (eval 4231450) line 1, near \u0022\u0022src\u0022:\u0022\u000a"] '
13:38:00
shelly_notification:162 Status change of switch:1: {"id":1,"current":0.501}
13:38:25
shos_rpc_inst.c:457 0x3ffd62bc INVALID FRAME (147): '["syntax error at (eval 4231561) line 1, near \u0022\u0022src\u0022:\u0022\u000asyntax error at (eval 4231561) line 1, near \u0022}}\u0022\u000a"] '
13:38:25
shelly_notification:162 Status change of switch:1: {"id":1,"apower":101.6}
13:38:31
shos_rpc_inst.c:457 0x3ffd62bc INVALID FRAME (147): '["syntax error at (eval 4231573) line 1, near \u0022\u0022src\u0022:\u0022\u000asyntax error at (eval 4231573) line 1, near \u0022}}\u0022\u000a"] '

List device

Internals:
   DEF        192.168.178.119
   FUUID      67323d92-f33f-bde0-eb43-ecb792f7c2da9253
   INTERVAL   3600
   NAME       Heizen
   NR         1156
   NTFY_ORDER 50-Heizen
   SHELLYID   shellyplus2pm-2cbcbb3bafdc
   STATE      OK
   TYPE       Shelly
   eventCount 10979
   units      1
   OLDREADINGS:
   READINGS:
     2024-11-12 07:48:07   ap              disabled open
     2024-11-12 07:48:07   ap_clients      disabled
     2024-11-12 07:48:07   ap_name         ShellyPlus2PM-2CBCBB3BAFDC
     2024-11-12 07:48:07   auto_off_0      disabled
     2024-11-12 07:48:07   auto_off_1      disabled
     2024-11-12 07:48:07   auto_on_0       disabled
     2024-11-12 07:48:07   auto_on_1       disabled
     2024-11-12 07:48:07   ble             disabled
     2024-11-12 07:48:07   ble_obs         -
     2024-11-12 07:48:07   ble_rpc         -
     2024-12-09 15:06:03   cloud           enabled(connected)
     2025-01-09 08:05:00   current_0       0 A
     2025-01-09 13:20:00   current_1       0.502 A
     2025-01-09 13:20:00   energy_0        1.97164 kWh
     2025-01-09 13:20:00   energy_1        143.78043 kWh
     2025-01-09 13:20:00   energy_purchased_0 1.97164 kWh
     2025-01-09 13:20:00   energy_purchased_1 143.78043 kWh
     2025-01-02 17:20:01   energy_returned_0 0.0 kWh
     2025-01-02 17:20:01   energy_returned_1 0.0 kWh
     2024-11-12 06:56:35   firmware        v1.4.4
     2024-11-12 07:48:07   firmware_ID     20241011-114448/1.4.4-g6d2a586
     2024-11-12 07:48:07   firmware_current v1.4.4
     2024-11-12 07:49:07   firmware_updIcon OK
     2024-11-12 07:49:07   firmware_updText -/-
     2025-01-07 09:15:00   frequency_0     50 Hz
     2025-01-07 09:15:00   frequency_1     50 Hz
     2024-12-31 18:30:01   input_0         off
     2024-11-12 07:48:07   input_0_function follow
     2025-01-07 04:35:00   input_0_mode    switch straight enabled
     2024-12-31 19:35:00   input_1         on
     2025-01-07 04:35:00   input_1_mode    switch straight enabled
     2025-01-09 13:20:00   inttemp         54 °C
     2024-11-13 17:00:20   mac             2C:BC:BB:3B:AF:DC
     2024-11-13 17:00:20   model_ID        SNSW-102P16EU
     2024-11-13 17:00:20   model_family    Plus/Gen2
     2024-11-13 17:00:20   model_function  switch
     2024-11-13 17:00:20   model_name      Shelly Plus 2PM
     2024-12-14 05:02:39   network         <html>connected to <a href="http://192.168.178.119">192.168.178.119</a> (Wifi)</html>
     2024-12-14 05:02:39   network_connection online
     2024-12-14 05:01:39   network_disconnects 2
     2024-11-12 07:48:07   network_ip-address 192.168.178.119
     2025-01-09 13:20:00   network_rssi    -67 dBm (fair)
     2024-11-11 18:23:57   network_ssid    Karamba
     2024-11-11 23:04:11   network_threshold -80 dBm
     2024-11-12 07:48:07   network_wifi_roaming -80 dBm
     2025-01-09 08:05:00   pfactor_0       0
     2025-01-09 13:20:00   pfactor_1       0.86
     2025-01-09 08:05:00   power_0         0 W
     2025-01-09 13:20:00   power_1         101.6 W
     2024-12-31 18:30:01   protection_0    none
     2024-12-31 18:30:01   protection_1    none
     2025-01-09 09:20:00   relay_0         off
     2024-12-31 20:35:00   relay_1         on
     2025-01-09 13:20:00   source_0        SHC
     2024-12-31 23:35:00   source_1        init
     2024-12-19 17:21:54   state           OK
     2024-12-31 19:35:00   timer_0         -
     2024-12-31 18:30:01   timer_1         -
     2025-01-09 13:20:00   uptime          239896 sec, last reboot at 2025-01-06 18:41:44
     2025-01-09 13:20:00   voltage_0       239.7 V
     2025-01-09 13:20:00   voltage_1       239.8 V
     2024-11-12 07:48:07   webhook_cnt     0 / 0 / 0
     2024-11-11 18:23:43   webhook_ver     0
   helper:
     Sets       config:ap_disable,ap_enable interval password reboot:noArg update:noArg name reset:noArg clear:disconnects,error,energy,responsetimes actions on off toggle on-for-timer off-for-timer ON:noArg OFF:noArg xtrachannels:noArg
     StatusCall 0
     range_extender disabled
     settings_time 1736425200.8747
     timer      0
Attributes:
   interval   3600
   mode       relay
   model      shellyplus2pm
   room       Unsorted
   showunits  normal2
   verbose    0
   webhook    WEB

Charity

#1070
Einen schönen Abend, vorab mal ein dickes Lob, was hier an Arbeit bereits ins Modul gesteckt wurde.
Dadurch konnte ich mir auch schon einige Shelly's in Fhem integrieren.

Heute habe ich es endlich geschafft meinen defekten Homematic HM-LC-SW2PBU-FM durch einen Shelly 2PM Gen3 zu ersetzen.
Aber leider genau den bekomm ich in Fhem nicht zum laufen. Hat das schon jemand geschafft ?

Hier mal das Listing aus der "Standard" Einbindung :

Internals:
   .AttrList  model:generic,shelly1,shelly1L,shelly1pm,shelly2,shelly2.5,shelly3em,shelly4,shellybulb,shellydimmer,shellyem,shellyi3,shellyplug,shellyplus010v,shellyplus1,shellyplus1pm,shellyplus2pm,shellyplusi4,shellyplusplug,shellypluspm,shellyplusrgbwpm,shellyplusuni,shellypmmini,shellypro1,shellypro1pm,shellypro2,shellypro2pm,shellypro3,shellypro3em,shellypro4pm,shellyprodm1pm,shellyprodm2pm,shellyprodual,shellyproem50,shellyrgbw,shellyuni,walldisplay1 maxAge ShellyName interval timeout shellyuser showunits:none,original webhook:WEB,WEBhook verbose:0,1,2,3,4,5 event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading
   CFGFN     
   DEF        192.168.0.120
   FUUID      67812c21-f33f-2728-7a57-3ab28f611a0688db
   INTERVAL   60
   NAME       ShellySwitchKitchen
   NR         1081
   NTFY_ORDER 50-ShellySwitchKitchen
   STATE      Error
   TYPE       Shelly
   eventCount 678
   units      0
   .attraggr:
   .attrminint:
   READINGS:
     2025-01-10 20:49:45   error           error in command: id or component not found
     2025-01-10 15:20:46   mac             8C:BF:EA:A2:9A:40
     2025-01-10 15:20:46   model_ID        S3SW-002P16EU
     2025-01-10 15:20:46   model_function  switch
     2025-01-10 15:45:04   network         Error: Timeout connecting
     2025-01-10 15:45:04   network_connection offline
     2025-01-10 20:37:45   network_disconnects 8
     2025-01-10 20:38:45   state           Error
   helper:
     Sets       config interval password reboot:noArg update:noArg name reset:noArg clear:disconnects,error,responsetimes actions
     StatusCall 0
     settings_time 0
     timer      0
Attributes:
   model      generic
   room       Shelly

Das Model wird leider nicht automatisch erkannt. Und in der Liste der aktuellen Module
generic,shelly1,shelly1L,shelly1pm,shelly2,shelly2.5,shelly3em,shelly4,shellybulb,shellydimmer,shellyem,shellyi3,shellyplug,shellyplus010v,shellyplus1,shellyplus1pm,shellyplus2pm,shellyplusi4,shellyplusplug,shellypluspm,shellyplusrgbwpm,shellyplusuni,shellypmmini,shellypro1,shellypro1pm,shellypro2,shellypro2pm,shellypro3,shellypro3em,shellypro4pm,shellyprodm1pm,shellyprodm2pm,shellyprodual,shellyproem50,shellyrgbw,shellyuni,walldisplay1
Ist der 2PM Gen3 nicht gelistet. Gibt es da ein "Alternativ" Model ?

Hab zwar mittlerweile die Http SchaltURL's aus dem Thread herausgelesen und die funktionieren auch.
http://<IP-Adresse>/rpc/Switch.Set=id0&on=true ... usw.

Aber der 2PM kann wie die Shelly Plug S MTR Gen3 auch die Leistung messen, die ich mir in dem Fall gerne ebenfalls als Plot einbinden wollen würde.

Hier der Status vom Gerät selbst :
{
    "ble": {},
    "bthome": {
        "errors": [
            "bluetooth_disabled"
        ]
    },
    "cloud": {
        "connected": true
    },
    "input:0": {
        "id": 0,
        "state": true
    },
    "input:1": {
        "id": 1,
        "state": true
    },
    "knx": {},
    "mqtt": {
        "connected": false
    },
    "switch:0": {
        "id": 0,
        "source": "SHC",
        "output": false,
        "apower": 0,
        "voltage": 235.1,
        "freq": 50,
        "current": 0,
        "pf": 0,
        "aenergy": {
            "total": 108.143,
            "by_minute": [
                0,
                0,
                0
            ],
            "minute_ts": 1736537160
        },
        "ret_aenergy": {
            "total": 0,
            "by_minute": [
                0,
                0,
                0
            ],
            "minute_ts": 1736537160
        },
        "temperature": {
            "tC": 45.7,
            "tF": 114.3
        }
    },
    "switch:1": {
        "id": 1,
        "source": "SHC",
        "output": false,
        "apower": 0,
        "voltage": 235.1,
        "freq": 50,
        "current": 0,
        "pf": 0,
        "aenergy": {
            "total": 34.867,
            "by_minute": [
                0,
                0,
                0
            ],
            "minute_ts": 1736537160
        },
        "ret_aenergy": {
            "total": 0,
            "by_minute": [
                0,
                0,
                0
            ],
            "minute_ts": 1736537160
        },
        "temperature": {
            "tC": 45.7,
            "tF": 114.3
        }
    },
    "sys": {
        "mac": "8CBFEAA29A40",
        "restart_required": false,
        "time": "20:26",
        "unixtime": 1736537215,
        "uptime": 23806,
        "ram_size": 256612,
        "ram_free": 125636,
        "fs_size": 1048576,
        "fs_free": 577536,
        "cfg_rev": 18,
        "kvs_rev": 0,
        "schedule_rev": 0,
        "webhook_rev": 0,
        "available_updates": {
            "beta": {
                "version": "1.5.0-beta1"
            }
        },
        "reset_reason": 3
    },
    "wifi": {
        "sta_ip": "192.168.0.120",
        "status": "got ip",
        "ssid": "GT550WLAN25",
        "rssi": -57
    },
    "ws": {
        "connected": false
    }
}

Gibt es da eine Möglichkeit, den korrekt einzubinden.
Über das Model shellyplus2pm kommt zwar eine Liste an Readings aber die passen eben nicht.

Aktuell hab ich den eben noch in der Cloud um die beiden Channels per Alexa schalten zu können, aber es wäre schön das über FHEM machen zu können um aus der Shelly Cloud wieder rauszukommen.

Ach und den "S3SW-001P16EU"   => ["shellyplus1pm",  "Shelly 1PM Gen3" hab ich auch gerade in der 36_shelly.pm auf GitHub gefunden. Ev. läßt sich der auf den 2PM erweitern.

Danke

Charity

Und so sieht das List auf das Device beim Model shellyplus2pm aus.
Allerdings liefert er hier einen Error:position und die Messwerte kommen auch nichtrein.
Aber ist eben nicht das richtige Model

Internals:
   .AttrList  model:generic,shellyplus2pm maxAge ShellyName interval timeout  showunits:none,original webhook:WEB,WEBhook verbose:0,1,2,3,4,5 event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading
   CFGFN     
   DEF        192.168.0.120
   FUUID      67812c21-f33f-2728-7a57-3ab28f611a0688db
   INTERVAL   60
   MOVING     stopped
   NAME       ShellySwitchKitchen
   NR         1081
   NTFY_ORDER 50-ShellySwitchKitchen
   SHELLYID   shelly2pmg3-8cbfeaa29a40
   STATE      Error: position
   TYPE       Shelly
   eventCount 712
   units      0
   .attraggr:
   .attrminint:
   OLDREADINGS:
   READINGS:
     2025-01-10 21:04:46   ap              disabled open
     2025-01-10 21:04:46   ap_clients      disabled
     2025-01-10 21:04:46   ap_name         Shelly2PMG3-8CBFEAA29A40
     2025-01-10 21:04:46   auto_off_0      disabled
     2025-01-10 21:04:46   auto_off_1      disabled
     2025-01-10 21:04:46   auto_on_0       disabled
     2025-01-10 21:04:46   auto_on_1       disabled
     2025-01-10 21:04:46   ble             disabled
     2025-01-10 21:04:46   ble_obs         -
     2025-01-10 21:04:46   ble_rpc         -
     2025-01-10 21:04:45   cloud           enabled(connected)
     2025-01-10 21:04:45   current_       
     2025-01-10 21:03:45   error           error in command: id or component not found
     2025-01-10 21:04:46   firmware_ID     20240731-123728/1.4.99-2pmg3prod0-ge3db05c
     2025-01-10 21:04:46   firmware_current v1.4.99-2pmg3prod0
     2025-01-10 21:05:45   firmware_updIcon OK
     2025-01-10 21:05:45   firmware_updText -/-
     2025-01-10 21:04:45   input_0         on
     2025-01-10 21:04:46   input_0_function flip
     2025-01-10 21:04:46   input_0_mode    switch straight enabled
     2025-01-10 21:04:45   input_1         on
     2025-01-10 21:04:46   input_1_mode    switch straight enabled
     2025-01-10 15:20:46   mac             8C:BF:EA:A2:9A:40
     2025-01-10 15:20:46   model_ID        S3SW-002P16EU
     2025-01-10 15:20:46   model_function  switch
     2025-01-10 21:04:45   network         <html>connected to <a href="http://192.168.0.120">192.168.0.120</a> (Wifi)</html>
     2025-01-10 21:04:45   network_connection online
     2025-01-10 20:37:45   network_disconnects 8
     2025-01-10 21:04:45   network_ip-address 192.168.0.120
     2025-01-10 21:06:45   network_rssi    -60
     2025-01-10 21:04:45   network_ssid    GT550WLAN25
     2025-01-10 21:04:46   network_wifi_roaming -80
     2025-01-10 21:04:45   pct             unknown
     2025-01-10 21:04:45   position        position lost
     2025-01-10 21:04:45   power           
     2025-01-10 21:04:45   power_         
     2025-01-10 21:04:45   protection_     none
     2025-01-10 21:05:45   relay_0         on
     2025-01-10 21:05:45   relay_1         on
     2025-01-10 21:04:45   source_0        WS_in
     2025-01-10 21:04:45   source_1        WS_in
     2025-01-10 21:06:45   state           Error: position
     2025-01-10 21:06:45   uptime          26196
     2025-01-10 21:04:45   voltage_       
     2025-01-10 21:04:46   webhook_cnt     0 / 0 / 0
     2025-01-10 21:04:45   webhook_ver     0
   helper:
     Sets       config interval password reboot:noArg update:noArg name reset:noArg clear:disconnects,error,responsetimes actions
     StatusCall 0
     range_extender disabled
     settings_time 1736539486.07374
     timer      0
Attributes:
   model      shellyplus2pm
   room       Shelly

Charity

Model : shellyplus1pm funktioniert hier besser. Da kommen auch die Readings zum Kanal 0 zu den Energiewerten rein.
Schalten läßt er sich leider nicht.

Internals:
   .AttrList  model:generic,shellyplus1pm maxAge ShellyName interval timeout  showunits:none,original webhook:WEB,WEBhook verbose:0,1,2,3,4,5 event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading
   CFGFN     
   DEF        192.168.0.120
   FUUID      67817ebd-f33f-2728-127b-791a6c13924b4260
   INTERVAL   60
   NAME       ShellySwitchKitchen
   NR         1086
   NTFY_ORDER 50-ShellySwitchKitchen
   SHELLYID   shelly2pmg3-8cbfeaa29a40
   STATE      on
   TYPE       Shelly
   eventCount 12
   units      0
   .attraggr:
   .attrminint:
   READINGS:
     2025-01-10 21:11:35   ap              disabled open
     2025-01-10 21:11:35   ap_clients      disabled
     2025-01-10 21:11:35   ap_name         Shelly2PMG3-8CBFEAA29A40
     2025-01-10 21:11:35   auto_off        disabled
     2025-01-10 21:11:35   auto_on         disabled
     2025-01-10 21:11:35   ble             disabled
     2025-01-10 21:11:35   ble_obs         -
     2025-01-10 21:11:35   ble_rpc         -
     2025-01-10 21:11:37   cloud           enabled(connected)
     2025-01-10 21:12:37   current         0.382
     2025-01-10 21:12:37   energy          123.235
     2025-01-10 21:12:37   energy_purchased 123.235
     2025-01-10 21:11:37   energy_returned 0
     2025-01-10 21:10:37   error           error in command: id or component not found
     2025-01-10 21:11:35   firmware_ID     20240731-123728/1.4.99-2pmg3prod0-ge3db05c
     2025-01-10 21:11:35   firmware_current v1.4.99-2pmg3prod0
     2025-01-10 21:11:37   firmware_updIcon OK
     2025-01-10 21:11:37   firmware_updText -/-
     2025-01-10 21:11:37   frequency       50
     2025-01-10 21:11:37   input           on
     2025-01-10 21:11:35   input_function  flip
     2025-01-10 21:11:35   input_mode      switch straight enabled
     2025-01-10 21:12:37   inttemp         54.7
     2025-01-10 21:10:37   mac             8C:BF:EA:A2:9A:40
     2025-01-10 21:10:37   model_ID        S3SW-002P16EU
     2025-01-10 21:10:37   model_function  switch
     2025-01-10 21:11:37   network         <html>connected to <a href="http://192.168.0.120">192.168.0.120</a> (Wifi)</html>
     2025-01-10 21:11:37   network_connection online
     2025-01-10 21:11:37   network_ip-address 192.168.0.120
     2025-01-10 21:12:37   network_rssi    -58
     2025-01-10 21:11:37   network_ssid    GT550WLAN25
     2025-01-10 21:11:35   network_wifi_roaming -80
     2025-01-10 21:11:37   pfactor         0.49
     2025-01-10 21:12:37   power           44.9
     2025-01-10 21:11:37   protection      none
     2025-01-10 21:11:37   relay           on
     2025-01-10 21:11:37   source          WS_in
     2025-01-10 21:11:37   state           on
     2025-01-10 21:12:37   uptime          26548
     2025-01-10 21:12:37   voltage         237.4
     2025-01-10 21:11:35   webhook_cnt     0 / 0 / 0
     2025-01-10 21:11:35   webhook_ver     0
   helper:
     Sets       config interval password reboot:noArg update:noArg name reset:noArg clear:disconnects,error,responsetimes actions
     StatusCall 0
     range_extender disabled
     settings_time 1736539895.19388
     timer      0
Attributes:
   model      shellyplus1pm
   room       Shelly

Starkstrombastler

Zitat von: Charity am 10 Januar 2025, 20:57:56Ist der 2PM Gen3 nicht gelistet. Gibt es da ein "Alternativ" Model ?
Das Shelly-Modul basiert bisher darauf, dass sich die Firmware der Gen3-Shellies wie die der Gen2-Shellies verhält. Daher werden die Gen3-Shellies nicht separat "gelistet".

Unklar ist, warum die Autoerkennung nicht funktioniert hat. Die model_id wird ja erkannt und die ist auch im Modul hinterlegt:
Zitat von: Charity am 10 Januar 2025, 21:09:072025-01-10 15:20:46  model_ID        S3SW-002P16EU
Was gibt der Shelly aus, wenn du im Browser
http://<ip-des-Shelly>/shellyeingibts?

Auffällig ist
Zitat von: Charity am 10 Januar 2025, 21:09:072025-01-10 15:20:46   model_function  switch
da an anderer Stelle
Zitat von: Charity am 10 Januar 2025, 21:09:072025-01-10 21:04:45   pct             unknown
2025-01-10 21:04:45   position        position lost
auftaucht, was nach einer Vermischung der beim Shelly2* möglichen Modi aussieht.

Was ist auf der Website des Shelly unter Settings - Device profile eingestellt?

Das Modul wurde mit Shelly2PM v1.4.4 getestet, die Firmware auf deinem Shelly ist relativ neu:
Zitat von: Charity am 10 Januar 2025, 21:09:072025-01-10 21:04:46   firmware_ID     20240731-123728/1.4.99-2pmg3prod0-ge3db05c
2025-01-10 21:04:46   firmware_current v1.4.99-2pmg3prod0
Möglicherweise hat sich da etwas Signifikantes geändert.


Keine Ahnung, was da auf Github eingestellt ist. Von mir erstellte Testversionen stehen im Entwicklungs-Thread zur Verfügung:
https://forum.fhem.de/index.php?topic=137222.105
Das bitte einmal ausprobieren.
IPC\Ubuntu + Fhem, 1wire, Shellies, Siemens Logo!, Z-Wave, PhilipsTV, Vu+duo2, KM200

GerhardJ

Hallo zusammen,

habe gestern einen ShellyPlus RGBW PM in Betrieb genommen. Als Modus nutze ich 'Lights x4'. Funktioniert soweit, einzig der Log wird mit diesen Meldungen gefüllt:
2025.01.12 10:11:59 2: esszi.LED_Sued: undefined value for energy_0
2025.01.12 10:11:59 2: esszi.LED_Sued: undefined value for energy_1
2025.01.12 10:11:59 2: esszi.LED_Sued: undefined value for energy_2
2025.01.12 10:11:59 2: esszi.LED_Sued: undefined value for energy_3
Verbose=5 zeigt dieses hier:
2025.01.12 12:37:15 5: [Shelly_status2G:emeter] esszi.LED_Sued: Processing metering channel_0
2025.01.12 12:37:15 5: [Shelly_status2G:emeter] esszi.LED_Sued light voltage_0=24.9, current_0=, power_0=
2025.01.12 12:37:15 2: esszi.LED_Sued: undefined value for energy_0
2025.01.12 12:37:15 5: [Shelly_status2G:emeter] esszi.LED_Sued: Processing metering channel_1
2025.01.12 12:37:15 5: [Shelly_status2G:emeter] esszi.LED_Sued light voltage_1=24.9, current_1=, power_1=
2025.01.12 12:37:15 2: esszi.LED_Sued: undefined value for energy_1
2025.01.12 12:37:15 5: [Shelly_status2G:emeter] esszi.LED_Sued: Processing metering channel_2
2025.01.12 12:37:15 5: [Shelly_status2G:emeter] esszi.LED_Sued light voltage_2=24.9, current_2=, power_2=
2025.01.12 12:37:15 2: esszi.LED_Sued: undefined value for energy_2
2025.01.12 12:37:15 5: [Shelly_status2G:emeter] esszi.LED_Sued: Processing metering channel_3
2025.01.12 12:37:15 5: [Shelly_status2G:emeter] esszi.LED_Sued light voltage_3=24.9, current_3=, power_3=
2025.01.12 12:37:15 2: esszi.LED_Sued: undefined value for energy_3


36_Shelly.pm Version ist diese hier:
29334 2024-11-06 13:58:48Z Starkstrombastler

Frage: Wie bekomme ich die Meldungen weg? Welche Informationen wären noch hilfreich (Def und Readings hängen an)?

Irgendwie scheint es die 'energy_x' Readings nicht erstellt zu haben und kann auch nix auslesen...

Danke und Grüße
 Gerhard

Starkstrombastler

Zitat von: GerhardJ am 12 Januar 2025, 12:54:54Irgendwie scheint es die 'energy_x' Readings nicht erstellt zu haben und kann auch nix auslesen...
Was gibt der Shelly aus, wenn du im Browser
http://192.168.99.111/rpc/Shelly.GetStatuseingibst?
IPC\Ubuntu + Fhem, 1wire, Shellies, Siemens Logo!, Z-Wave, PhilipsTV, Vu+duo2, KM200

GerhardJ

#1076
Ein kleiner Nachtrag:
An den 4 Ausgängen hängt nur an '0' ein LED-Streifen. Habe gerade im Web-Interface auf 'No Load' geklickt und dann 'Calibration' durchgeführt. Das führt dann dazu, dass 'energy_0' nun als Reading existiert.
'energy_[1..3]' existieren immer noch nicht, da hier keine Kalibrierung durchgeführt werden kann.

Eventuell ein Sonderfall...

Shelly.GetStatus (nach der besagten Kalibrierung) hängt an.

Grüße
 Gerhard

Charity

Hallo Starkstrombastler,

also
http://<ip-des-Shelly>/shellyliefert
{
    "name": null,
    "id": "shelly2pmg3-8cbfeaa29a40",
    "mac": "8CBFEAA29A40",
    "slot": 1,
    "model": "S3SW-002P16EU",
    "gen": 3,
    "fw_id": "20240731-123728/1.4.99-2pmg3prod0-ge3db05c",
    "ver": "1.4.99-2pmg3prod0",
    "app": "S2PMG3",
    "auth_en": false,
    "auth_domain": null,
    "profile": "switch"
}

Unter Settings - Device Profile - gibt es die Wahl zwischen Cover & Switch - und bei mir ist Switch aktiviert.

Ich werde die neue Testversion von dir mal ausprobieren.

Ich lösch den Shelly dann mal raus und binde ihn erneut ein.
Geb dann gleich zurück wie der Shelly dann in FHEM aussieht.


Charity

Mit deiner Testversion sieht das ganze schon viel besser aus:

Device Listing :

Internals:
   .AttrList  model:generic,shellyplus2pm maxAge ShellyName mode:relay,roller interval timeout  defchannel pct100:open,closed maxtime_close maxtime_open showinputs:show,hide maxpower showunits:none,original,normal,normal2,ISO webhook:WEB,WEBhook verbose:0,1,2,3,4,5 event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading
   CFGFN     
   DEF        192.168.0.120
   FUUID      6783b7f3-f33f-2728-a64d-6496c328f4dde8bc
   INTERVAL   60
   NAME       ShellySwitchKitchen
   NR         1069
   NTFY_ORDER 50-ShellySwitchKitchen
   SHELLYID   shelly2pmg3-8cbfeaa29a40
   STATE      OK
   TYPE       Shelly
   eventCount 12
   units      0
   .attraggr:
   .attrminint:
   OLDREADINGS:
   READINGS:
     2025-01-12 13:39:15   ap              disabled open
     2025-01-12 13:39:15   ap_clients      disabled
     2025-01-12 13:39:15   ap_name         Shelly2PMG3-8CBFEAA29A40
     2025-01-12 13:39:15   auto_off_0      disabled
     2025-01-12 13:39:15   auto_off_1      disabled
     2025-01-12 13:39:15   auto_on_0       disabled
     2025-01-12 13:39:15   auto_on_1       disabled
     2025-01-12 13:39:15   ble             disabled
     2025-01-12 13:39:15   ble_obs         -
     2025-01-12 13:39:15   ble_rpc         -
     2025-01-12 13:39:15   cloud           enabled(connected)
     2025-01-12 13:39:15   current_0       0
     2025-01-12 13:39:15   current_1       0
     2025-01-12 13:39:15   energy_0        277.954
     2025-01-12 13:39:15   energy_1        104.628
     2025-01-12 13:39:15   energy_purchased_0 277.954
     2025-01-12 13:39:15   energy_purchased_1 104.628
     2025-01-12 13:39:15   energy_returned_0 0
     2025-01-12 13:39:15   energy_returned_1 0
     2025-01-12 13:39:15   firmware_ID     20240731-123728/1.4.99-2pmg3prod0-ge3db05c
     2025-01-12 13:39:15   firmware_current v1.4.99-2pmg3prod0
     2025-01-12 13:40:15   firmware_updIcon OK
     2025-01-12 13:40:15   firmware_updText -/-
     2025-01-12 13:39:15   frequency_0     50
     2025-01-12 13:39:15   frequency_1     50
     2025-01-12 13:39:15   input_0         on
     2025-01-12 13:39:15   input_0_function flip
     2025-01-12 13:39:15   input_0_mode    switch straight enabled
     2025-01-12 13:39:15   input_1         on
     2025-01-12 13:39:15   input_1_mode    switch straight enabled
     2025-01-12 13:40:15   inttemp         45.4
     2025-01-12 13:39:15   mac             8C:BF:EA:A2:9A:40
     2025-01-12 13:39:15   model_ID        S3SW-002P16EU
     2025-01-12 13:39:15   model_family    Gen3
     2025-01-12 13:39:15   model_function  switch
     2025-01-12 13:39:15   model_name      Shelly 2PM Gen3
     2025-01-12 13:39:15   network         <html>connected to <a href="http://192.168.0.120">192.168.0.120</a> (Wifi)</html>
     2025-01-12 13:39:15   network_DNS     shelly2pmg3-8cbfeaa29a40.GT550BrainWorxs.net
     2025-01-12 13:39:15   network_connection online
     2025-01-12 13:39:15   network_ip-address 192.168.0.120
     2025-01-12 13:40:15   network_rssi    -55
     2025-01-12 13:39:15   network_ssid    GT550WLAN25
     2025-01-12 13:39:15   network_wifi_roaming -80
     2025-01-12 13:39:15   pfactor_0       0
     2025-01-12 13:39:15   pfactor_1       0
     2025-01-12 13:39:15   power_0         0
     2025-01-12 13:39:15   power_1         0
     2025-01-12 13:39:15   protection_0    none
     2025-01-12 13:39:15   protection_1    none
     2025-01-12 13:39:15   relay_0         off
     2025-01-12 13:39:15   relay_1         off
     2025-01-12 13:39:27   scripts         0
     2025-01-12 13:39:15   source_0        SHC
     2025-01-12 13:39:15   source_1        SHC
     2025-01-12 13:39:15   state           OK
     2025-01-12 13:40:15   uptime          172211
     2025-01-12 13:39:15   voltage_0       231.9
     2025-01-12 13:39:15   voltage_1       232
     2025-01-12 13:39:15   webhook_cnt     0 / 0 / 0
     2025-01-12 13:39:15   webhook_ver     0
   helper:
     Sets       config:ap_disable,ap_enable interval password reboot:noArg update:noArg name reset:noArg clear:disconnects,error,energy,responsetimes actions on off toggle on-for-timer off-for-timer ON:noArg OFF:noArg xtrachannels:noArg
     StatusCall 0
     range_extender disabled
     settings_time 1736685555.88638
     timer      0
Attributes:
   mode       relay
   model      shellyplus2pm
   room       Shelly

Da wird das Model nun auch richtig erkannt.
Auch die Energiewerte kommen korrekt in FHEM an.

Muss ich zum schalten per WebCMD die Commands http://<IP-Adresse>/rpc/Switch.Set=id0&on=true einbinden, oder gibt es da einen anderen Weg ?

Charity

#1079
Leider bekommt FHEM oder der Shelly keine Änderungen mit.
Heißt solange nicht in Fhem auf ON/OFF => beide Kanäle werden dann eingeschalten/ausgeschalten werden, ändert sich in Fhem beim Shelly gar nichts.
Damit sind die Energiewerte in einem Plot leer.
Bedeutet auch, wenn per Shelly WebOberfläche oder den Wandschalter der Status geändert wird, kann in FHEM nicht mehr das gegenteil geschalten werden.