Shelly per MQTT und immer wieder state=set_on

Begonnen von gestein, 15 November 2022, 12:53:23

Vorheriges Thema - Nächstes Thema

gestein

Hallo,

ich habe etliche Shelly, die ich alle als MQTT2_DEVICE über einen MQTT2_SERVER am gleichen Rechner eingebunden habe.
Eigentlich klappt es ganz gut, aber immer wieder bleibt der state bei einigen Shelly auf "set_on" oder "set_off".
Dann wird im FHEMWEB die Glühbirne mit dem "Rufzeichen" angezeigt.
Das nervt schon.

Allerdings weiß ich nicht, wo ich da ansetzten soll um den Fehler zu finden.
So weit ich das verstanden habe, liegt das am Attribut "setStateList on off toggle".
Wenn man den Shelly schaltet, wird zuerst der der Status auf z.B. "set_on" gesetzt und erst wenn der Schaltbefehl ausgeführt wurde, wird der Status auf "on" gesetzt.
Das würde bedeuten, dass die Bestätigung des Schaltbefehls nicht durchkommt. Oder?

Weiß jemand, wo der Fehler liegen könnte oder was ich machen kann?

Danke, lg, Gerhard

Hier ein list eines dieser Shelly:
define MQTT2_shellyswitch25_8CAAB5057E3F MQTT2_DEVICE shellyswitch25_8CAAB5057E3F
attr MQTT2_shellyswitch25_8CAAB5057E3F userattr alias_chatten lightSceneParamsToSave lightSceneRestoreOnlyIfChanged:1,0 structexclude testing testing_map
attr MQTT2_shellyswitch25_8CAAB5057E3F IODev MQTT2_FHEM_Server
attr MQTT2_shellyswitch25_8CAAB5057E3F alias EZ.Athmos
attr MQTT2_shellyswitch25_8CAAB5057E3F alias_chatten EZ.Athmos
attr MQTT2_shellyswitch25_8CAAB5057E3F comment Channel 1 for MQTT2_shellyswitch25_8CAAB5057E3F, see also MQTT2_shellyswitch25_8CAAB5057E3F_CH2
attr MQTT2_shellyswitch25_8CAAB5057E3F devStateIcon {my $onl = ReadingsVal($name,"online","false") eq "false"?"10px-kreis-rot" : ReadingsVal($name,"new_fw","false") eq "true" ? "10px-kreis-gelb" : "10px-kreis-gruen";;;;\
my $light = ReadingsVal($name,"relays_1_overpower","false") eq "true"?"light_overload" : ReadingsVal($name,"overtemperature","true") eq "true"?"light_overtemp" : ReadingsVal($name,"state","off");;;;\
my $cons = ReadingsVal($name,"relay_0_power","unknown");;;;\
my $temp = ReadingsVal($name,"temperature","-100");;;;\
my $ip=ReadingsVal($name,"ip","none");;;;\
"<div><a href=\"http://$ip \"target=\"_blank\">".FW_makeImage($onl,$ip." (". (ReadingsVal($name,"online","false") eq "true"?"online)":"offline)"))."</a> <a href=\"/fhem?cmd.dummy=set $name toggle&XHR=1\">".FW_makeImage($light)."</a> $cons W / $temp °C</div>"\
}
attr MQTT2_shellyswitch25_8CAAB5057E3F event-min-interval .*:3600
attr MQTT2_shellyswitch25_8CAAB5057E3F event-on-change-reading relay_.*,energy.*,state,online,temperature,.*over.*,new_fw,wifi_sta_connected
attr MQTT2_shellyswitch25_8CAAB5057E3F fhem_widget_channels [{"alias":"Hintergrund","allowed_values":["off","on"],"locations":["APP","WIDGET","SIRI"],"filter":"public","group":"Esszimmer"}]
attr MQTT2_shellyswitch25_8CAAB5057E3F getList power:noArg shellies/shellyswitch25-8CAAB5057E3F/relay/power power
attr MQTT2_shellyswitch25_8CAAB5057E3F group Esszimmer,Licht,Wohnzimmer
attr MQTT2_shellyswitch25_8CAAB5057E3F model shelly25_split
attr MQTT2_shellyswitch25_8CAAB5057E3F readingList shellies/shellyswitch25-8CAAB5057E3F/relay/0:.* state\
  shellies/shellyswitch25-8CAAB5057E3F/relay/0:.* relay_0\
  shellies/shellyswitch25-8CAAB5057E3F/input/0:.* input_0\
  shellies/shellyswitch25-8CAAB5057E3F/online:.* online\
  shellies/shellyswitch25-8CAAB5057E3F/announce:.* { json2nameValue($EVENT) }\
  shellies/announce:.* { $EVENT =~ m,..id...shellyswitch25-8CAAB5057E3F...mac.*, ? json2nameValue($EVENT) : undef }\
  shellies/shellyswitch25-8CAAB5057E3F/relay/0/power:.* {power => $EVENT, relay_0_power => $EVENT}\
  shellies/shellyswitch25-8CAAB5057E3F/relay/0/power:.* { my $compare = $EVTPART0 < 100 ? "off":"on";; ReadingsVal($NAME,"loadState","off") ne $compare ? { 'loadState' => $compare } : return }\
  shellies/shellyswitch25-8CAAB5057E3F/relay/0/energy:.* {energy => $EVENT, relay_0_energy => $EVENT, relay_0_kWh => sprintf("%.2f",$EVENT/60/1000)}\
  shellies/shellyswitch25-8CAAB5057E3F/temperature:.* temperature\
  shellies/shellyswitch25-8CAAB5057E3F/overtemperature:.* overtemperature\
  shellies/shellyswitch25-8CAAB5057E3F/temperature_status:.* temperature_status\
  shellies/shellyswitch25-8CAAB5057E3F/longpush/0:.* longpush_0\
  shellies/shellyswitch25-8CAAB5057E3F/input_event/0:.* { json2nameValue($EVENT, '0_', $JSONMAP) }\
  shellies/shellyswitch25-8CAAB5057E3F/input_event/1:.* { json2nameValue($EVENT, '1_', $JSONMAP) }\
  shellies/shellyswitch25-8CAAB5057E3F/info:.* { json2nameValue($EVENT) }\
  shellies/shellyswitch25-8CAAB5057E3F/voltage:.* voltage\
