shelly1mini gen3 / kein set möglich

Begonnen von Rainer82, 18 Oktober 2025, 14:02:04

Vorheriges Thema - Nächstes Thema

Rainer82

Hallo, habe einen shelly1minigen3 per shellyPlus_1 eingebunden. Ich kann leider kein set für das Schalten on/off nutzen. Kann jemand weiterhelfen? Danke.

Internals:
   CFGFN     
   CID        shelly1minig3_Licht_Zaun
   DEF        shelly1minig3_Licht_Zaun
   FUUID      68f37f1c-f33f-9f73-0b2e-412b265d2d4a27ee
   IODev      MQTT2_FHEM_Server
   LASTInputDev MQTT2_FHEM_Server
   MQTT2_FHEM_Server_CONN MQTT2_FHEM_Server_192.168.178.234_56896
   MQTT2_FHEM_Server_MSGCNT 11
   MQTT2_FHEM_Server_TIME 2025-10-18 13:56:39
   MSGCNT     11
   NAME       shelly1minig3_Licht_Zaun
   NR         994
   STATE      set_toggle
   TYPE       MQTT2_DEVICE
   eventCount 35
   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:
     2025-10-18 13:50:52   IODev           MQTT2_FHEM_Server
     2025-10-18 13:55:32   attrTemplateVersion 20240627
     2025-10-18 13:56:39   mqtt_connected  true
     2025-10-18 13:56:39   online          true
     2025-10-18 13:56:39   rpc_dst         shelly1minig3-d0cf13c5b91c/events
     2025-10-18 13:56:39   rpc_method      NotifyStatus
     2025-10-18 13:56:39   rpc_params_mqtt_connected true
     2025-10-18 13:56:39   rpc_params_sys_last_sync_ts 1760788599
     2025-10-18 13:56:39   rpc_params_sys_time 13:56
     2025-10-18 13:56:39   rpc_params_sys_unixtime 1760788599
     2025-10-18 13:56:39   rpc_params_ts   1760788599.53
     2025-10-18 13:56:39   rpc_src         shelly1minig3-d0cf13c5b91c
     2025-10-18 13:55:36   state           set_toggle
     2025-10-18 13:56:05   switch_0_id     0
     2025-10-18 13:56:05   switch_0_output false
     2025-10-18 13:56:05   switch_0_source WS_in
     2025-10-18 13:56:05   switch_0_temperature_tC 44.6
     2025-10-18 13:56:05   switch_0_temperature_tF 112.3
     2025-10-18 13:56:39   sys_bthc_rev    0
     2025-10-18 13:56:39   sys_btrelay_rev 0
     2025-10-18 13:56:39   sys_cfg_rev     24
     2025-10-18 13:56:39   sys_fs_free     475136
     2025-10-18 13:56:39   sys_fs_size     917504
     2025-10-18 13:56:39   sys_kvs_rev     0
     2025-10-18 13:56:39   sys_last_sync_ts 1760788599
     2025-10-18 13:56:39   sys_mac         D0CF13C5B91C
     2025-10-18 13:56:39   sys_ram_free    143428
     2025-10-18 13:56:39   sys_ram_min_free 137428
     2025-10-18 13:56:39   sys_ram_size    264164
     2025-10-18 13:56:39   sys_reset_reason 3
     2025-10-18 13:56:39   sys_restart_required false
     2025-10-18 13:56:39   sys_schedule_rev 0
     2025-10-18 13:56:39   sys_time        13:56
     2025-10-18 13:56:39   sys_unixtime    1760788599
     2025-10-18 13:56:39   sys_uptime      4
     2025-10-18 13:56:39   sys_utc_offset  7200
     2025-10-18 13:56:39   sys_webhook_rev 0
     2025-10-18 13:55:32   x_reboot        set
Attributes:
   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'?'<a href="/fhem?cmd.dummy=set '.$name.' x_reboot&XHR=1"> ... Notwendigen Reboot durchführen</a>':''; qq(<a href="http://$ip" target="_blank">${onl}</a><a href="/fhem?cmd.dummy=set $name toggle&XHR=1">${light}</a>$reb<div>Temp: $temp °C</div>)}
   devicetopic shelly1minig3-Licht-Zaun
   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:.* {}
shelly1minig3_Licht_Zaun:shelly1minig3-d0cf13c5b91c/status/switch_0:.* { json2nameValue($EVENT, 'switch_0_', $JSONMAP) }
shelly1minig3_Licht_Zaun:shelly1minig3-d0cf13c5b91c/status/sys:.* { json2nameValue($EVENT, 'sys_', $JSONMAP) }
shelly1minig3_Licht_Zaun:shelly1minig3-d0cf13c5b91c/online:.* online
shelly1minig3_Licht_Zaun:shelly1minig3-d0cf13c5b91c/status/mqtt:.* { json2nameValue($EVENT, 'mqtt_', $JSONMAP) }
shelly1minig3_Licht_Zaun:shelly1minig3-d0cf13c5b91c/events/rpc:.* { json2nameValue($EVENT, 'rpc_', $JSONMAP) }
   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     :