Hallo zusammen,
ich habe mehrere Shellys.
1 Shelly 1Plus legt sich sauber in FHEM an, aber er schaltet nicht.
Hat jemand eine Idee wie ich das Device Prüfen kann oder an was es liegt?
Internals:
CFGFN
CID Kuehlschrank
DEF Kuehlschrank
FUUID 670d172a-f33f-ec96-5c80-e0e4b09a407089b1
IODev MQTT2_FHEM_Server
LASTInputDev MQTT2_FHEM_Server
MQTT2_FHEM_Server_CONN MQTT2_FHEM_Server_192.168.178.145_57848
MQTT2_FHEM_Server_MSGCNT 28
MQTT2_FHEM_Server_TIME 2024-10-14 15:15:46
MSGCNT 28
NAME MQTT2_Kuehlschrank
NR 1229
STATE set_off
TYPE MQTT2_DEVICE
eventCount 75
JSONMAP:
params_switch_0_temperature_tC temperature
params_switch_0_temperature_tF 0
params_wifi_sta_ip ip
req_result_in_mode in_mode
switch_state state
switch_temperature_tC temperature
switch_temperature_tF 0
OLDREADINGS:
READINGS:
2024-10-14 15:05:46 IODev MQTT2_FHEM_Server
2024-10-14 15:13:44 attrTemplateVersion 20240627
2024-10-14 15:15:45 ble {}
2024-10-14 15:15:45 cfg_rev 36
2024-10-14 15:15:46 connected true
2024-10-14 15:15:46 dst Kueche_Kuehlschrank_Licht/events
2024-10-14 15:15:45 fs_free 106496
2024-10-14 15:15:45 fs_size 393216
2024-10-14 15:15:45 id 0
2024-10-14 15:15:45 kvs_rev 0
2024-10-14 15:15:45 mac 1C6920080154
2024-10-14 15:15:46 method NotifyStatus
2024-10-14 15:15:45 online true
2024-10-14 15:15:45 output false
2024-10-14 15:15:46 params_cloud_connected true
2024-10-14 15:15:39 params_events_1_cfg_rev 36
2024-10-14 15:15:41 params_events_1_component sys
2024-10-14 15:15:41 params_events_1_event scheduled_restart
2024-10-14 15:15:39 params_events_1_restart_required true
2024-10-14 15:15:41 params_events_1_time_ms 996
2024-10-14 15:15:41 params_events_1_ts 1728911741.09
2024-10-14 15:15:45 params_input_0_id 0
2024-10-14 15:15:45 params_input_0_state false
2024-10-14 15:15:45 params_mqtt_connected true
2024-10-14 15:15:45 params_switch_0_id 0
2024-10-14 15:15:45 params_switch_0_output false
2024-10-14 15:15:45 params_switch_0_source init
2024-10-14 15:15:45 params_switch_0_temperature_tC 46.6
2024-10-14 15:15:45 params_switch_0_temperature_tF 116.0
2024-10-14 15:15:45 params_sys_cfg_rev 36
2024-10-14 15:15:45 params_sys_fs_free 106496
2024-10-14 15:15:45 params_sys_fs_size 393216
2024-10-14 15:15:45 params_sys_kvs_rev 0
2024-10-14 15:15:45 params_sys_mac 1C6920080154
2024-10-14 15:15:45 params_sys_ram_free 142948
2024-10-14 15:15:45 params_sys_ram_size 254024
2024-10-14 15:15:45 params_sys_reset_reason 3
2024-10-14 15:15:45 params_sys_restart_required false
2024-10-14 15:15:45 params_sys_schedule_rev 1
2024-10-14 15:15:45 params_sys_uptime 2
2024-10-14 15:15:45 params_sys_webhook_rev 0
2024-10-14 15:15:46 params_ts 1728911746.67
2024-10-14 15:15:45 params_wifi_rssi -45
2024-10-14 15:15:45 params_wifi_ssid Dirk & Anjas Home
2024-10-14 15:15:45 params_wifi_sta_ip 192.168.178.145
2024-10-14 15:15:45 params_wifi_status got ip
2024-10-14 15:15:45 params_ws_connected false
2024-10-14 15:15:45 ram_free 141960
2024-10-14 15:15:45 ram_size 253964
2024-10-14 15:15:45 reset_reason 3
2024-10-14 15:15:45 restart_required false
2024-10-14 15:15:45 rssi -45
2024-10-14 15:15:45 schedule_rev 1
2024-10-14 15:15:45 source init
2024-10-14 15:15:46 src shellyplus1-1c6920080154
2024-10-14 15:15:45 ssid Dirk & Anjas Home
2024-10-14 15:15:45 sta_ip 192.168.178.145
2024-10-14 15:16:08 state set_off
2024-10-14 15:15:45 status got ip
2024-10-14 15:15:45 temperature_tC 46.6
2024-10-14 15:15:45 temperature_tF 116.0
2024-10-14 15:15:39 time 15:15
2024-10-14 15:15:39 unixtime 1728911739
2024-10-14 15:15:45 uptime 2
2024-10-14 15:15:45 webhook_rev 0
2024-10-14 15:13:44 x_reboot set
Attributes:
alias MQTT2_Kuehlschrank
devStateIcon {my $onl = ReadingsVal($name,'online','false') eq 'false'?'10px-kreis-rot':'10px-kreis-gruen'; $onl = FW_makeImage($onl); my $light = FW_makeImage(ReadingsVal($name,'state','off')); my $temp = ReadingsVal($name,'temperature','-100'); my $ip = ReadingsVal($name,'ip','none'); my $reb = ReadingsVal($name,'sys_restart_required','false') eq 'true'?' ... Notwendigen Reboot durchführen':''; qq(${onl}${light}$reb
Temp: $temp °C
)}
devicetopic Kueche_Kuehlschrank
getList in_mode:noArg in_mode $DEVICETOPIC/rpc {"id": 1,"src":"$DEVICETOPIC", "method": "Switch.GetConfig", "params": {"id": 0}}
icon message_socket
jsonMap switch_state:state switch_temperature_tC:temperature switch_temperature_tF:0 params_wifi_sta_ip:ip params_switch_0_temperature_tC:temperature params_switch_0_temperature_tF:0 req_result_in_mode:in_mode
model shellyPlus_1
readingList $DEVICETOPIC/online:.* online
$DEVICETOPIC/events/rpc:.* { json2nameValue($EVENT,'',$JSONMAP) }
$DEVICETOPIC/status/mqtt:.* { json2nameValue($EVENT, 'mqtt_', $JSONMAP) }
$DEVICETOPIC/status/sys:.* { json2nameValue($EVENT, 'sys_', $JSONMAP) }
$DEVICETOPIC/status/switch_0:.* { $EVENT =~ s/"output":true/"state":"on"/g; $EVENT =~ s/"output":false/"state":"off"/g; json2nameValue($EVENT, 'switch_', $JSONMAP) }
$DEVICETOPIC/status/cloud:.* {}
$DEVICETOPIC/rpc:.* { json2nameValue($EVENT, 'req_', $JSONMAP, 'in_mode')}
$DEVICETOPIC/status/input_0:.* { json2nameValue($EVENT, 'input_', $JSONMAP) }
fhem2shelly/rpc:.* {}
Kuehlschrank:Kueche_Kuehlschr\xc3\xa4nk_Licht/events/rpc:.* { json2nameValue($EVENT) }
Kuehlschrank:Kueche_Kuehlschr\xc3\xa4nk_Licht/status/switch_0:.* { json2nameValue($EVENT) }
Kuehlschrank:Kueche_Kuehlschrank_Licht/status/sys:.* { json2nameValue($EVENT) }
Kuehlschrank:Kueche_Kuehlschr\xc3\xa4nk_Licht/online:.* online
Kuehlschrank:Kueche_Kuehlschrank_Licht/online:.* online
Kuehlschrank:Kueche_Kuehlschrank_Licht/status/ble:.* ble
Kuehlschrank:Kueche_Kuehlschrank_Licht/status/cloud:.* { json2nameValue($EVENT) }
Kuehlschrank:Kueche_Kuehlschrank_Licht/status/input_0:.* { json2nameValue($EVENT) }
Kuehlschrank:Kueche_Kuehlschrank_Licht/status/mqtt:.* { json2nameValue($EVENT) }
Kuehlschrank:Kueche_Kuehlschrank_Licht/status/switch_0:.* { json2nameValue($EVENT) }
Kuehlschrank:Kueche_Kuehlschrank_Licht/status/wifi:.* { json2nameValue($EVENT) }
Kuehlschrank:Kueche_Kuehlschrank_Licht/status/ws:.* { json2nameValue($EVENT) }
Kuehlschrank:Kueche_Kuehlschrank_Licht/events/rpc:.* { json2nameValue($EVENT) }
room MQTT2_DEVICE
setList toggle:noArg $DEVICETOPIC/rpc {"id":0,"src":"fhem2shelly","method":"Switch.Toggle","params": {"id":0}}
off:noArg $DEVICETOPIC/rpc {"id":0,"src":"fhem2shelly","method":"Switch.Set","params": {"id":0,"on":false}}
on:noArg $DEVICETOPIC/rpc {"id":0,"src":"fhem2shelly","method":"Switch.Set","params": {"id":0,"on":true}}
on-for-timer $DEVICETOPIC/rpc {"id":0,"src":"fhem2shelly","method":"Switch.Set","params": {"id":0,"on":true,"toggle_after":$EVTPART1}}
off-for-timer $DEVICETOPIC/rpc {"id":0,"src":"fhem2shelly","method":"Switch.Set","params": {"id":0,"on":false,"toggle_after":$EVTPART1}}
in_mode:toggle,flip,detached {fhem("sleep 0.2; get $NAME in_mode"); my $val = $EVTPART1 ne 'toggle' ? $EVTPART1 : ReadingsVal($NAME,'in_mode','flip') eq 'flip' ? 'detached':'flip'; qq($DEVICETOPIC/rpc {"id":1,"src":"fhem2shelly","method":"Switch.SetConfig","params": {"id":0, "config": {"in_mode": "$val"}}})}
x_update:noArg $DEVICETOPIC/rpc {"id":0,"src":"fhem2shelly","method":"Shelly.Update","params": {"stage":"stable"}}
x_reboot:noArg $DEVICETOPIC/rpc {"id":0,"src":"fhem2shelly","method":"Shelly.Reboot"}
x_eco:true,false $DEVICETOPIC/rpc {"id":0,"src":"fhem2shelly","method":"Sys.SetConfig","params": {"config": {"device": {"eco_mode": $EVTPART1}}}}
setStateList on off toggle on-for-timer off-for-timer
webCmd on:off
Da sind ein Haufen "kaputte" readingList-Einträge drin (also alles, was mit "Kuehlschrank:" anfängt), die es eigentlich nicht geben sollte.
Keine Ahnung, warum das passiert, aber die Vermutung liegt nahe, dass da die Kommunikation wackelig ist.
Ggf. sind auch zwischenzeitliche Umbenennungen schuld, ich empfehle nicht ganz ohne Grund, die defaults in der firmware nicht zu ändern bzw. nur zu ändern, wenn es zwingende Gründe gibt...
danke, nach einem Reset funktioniert es.