shellyswitch25_8CAAB5057E3F:shellies/shellyswitch25-8CAAB5057E3F/temperature_f:.* temperature_f
attr MQTT2_shellyswitch25_8CAAB5057E3F room Zimmer->Esszimmer,Shelly,Zimmer->Wohnzimmer,Z_System->fhemwidget2
attr MQTT2_shellyswitch25_8CAAB5057E3F setList relay0:on,off,toggle shellies/shellyswitch25-8CAAB5057E3F/relay/0/command $EVTPART1\
  off:noArg shellies/shellyswitch25-8CAAB5057E3F/relay/0/command off\
  on:noArg shellies/shellyswitch25-8CAAB5057E3F/relay/0/command on\
  x_update:noArg shellies/shellyswitch25-8CAAB5057E3F/command update_fw\
  x_mqttcom shellies/shellyswitch25-8CAAB5057E3F/command $EVTPART1\
  toggle:noArg shellies/shellyswitch25-8CAAB5057E3F/relay/0/command toggle\
  info:noArg shellies/shellyswitch25-8CAAB5057E3F/command info\
  announce:noArg shellies/shellyswitch25-8CAAB5057E3F/command announce\
  deletereadings:noArg {fhem("deletereading $NAME ^((?!^state|^ip|IODev|attrTemplateVersion|^online).)*\$");;}\
  x_mqtt_update_period {  shelly_HttpRequest($NAME,ReadingsVal($NAME,"ip","").",settings?mqtt_update_period=".$EVTPART1)}\
  on-for-timer {  shelly_HttpRequest($NAME,ReadingsVal($NAME,"ip","").",relay/0?turn=on&timer=".$EVTPART1)}\
  off-for-timer {  shelly_HttpRequest($NAME,ReadingsVal($NAME,"ip","").",relay/0?turn=off&timer=".$EVTPART1)}
attr MQTT2_shellyswitch25_8CAAB5057E3F setStateList on off toggle
attr MQTT2_shellyswitch25_8CAAB5057E3F userReadings relay_0_energy_total:relay_0_energy:.* monotonic {ReadingsNum("$name","relay_0_energy",0)},\
energy_total:relay_0_energy_total:.* {ReadingsNum("$name","relay_0_energy_total",0)}
#   CID        shellyswitch25_8CAAB5057E3F
#   DEF        shellyswitch25_8CAAB5057E3F
#   FUUID      5e81c63d-f33f-0b7a-99b4-cff91223af0915a0
#   FVERSION   10_MQTT2_DEVICE.pm:0.266090/2022-10-28
#   IODev      MQTT2_FHEM_Server
#   LASTInputDev MQTT2_FHEM_Server
#   MQTT2_FHEM_Server_CONN MQTT2_FHEM_Server_192.168.0.79_28036
#   MQTT2_FHEM_Server_MSGCNT 378
#   MQTT2_FHEM_Server_TIME 2022-11-15 11:46:35
#   MSGCNT     378
#   NAME       MQTT2_shellyswitch25_8CAAB5057E3F
#   NR         3767
#   STATE      set_off
#   TYPE       MQTT2_DEVICE
#   eventCount 249
#   READINGS:
#     2022-11-14 09:46:15   0_event         
#     2022-11-14 09:46:15   0_event_cnt     0
#     2022-11-14 09:46:15   1_event         
#     2022-11-14 09:46:15   1_event_cnt     0
#     2022-11-14 09:39:11   IODev           MQTT2_FHEM_Server
#     2022-01-26 23:41:54   actions_active  false
#     2022-01-26 23:41:54   actions_names_1 btn_on_url
#     2022-01-26 23:41:54   actions_names_10 shortpush_url
#     2022-01-26 23:41:54   actions_names_11 out_on_url
#     2022-01-26 23:41:54   actions_names_12 out_off_url
#     2022-01-26 23:41:54   actions_names_13 roller_open_url
#     2022-01-26 23:41:54   actions_names_14 roller_close_url
#     2022-01-26 23:41:54   actions_names_15 roller_stop_url
#     2022-01-26 23:41:54   actions_names_2 btn_off_url
#     2022-01-26 23:41:54   actions_names_3 longpush_url
#     2022-01-26 23:41:54   actions_names_4 shortpush_url
#     2022-01-26 23:41:54   actions_names_5 out_on_url
#     2022-01-26 23:41:54   actions_names_6 out_off_url
#     2022-01-26 23:41:54   actions_names_7 btn_on_url
#     2022-01-26 23:41:54   actions_names_8 btn_off_url
#     2022-01-26 23:41:54   actions_names_9 longpush_url
#     2022-11-14 09:46:12   actions_stats_skipped 0
#     2022-01-26 23:41:54   allow_cross_origin false
#     2022-11-11 21:48:21   announce        set
#     2022-01-26 23:41:54   ap_roaming_enabled true
#     2022-01-26 23:41:54   ap_roaming_threshold -75
#     2022-01-26 23:41:54   build_info_build_id 20211109-125214/v1.11.7-g682a0db
#     2022-01-26 23:41:54   build_info_build_timestamp 2021-11-09T12:52:14Z
#     2022-01-26 23:41:54   build_info_build_version 1.0
#     2022-11-14 09:46:12   cfg_changed_cnt 0
#     2022-11-14 09:46:12   cloud_connected false
#     2022-11-14 09:46:12   cloud_enabled   false
#     2022-01-26 23:41:54   coiot_enabled   true
#     2022-01-26 23:41:54   coiot_peer     
#     2022-01-26 23:41:54   coiot_update_period 15
#     2022-01-26 23:41:54   debug_enable    false
#     2022-01-26 23:41:54   device_hostname shellyswitch25-8CAAB5057E3F
#     2022-01-26 23:41:54   device_mac      8CAAB5057E3F
#     2022-01-26 23:41:54   device_num_meters 2
#     2022-01-26 23:41:54   device_num_outputs 2
#     2022-01-26 23:41:54   device_num_rollers 1
#     2022-01-26 23:41:54   device_type     SHSW-25
#     2022-01-26 23:41:54   discoverable    true
#     2022-11-15 11:46:35   energy          36275
#     2022-11-15 11:09:02   energy_total    606409
#     2022-01-26 23:41:54   factory_reset_from_switch true
#     2022-01-26 23:41:54   favorites_1_name Position 1
#     2022-01-26 23:41:54   favorites_1_pos 0
#     2022-01-26 23:41:54   favorites_2_name Position 2
#     2022-01-26 23:41:54   favorites_2_pos 0
#     2022-01-26 23:41:54   favorites_3_name Position 3
#     2022-01-26 23:41:54   favorites_3_pos 0
#     2022-01-26 23:41:54   favorites_4_name Position 4
#     2022-01-26 23:41:54   favorites_4_pos 0
#     2022-01-26 23:41:54   favorites_enabled false
#     2022-11-14 09:46:12   fs_free         144827
#     2022-11-14 09:46:12   fs_size         233681
#     2022-01-26 23:41:54   fw              20211109-125214/v1.11.7-g682a0db
#     2022-11-14 09:46:11   fw_ver          20221027-092056/v1.12.1-ga9117d3
#     2022-11-14 09:46:12   has_update      false
#     2022-01-26 23:41:54   hwinfo_batch_id 1
#     2022-01-26 23:41:54   hwinfo_hw_revision prod-191217
#     2022-11-14 09:46:11   id              shellyswitch25-8CAAB5057E3F
#     2022-11-14 09:46:15   input_0         1
#     2022-11-14 09:46:12   inputs_1_event 
#     2022-11-14 09:46:12   inputs_1_event_cnt 0
#     2022-11-14 09:46:12   inputs_1_input  1
#     2022-11-14 09:46:12   inputs_2_event 
#     2022-11-14 09:46:12   inputs_2_event_cnt 0
#     2022-11-14 09:46:12   inputs_2_input  1
#     2022-11-14 09:46:11   ip              192.168.0.79
#     2022-01-26 23:41:54   lat             48.202629
#     2022-01-26 23:41:54   led_status_disable false
#     2022-01-26 23:41:54   lng             16.368420
#     2022-01-26 23:41:54   login_enabled   false
#     2022-01-26 23:41:54   login_unprotected false
#     2022-01-26 23:41:54   login_username  admin
#     2020-05-28 20:08:09   longpush_0      1
#     2022-01-26 23:41:54   longpush_time   800
#     2022-11-14 09:46:12   mac             8CAAB5057E3F
#     2022-01-26 23:41:54   max_power       1840
#     2022-11-14 09:46:12   meters_1_counters_1 0.000
#     2022-11-14 09:46:12   meters_1_counters_2 0.000
#     2022-11-14 09:46:12   meters_1_counters_3 0.000
#     2022-11-14 09:46:12   meters_1_is_valid true
#     2022-11-14 09:46:12   meters_1_overpower 0.00
#     2022-11-14 09:46:12   meters_1_power  0.00
#     2022-11-14 09:46:12   meters_1_timestamp 1668419171
#     2022-11-14 09:46:12   meters_1_total  33180
#     2022-11-14 09:46:12   meters_2_counters_1 0.000
#     2022-11-14 09:46:12   meters_2_counters_2 0.000
#     2022-11-14 09:46:12   meters_2_counters_3 0.000
#     2022-11-14 09:46:12   meters_2_is_valid true
#     2022-11-14 09:46:12   meters_2_overpower 0.00
#     2022-11-14 09:46:12   meters_2_power  0.00
#     2022-11-14 09:46:12   meters_2_timestamp 1668419171
#     2022-11-14 09:46:12   meters_2_total  12271
#     2022-11-14 09:46:11   mode            relay
#     2022-11-14 09:46:11   model           SHSW-25
#     2022-01-26 23:41:54   mqtt_clean_session true
#     2022-11-14 09:46:12   mqtt_connected  true
#     2022-01-26 23:41:54   mqtt_enable     true
#     2022-01-26 23:41:54   mqtt_id         shellyswitch25-8CAAB5057E3F
#     2022-01-26 23:41:54   mqtt_keep_alive 60
#     2022-01-26 23:41:54   mqtt_max_qos    0
#     2022-01-26 23:41:54   mqtt_reconnect_timeout_max 60.000000
#     2022-01-26 23:41:54   mqtt_reconnect_timeout_min 2.000000
#     2022-01-26 23:41:54   mqtt_retain     false
#     2022-01-26 23:41:54   mqtt_server     192.168.0.117:1883
#     2022-01-26 23:41:54   mqtt_update_period 0
#     2022-01-26 23:41:54   mqtt_user       
#     2022-11-14 09:46:11   new_fw          false
#     2022-11-14 09:46:10   online          true
#     2022-11-15 00:25:52   overtemperature 0
#     2022-01-26 23:41:54   pin_code       
#     2022-11-15 11:46:35   power           0.00
#     2022-11-14 09:46:12   ram_free        36224
#     2022-11-14 09:46:12   ram_total       50728
#     2022-11-14 23:24:52   relay_0         off
#     2022-11-15 11:46:35   relay_0_energy  36275
#     2022-11-15 11:09:02   relay_0_energy_total 606409
#     2022-11-15 11:46:35   relay_0_kWh     0.60
#     2022-11-15 11:46:35   relay_0_power   0.00
#     2022-01-26 23:41:54   relays_1_appliance_type General
#     2022-01-26 23:41:54   relays_1_auto_off 0.00
#     2022-01-26 23:41:54   relays_1_auto_on 0.00
#     2022-01-26 23:41:54   relays_1_btn_reverse 0
#     2022-01-26 23:41:54   relays_1_btn_type toggle
#     2022-01-26 23:41:54   relays_1_default_state off
#     2022-11-14 09:46:12   relays_1_has_timer false
#     2022-11-14 09:46:12   relays_1_is_valid true
#     2022-11-14 09:46:12   relays_1_ison   false
#     2022-01-26 23:41:54   relays_1_max_power 0
#     2022-01-26 23:41:54   relays_1_name   EZ.Athmos
#     2022-11-14 09:46:12   relays_1_overpower false
#     2022-11-14 09:46:12   relays_1_overtemperature false
#     2022-01-26 23:41:54   relays_1_schedule false
#     2022-11-14 09:46:12   relays_1_source mqtt
#     2022-11-14 09:46:12   relays_1_timer_duration 0
#     2022-11-14 09:46:12   relays_1_timer_remaining 0
#     2022-11-14 09:46:12   relays_1_timer_started 0
#     2022-01-26 23:41:54   relays_2_appliance_type General
#     2022-01-26 23:41:54   relays_2_auto_off 0.00
#     2022-01-26 23:41:54   relays_2_auto_on 0.00
#     2022-01-26 23:41:54   relays_2_btn_reverse 0
#     2022-01-26 23:41:54   relays_2_btn_type toggle
#     2022-01-26 23:41:54   relays_2_default_state off
#     2022-11-14 09:46:12   relays_2_has_timer false
#     2022-11-14 09:46:12   relays_2_is_valid true
#     2022-11-14 09:46:12   relays_2_ison   false
#     2022-01-26 23:41:54   relays_2_max_power 0
#     2022-01-26 23:41:54   relays_2_name   WC.Oben
#     2022-11-14 09:46:12   relays_2_overpower false
#     2022-11-14 09:46:12   relays_2_overtemperature false
#     2022-01-26 23:41:54   relays_2_schedule false
#     2022-11-14 09:46:12   relays_2_source input
#     2022-11-14 09:46:12   relays_2_timer_duration 0
#     2022-11-14 09:46:12   relays_2_timer_remaining 0
#     2022-11-14 09:46:12   relays_2_timer_started 0
#     2022-01-26 23:41:54   rollers_1_btn_reverse 0
#     2022-01-26 23:41:54   rollers_1_button_type toggle
#     2022-01-26 23:41:54   rollers_1_default_state stop
#     2022-01-26 23:41:54   rollers_1_input_mode openclose
#     2022-01-26 23:41:54   rollers_1_is_valid true
#     2022-01-26 23:41:54   rollers_1_maxtime 20.00
#     2022-01-26 23:41:54   rollers_1_maxtime_close 20.00
#     2022-01-26 23:41:54   rollers_1_maxtime_open 20.00
#     2022-01-26 23:41:54   rollers_1_obstacle_action stop
#     2022-01-26 23:41:54   rollers_1_obstacle_delay 1
#     2022-01-26 23:41:54   rollers_1_obstacle_mode disabled
#     2022-01-26 23:41:54   rollers_1_obstacle_power 200
#     2022-01-26 23:41:54   rollers_1_off_power 2
#     2022-01-26 23:41:54   rollers_1_positioning true
#     2022-01-26 23:41:54   rollers_1_power 0.00
#     2022-01-26 23:41:54   rollers_1_safety_action stop
#     2022-01-26 23:41:54   rollers_1_safety_allowed_on_trigger none
#     2022-01-26 23:41:54   rollers_1_safety_mode while_opening
#     2022-01-26 23:41:54   rollers_1_safety_switch false
#     2022-01-26 23:41:54   rollers_1_schedule false
#     2022-01-26 23:41:54   rollers_1_state stop
#     2022-01-26 23:41:54   rollers_1_swap  false
#     2022-01-26 23:41:54   rollers_1_swap_inputs false
#     2022-11-14 09:46:12   serial          586
#     2022-01-26 23:41:54   sntp_enabled    true
#     2022-01-26 23:41:54   sntp_server     time.google.com
#     2022-01-03 09:00:30   statOnlineDay   true: 09:00:09 true_Count: 1
#     2022-01-03 00:00:21   statOnlineDayLast true: 12:08:54 true_Count: 1 (since: 2022-01-02_11:51:27)
#     2022-01-03 09:00:30   statOnlineHour  true: 01:00:08 true_Count: 1
#     2022-01-03 08:00:22   statOnlineHourLast true: 08:00:01 true_Count: 1
#     2022-01-03 09:00:30   statOnlineMonth true: 21:09:03 true_Count: 1 (since: 2022-01-02_11:51:27)
#     2022-01-03 09:00:30   statOnlineYear  true: 21:09:03 true_Count: 1 (since: 2022-01-02_11:51:27)
#     2022-01-03 09:00:30   statTemperatureDay Min: 60.74 Avg: 62.30 Max: 62.81
#     2022-01-03 00:00:21   statTemperatureDayLast Min: 58.32 Avg: 65.51 Max: 69.97 (since: 2022-01-02_11:51:27 )
#     2022-01-03 09:00:30   statTemperatureMonth Min: 58.32 Avg: 64.14 Max: 69.97 (since: 2022-01-02_11:51:27 )
#     2022-01-03 09:00:30   statTemperatureYear Min: 58.32 Avg: 64.14 Max: 69.97 (since: 2022-01-02_11:51:27 )
#     2022-01-03 09:00:30   statVoltageDay  Min: 234.58 Avg: 234.70 Max: 235.23
#     2022-01-03 00:00:21   statVoltageDayLast Min: 234.58 Avg: 235.94 Max: 236.44 (since: 2022-01-02_11:51:27 )
#     2022-01-03 09:00:30   statVoltageMonth Min: 234.58 Avg: 235.42 Max: 236.44 (since: 2022-01-02_11:51:27 )
#     2022-01-03 09:00:30   statVoltageYear Min: 234.58 Avg: 235.42 Max: 236.44 (since: 2022-01-02_11:51:27 )
#     2022-11-14 23:25:16   state           set_off
#     2022-11-15 00:25:51   temperature     59.99
#     2022-11-15 00:25:52   temperature_f   139.99
#     2022-11-15 00:25:52   temperature_status Normal
#     2022-11-14 09:46:12   time            09:46
#     2022-01-26 23:41:54   timezone        Europe/Vienna
#     2022-11-14 09:46:12   tmp_is_valid    true
#     2022-11-14 09:46:12   tmp_tC          57.18
#     2022-11-14 09:46:12   tmp_tF          134.92
#     2022-01-26 23:41:54   tz_dst          false
#     2022-01-26 23:41:54   tz_dst_auto     true
#     2022-01-26 23:41:54   tz_utc_offset   3600
#     2022-01-26 23:41:54   tzautodetect    true
#     2022-11-14 09:46:12   unixtime        1668415571
#     2022-10-31 02:01:56   update_beta_version 20221014-081716/v1.12.1-rc1-gd2158aa
#     2022-11-14 09:46:12   update_has_update false
#     2022-11-14 09:46:12   update_new_version 20221027-092056/v1.12.1-ga9117d3
#     2022-11-14 09:46:12   update_old_version 20221027-092056/v1.12.1-ga9117d3
#     2022-11-14 09:46:12   update_status   idle
#     2022-11-14 09:46:12   uptime          1081446
#     2022-11-14 09:46:15   voltage         233.32
#     2022-01-26 23:41:54   wifi_ap_enabled false
#     2022-01-26 23:41:54   wifi_ap_key     
#     2022-01-26 23:41:54   wifi_ap_ssid    shellyswitch25-8CAAB5057E3F
#     2022-01-26 23:41:54   wifi_sta1_enabled true
#     2022-01-26 23:41:54   wifi_sta1_gw    192.168.0.1
#     2022-01-26 23:41:54   wifi_sta1_ip    192.168.0.79
#     2022-01-26 23:41:54   wifi_sta1_ipv4_method static
#     2022-01-26 23:41:54   wifi_sta1_mask  255.255.255.0
#     2022-01-26 23:41:54   wifi_sta1_ssid  PinkZeder
#     2022-11-14 09:46:12   wifi_sta_connected true
#     2022-01-26 23:41:54   wifi_sta_enabled true
#     2022-01-26 23:41:54   wifi_sta_gw     192.168.0.1
#     2022-11-14 09:46:12   wifi_sta_ip     192.168.0.79
#     2022-01-26 23:41:54   wifi_sta_ipv4_method static
#     2022-01-26 23:41:54   wifi_sta_mask   255.255.255.0
#     2022-11-14 09:46:12   wifi_sta_rssi   -56
#     2022-11-14 09:46:12   wifi_sta_ssid   PinkZeder_SH
#   helper:
#     bm:
#       MQTT2_DEVICE_Attr:
#         cnt        1
#         dmx        -1000
#         dtot       0
#         dtotcnt    0
#         mTS        14.11. 09:46:15
#         max        0.0200109481811523
#         tot        0.0200109481811523
#         mAr:
#           set
#           MQTT2_shellyswitch25_8CAAB5057E3F
#           readingList
#           shellies/shellyswitch25-8CAAB5057E3F/relay/0:.* state
#  shellies/shellyswitch25-8CAAB5057E3F/relay/0:.* relay_0
#  shellies/shellyswitch25-8CAAB5057E3F/input/0:.* input_0
#  shellies/shellyswitch25-8CAAB5057E3F/online:.* online
#  shellies/shellyswitch25-8CAAB5057E3F/announce:.* { json2nameValue($EVENT) }
#  shellies/announce:.* { $EVENT =~ m,..id...shellyswitch25-8CAAB5057E3F...mac.*, ? json2nameValue($EVENT) : undef }
#  shellies/shellyswitch25-8CAAB5057E3F/relay/0/power:.* {power => $EVENT, relay_0_power => $EVENT}
#  shellies/shellyswitch25-8CAAB5057E3F/relay/0/power:.* { my $compare = $EVTPART0 < 100 ? "off":"on"; ReadingsVal($NAME,"loadState","off") ne $compare ? { 'loadState' => $compare } : return }
#  shellies/shellyswitch25-8CAAB5057E3F/relay/0/energy:.* {energy => $EVENT, relay_0_energy => $EVENT, relay_0_kWh => sprintf("%.2f",$EVENT/60/1000)}
#  shellies/shellyswitch25-8CAAB5057E3F/temperature:.* temperature
#  shellies/shellyswitch25-8CAAB5057E3F/overtemperature:.* overtemperature
#  shellies/shellyswitch25-8CAAB5057E3F/temperature_status:.* temperature_status
#  shellies/shellyswitch25-8CAAB5057E3F/longpush/0:.* longpush_0
#  shellies/shellyswitch25-8CAAB5057E3F/input_event/0:.* { json2nameValue($EVENT, '0_', $JSONMAP) }
#  shellies/shellyswitch25-8CAAB5057E3F/input_event/1:.* { json2nameValue($EVENT, '1_', $JSONMAP) }
#  shellies/shellyswitch25-8CAAB5057E3F/info:.* { json2nameValue($EVENT) }
#  shellies/shellyswitch25-8CAAB5057E3F/voltage:.* voltage
#shellyswitch25_8CAAB5057E3F:shellies/shellyswitch25-8CAAB5057E3F/temperature_f:.* temperature_f
#       MQTT2_DEVICE_Get:
#         cnt        1
#         dmx        -1000
#         dtot       0
#         dtotcnt    0
#         mTS        15.11. 12:36:27
#         max        0.000115156173706055
#         tot        0.000115156173706055
#         mAr:
#           HASH(0x8336d60)
#           MQTT2_shellyswitch25_8CAAB5057E3F
#           ?
#       MQTT2_DEVICE_Set:
#         cnt        282
#         dmx        -1000
#         dtot       0
#         dtotcnt    0
#         mTS        14.11. 23:25:16
#         max        0.20972204208374
#         tot        0.900836229324341
#         mAr:
#           HASH(0x8336d60)
#           MQTT2_shellyswitch25_8CAAB5057E3F
#           off
#
setstate MQTT2_shellyswitch25_8CAAB5057E3F set_off
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:15 0_event
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:15 0_event_cnt 0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:15 1_event
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:15 1_event_cnt 0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:39:11 IODev MQTT2_FHEM_Server
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 actions_active false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 actions_names_1 btn_on_url
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 actions_names_10 shortpush_url
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 actions_names_11 out_on_url
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 actions_names_12 out_off_url
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 actions_names_13 roller_open_url
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 actions_names_14 roller_close_url
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 actions_names_15 roller_stop_url
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 actions_names_2 btn_off_url
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 actions_names_3 longpush_url
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 actions_names_4 shortpush_url
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 actions_names_5 out_on_url
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 actions_names_6 out_off_url
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 actions_names_7 btn_on_url
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 actions_names_8 btn_off_url
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 actions_names_9 longpush_url
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 actions_stats_skipped 0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 allow_cross_origin false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-11 21:48:21 announce set
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 ap_roaming_enabled true
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 ap_roaming_threshold -75
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 build_info_build_id 20211109-125214/v1.11.7-g682a0db
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 build_info_build_timestamp 2021-11-09T12:52:14Z
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 build_info_build_version 1.0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 cfg_changed_cnt 0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 cloud_connected false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 cloud_enabled false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 coiot_enabled true
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 coiot_peer
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 coiot_update_period 15
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 debug_enable false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 device_hostname shellyswitch25-8CAAB5057E3F
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 device_mac 8CAAB5057E3F
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 device_num_meters 2
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 device_num_outputs 2
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 device_num_rollers 1
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 device_type SHSW-25
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 discoverable true
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-15 11:46:35 energy 36275
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-15 11:09:02 energy_total 606409
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 factory_reset_from_switch true
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 favorites_1_name Position 1
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 favorites_1_pos 0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 favorites_2_name Position 2
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 favorites_2_pos 0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 favorites_3_name Position 3
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 favorites_3_pos 0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 favorites_4_name Position 4
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 favorites_4_pos 0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 favorites_enabled false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 fs_free 144827
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 fs_size 233681
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 fw 20211109-125214/v1.11.7-g682a0db
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:11 fw_ver 20221027-092056/v1.12.1-ga9117d3
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 has_update false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 hwinfo_batch_id 1
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 hwinfo_hw_revision prod-191217
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:11 id shellyswitch25-8CAAB5057E3F
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:15 input_0 1
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 inputs_1_event
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 inputs_1_event_cnt 0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 inputs_1_input 1
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 inputs_2_event
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 inputs_2_event_cnt 0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 inputs_2_input 1
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:11 ip 192.168.0.79
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 lat 48.202629
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 led_status_disable false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 lng 16.368420
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 login_enabled false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 login_unprotected false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 login_username admin
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2020-05-28 20:08:09 longpush_0 1
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 longpush_time 800
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 mac 8CAAB5057E3F
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 max_power 1840
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 meters_1_counters_1 0.000
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 meters_1_counters_2 0.000
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 meters_1_counters_3 0.000
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 meters_1_is_valid true
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 meters_1_overpower 0.00
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 meters_1_power 0.00
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 meters_1_timestamp 1668419171
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 meters_1_total 33180
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 meters_2_counters_1 0.000
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 meters_2_counters_2 0.000
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 meters_2_counters_3 0.000
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 meters_2_is_valid true
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 meters_2_overpower 0.00
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 meters_2_power 0.00
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 meters_2_timestamp 1668419171
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 meters_2_total 12271
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:11 mode relay
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:11 model SHSW-25
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 mqtt_clean_session true
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 mqtt_connected true
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 mqtt_enable true
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 mqtt_id shellyswitch25-8CAAB5057E3F
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 mqtt_keep_alive 60
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 mqtt_max_qos 0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 mqtt_reconnect_timeout_max 60.000000
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 mqtt_reconnect_timeout_min 2.000000
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 mqtt_retain false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 mqtt_server 192.168.0.117:1883
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 mqtt_update_period 0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 mqtt_user
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:11 new_fw false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:10 online true
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-15 00:25:52 overtemperature 0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 pin_code
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-15 11:46:35 power 0.00
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 ram_free 36224
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 ram_total 50728
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 23:24:52 relay_0 off
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-15 11:46:35 relay_0_energy 36275
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-15 11:09:02 relay_0_energy_total 606409
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-15 11:46:35 relay_0_kWh 0.60
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-15 11:46:35 relay_0_power 0.00
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 relays_1_appliance_type General
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 relays_1_auto_off 0.00
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 relays_1_auto_on 0.00
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 relays_1_btn_reverse 0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 relays_1_btn_type toggle
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 relays_1_default_state off
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 relays_1_has_timer false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 relays_1_is_valid true
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 relays_1_ison false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 relays_1_max_power 0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 relays_1_name EZ.Athmos
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 relays_1_overpower false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 relays_1_overtemperature false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 relays_1_schedule false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 relays_1_source mqtt
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 relays_1_timer_duration 0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 relays_1_timer_remaining 0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 relays_1_timer_started 0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 relays_2_appliance_type General
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 relays_2_auto_off 0.00
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 relays_2_auto_on 0.00
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 relays_2_btn_reverse 0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 relays_2_btn_type toggle
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 relays_2_default_state off
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 relays_2_has_timer false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 relays_2_is_valid true
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 relays_2_ison false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 relays_2_max_power 0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 relays_2_name WC.Oben
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 relays_2_overpower false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 relays_2_overtemperature false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 relays_2_schedule false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 relays_2_source input
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 relays_2_timer_duration 0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 relays_2_timer_remaining 0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 relays_2_timer_started 0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 rollers_1_btn_reverse 0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 rollers_1_button_type toggle
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 rollers_1_default_state stop
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 rollers_1_input_mode openclose
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 rollers_1_is_valid true
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 rollers_1_maxtime 20.00
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 rollers_1_maxtime_close 20.00
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 rollers_1_maxtime_open 20.00
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 rollers_1_obstacle_action stop
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 rollers_1_obstacle_delay 1
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 rollers_1_obstacle_mode disabled
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 rollers_1_obstacle_power 200
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 rollers_1_off_power 2
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 rollers_1_positioning true
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 rollers_1_power 0.00
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 rollers_1_safety_action stop
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 rollers_1_safety_allowed_on_trigger none
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 rollers_1_safety_mode while_opening
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 rollers_1_safety_switch false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 rollers_1_schedule false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 rollers_1_state stop
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 rollers_1_swap false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 rollers_1_swap_inputs false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 serial 586
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 sntp_enabled true
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 sntp_server time.google.com
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-03 09:00:30 statOnlineDay true: 09:00:09 true_Count: 1
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-03 00:00:21 statOnlineDayLast true: 12:08:54 true_Count: 1 (since: 2022-01-02_11:51:27)
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-03 09:00:30 statOnlineHour true: 01:00:08 true_Count: 1
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-03 08:00:22 statOnlineHourLast true: 08:00:01 true_Count: 1
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-03 09:00:30 statOnlineMonth true: 21:09:03 true_Count: 1 (since: 2022-01-02_11:51:27)
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-03 09:00:30 statOnlineYear true: 21:09:03 true_Count: 1 (since: 2022-01-02_11:51:27)
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-03 09:00:30 statTemperatureDay Min: 60.74 Avg: 62.30 Max: 62.81
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-03 00:00:21 statTemperatureDayLast Min: 58.32 Avg: 65.51 Max: 69.97 (since: 2022-01-02_11:51:27 )
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-03 09:00:30 statTemperatureMonth Min: 58.32 Avg: 64.14 Max: 69.97 (since: 2022-01-02_11:51:27 )
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-03 09:00:30 statTemperatureYear Min: 58.32 Avg: 64.14 Max: 69.97 (since: 2022-01-02_11:51:27 )
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-03 09:00:30 statVoltageDay Min: 234.58 Avg: 234.70 Max: 235.23
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-03 00:00:21 statVoltageDayLast Min: 234.58 Avg: 235.94 Max: 236.44 (since: 2022-01-02_11:51:27 )
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-03 09:00:30 statVoltageMonth Min: 234.58 Avg: 235.42 Max: 236.44 (since: 2022-01-02_11:51:27 )
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-03 09:00:30 statVoltageYear Min: 234.58 Avg: 235.42 Max: 236.44 (since: 2022-01-02_11:51:27 )
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 23:25:16 state set_off
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-15 00:25:51 temperature 59.99
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-15 00:25:52 temperature_f 139.99
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-15 00:25:52 temperature_status Normal
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 time 09:46
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 timezone Europe/Vienna
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 tmp_is_valid true
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 tmp_tC 57.18
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 tmp_tF 134.92
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 tz_dst false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 tz_dst_auto true
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 tz_utc_offset 3600
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 tzautodetect true
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 unixtime 1668415571
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-10-31 02:01:56 update_beta_version 20221014-081716/v1.12.1-rc1-gd2158aa
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 update_has_update false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 update_new_version 20221027-092056/v1.12.1-ga9117d3
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 update_old_version 20221027-092056/v1.12.1-ga9117d3
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 update_status idle
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 uptime 1081446
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:15 voltage 233.32
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 wifi_ap_enabled false
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 wifi_ap_key
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 wifi_ap_ssid shellyswitch25-8CAAB5057E3F
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 wifi_sta1_enabled true
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 wifi_sta1_gw 192.168.0.1
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 wifi_sta1_ip 192.168.0.79
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 wifi_sta1_ipv4_method static
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 wifi_sta1_mask 255.255.255.0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 wifi_sta1_ssid PinkZeder
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 wifi_sta_connected true
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 wifi_sta_enabled true
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 wifi_sta_gw 192.168.0.1
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 wifi_sta_ip 192.168.0.79
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 wifi_sta_ipv4_method static
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-01-26 23:41:54 wifi_sta_mask 255.255.255.0
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 wifi_sta_rssi -56
setstate MQTT2_shellyswitch25_8CAAB5057E3F 2022-11-14 09:46:12 wifi_sta_ssid PinkZeder_SH

rudolfkoenig

ZitatDas würde bedeuten, dass die Bestätigung des Schaltbefehls nicht durchkommt.
Richtig. Ob das Problem jetzt aber bei Shelly, WLAN oder FHEM ist kann ich nicht sagen.
Vermutlich koennte ein "attr MQTT2_SERVER verbose 4" Log die Ursache eingrenzen.

isy

Hast du im Shelly GUI den Parameter
Generic status update over MQTT
auf "on"?

VG Helmut
Ein Weg wird erst zu einem Weg, wenn man ihn geht

gestein

Hallo,

Den erwähnten Parameter gibt es anscheinend nur bei den plus-Geräten.
Bei meinen Shelly 1pm und 2.5 gibt es das trotz aktueller FW nicht.

Kann es sein, dass der MQTT2_SERVER MQTT-Nachrichten verschluckt?
Was passiert, wenn FHEM gerade sehr beschäftigt ist?

Lg, Gerhard

rudolfkoenig

ZitatWas passiert, wenn FHEM gerade sehr beschäftigt ist?
Haengt davon ab, wie man "sehr" definiert, und um viel Daten es sich handelt.
Im Normalfall werden die Nachrichten im Betriebsystem gepuffert, und wenn der MQTT2_SERVER drankommt, in FHEM verteilt.
Mit Normalfall meine ich die ueblichen Geraete aus der Hausautomatisierung, und einen nicht sekundenlang blockierten FHEM.


gestein

Hallo,

ich habe nun mal die Logs mitlaufen lassen.

Bei einem Shelly ist es wieder passiert, da blieb der state auf "set_on" hängen.
Anscheinend schickt der Shelly keine Antwort oder sie kommt beim Server nicht an.
Fehlermeldung des MQTT-Servers finde ich aber in dem Zeitraum auch keine.

Hier die Logs wenn der state auf "set_on" bleibt:
2022.11.18 07:01:12.004 5: MQTT2_FHEM_Server: PUBLISH shellies/shelly1pm-8CAAB5056CA8/relay/0/command on
2022.11.18 07:01:12.006 5:   MQTT2_FHEM_Server_192.168.0.83_10754 shelly1pm-8CAAB5056CA8 => shellies/shelly1pm-8CAAB5056CA8/relay/0/command:on
2022.11.18 07:01:12.006 5: out@192.168.0.83:10754 PUBLISH: 03(0)/shellies/shelly1pm-8CAAB5056CA8/relay/0/commandon

2022.11.18 07:01:15.374 5: in@192.168.0.83:10754 PUBLISH: 01(0).shellies/shelly1pm-8CAAB5056CA8/relay/0/energy0
2022.11.18 07:01:15.374 4:   MQTT2_FHEM_Server_192.168.0.83_10754 shelly1pm-8CAAB5056CA8 PUBLISH shellies/shelly1pm-8CAAB5056CA8/relay/0/energy:0
2022.11.18 07:01:15.379 5: MQTT2_FHEM_Server: dispatch autocreate=simple\000shelly1pm_8CAAB5056CA8\000shellies/shelly1pm-8CAAB5056CA8/relay/0/energy\0000

2022.11.18 07:02:04.020 5: in@192.168.0.83:10754 PINGREQ: (192)(0)
2022.11.18 07:02:04.020 4:   MQTT2_FHEM_Server_192.168.0.83_10754 shelly1pm-8CAAB5056CA8 PINGREQ
2022.11.18 07:02:04.021 5: out@192.168.0.83:10754 PINGRESP: (208)(0)


Hier die Logs wenn der state auf "on" geht:
2022.11.18 11:22:32.213 5: MQTT2_FHEM_Server: PUBLISH shellies/shellyswitch25-8CAAB5057E3F/relay/0/command on
2022.11.18 11:22:32.214 5:   MQTT2_FHEM_Server_192.168.0.79_19504 shellyswitch25-8CAAB5057E3F => shellies/shellyswitch25-8CAAB5057E3F/relay/0/command:on
2022.11.18 11:22:32.214 5: out@192.168.0.79:19504 PUBLISH: 08(0)4shellies/shellyswitch25-8CAAB5057E3F/relay/0/commandon

2022.11.18 11:22:33.291 4:   MQTT2_FHEM_Server_192.168.0.79_19504 shellyswitch25-8CAAB5057E3F PUBLISH shellies/shellyswitch25-8CAAB5057E3F/relay/0:on
2022.11.18 11:22:33.296 5: MQTT2_FHEM_Server: dispatch autocreate=simple\000shellyswitch25_8CAAB5057E3F\000shellies/shellyswitch25-8CAAB5057E3F/relay/0\000on
2022.11.18 11:22:33.299 4: MQTT2_DEVICE_Parse: MQTT2_shellyswitch25_8CAAB5057E3F shellies/shellyswitch25-8CAAB5057E3F/relay/0 => relay_0
2022.11.18 11:22:33.299 4: MQTT2_DEVICE_Parse: MQTT2_shellyswitch25_8CAAB5057E3F shellies/shellyswitch25-8CAAB5057E3F/relay/0 => state


Damit ist zwar klar, warum der state auf "set_on" hängen bleibt, aber es ist mir nicht klar, warum der Shelly nichts schickt.
lg, Gerhard

isy

Hallo Gerhard,
ich bleibe mal dran, auch wenn ich wahrscheinlich nicht helfen kann.
Bei mir ist der 2.4 GHz Bereich sehr stark ausgelastet, u.a. durch Bluetooth Geräte Class 1 sowie sehr viele WLAN Geräte.
Ich habe daher 2 WLAN Netze (verschiedene SSID in der FritzBox) eingerichtet und setze bei allen Geräten, die das unterstützen, nur das 5GHz Netz ein.

Frage: Schalten per WEB GUI läuft vermutlich einwandfrei? Und wie sieht die 2.4 GHz Auslastung bei dir aus?
Wenn die Verbindung nicht gut ist, kommen die Rückmelde-Daten evtl. nicht am FHEM an......

VG Helmut
Ein Weg wird erst zu einem Weg, wenn man ihn geht

gestein

Hallo isy,

Die Auslastung dürfte schon höher sein.
Habe aber etliche Wifi-APs, da die Anzahl der Geräte sonst zu hoch war und immer wieder welche rausgeflogen sind.
Bei dennGeräten mit 5GHz nehme ich auch das extra 5GHz-Netz.

Das Schalten am Gerät geht ohne Probleme.
Anscheinend schalten die Geräte auch über MQTT, aber es kommt manchmal keine Rückmeldung.

Ich habe auch schon das Debugging auf dem Shelly eingeschaltet, aber dort kommt nix ins log-file.
Wollte auch schon einen MQTT-Sniffer installieren, aber da muss ich mich erst mal einlesen.

Lg, Gerhard