bieniu / ha-shellies-discovery-gen2

Script that adds MQTT discovery support for Shellies Gen2 devices
Apache License 2.0
101 stars 18 forks source link

Shelly Plus 1 - device not updated #104

Closed vquie closed 1 year ago

vquie commented 1 year ago

Describe the bug The automations run, get all values, create the device in HASS but doesn't update them. The values are found in the debug logs. The device is not updated though.

Expected behavior Updated values in the device.

Versions:

Shellies Discovery GEN2 automation:

- id: shellies_announce_gen2
  alias: Shellies Announce Gen2
  description: ''
  trigger:
  - platform: homeassistant
    event: start
  action:
  - repeat:
      for_each: '{{ device_ids }}'
      sequence:
      - service: mqtt.publish
        data:
          topic: '{{ repeat.item }}/rpc'
          payload: '{{ device_info_payload }}'
  variables:
    device_info_payload: '{{ {''id'': 1, ''src'':''shellies_discovery'', ''method'':''Shelly.GetConfig''}
      | to_json }}'
    device_ids:
    - shellyplus1-7c87cexxxxxx
- id: shellies_discovery_gen2
  alias: Shellies Discovery Gen2
  description: ''
  trigger:
  - platform: mqtt
    topic: shellies_discovery/rpc
  action:
  - service: python_script.shellies_discovery_gen2
    data:
      id: '{{ trigger.payload_json.src }}'
      device_config: '{{ trigger.payload_json.result }}'
  mode: queued
  max: 999

Debug log:

vquie commented 1 year ago

Debug log was too big for initial issue.

There you go.

2022-10-16 11:39:00.860 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received retained message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-0-overtemp/config: b'{"name": "Shelly Plus 1 Relay 0 Overtemperature", "val_tpl": "{%if \\"overtemp\\" in value_json.get(\\"errors\\",[])%}ON{%else%}OFF{%endif%}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-0-overtemp", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/switch:0", "dev_cla": "problem", "entity_category": "diagnostic"}'
2022-10-16 11:39:00.860 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received retained message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-cloud/config: b'{"name": "Shelly Plus 1 Cloud", "val_tpl": "{%if value_json.result.cloud.connected%}ON{%else%}OFF{%endif%}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-cloud", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "dev_cla": "connectivity", "entity_category": "diagnostic"}'
2022-10-16 11:39:00.860 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received retained message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-firmware/config: b'{"name": "Shelly Plus 1 Firmware", "val_tpl": "{%if value_json.result.sys.available_updates.stable is defined%}ON{%else%}OFF{%endif%}", "en": "true", "uniq_id": "shellyplus1-7c87cexxxxxx-firmware", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "json_attributes_topic": "~status/rpc", "json_attributes_template": "{{value_json.result.sys.available_updates.get(\\"stable\\",{})|to_json}}", "dev_cla": "update", "entity_category": "diagnostic"}'
2022-10-16 11:39:00.913 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received retained message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-last_restart/config: b'{"name": "Shelly Plus 1 Last Restart", "val_tpl": "{{(as_timestamp(now())-value_json.result.sys.uptime)|timestamp_local}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-last_restart", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus17c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "dev_cla": "timestamp", "entity_category": "diagnostic"}'
2022-10-16 11:39:00.913 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received retained message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-ssid/config: b'{"name": "Shelly Plus 1 SSID", "val_tpl": "{{value_json.result.wifi.ssid}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-ssid", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "icon": "mdi:wifi-settings", "entity_category": "diagnostic"}'
2022-10-16 11:39:00.913 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received retained message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-wifi_ip/config: b'{"name": "Shelly Plus 1 WiFi IP", "val_tpl": "{{value_json.result.wifi.sta_ip}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-wifi_ip", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "icon": "mdi:ip-outline", "entity_category": "diagnostic"}'
2022-10-16 11:39:00.914 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received retained message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-wifi_signal/config: b'{"name": "Shelly Plus 1 WiFi Signal", "val_tpl": "{{value_json.result.wifi.rssi}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-wifi_signal", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "unit_of_meas": "dBm", "dev_cla": "signal_strength", "entity_category": "diagnostic", "stat_cla": "measurement"}'
2022-10-16 11:39:00.914 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received retained message on homeassistant/switch/shellyplus1-7c87cexxxxxx-0/config: b'{"name": "Shelly Plus 1 Relay 0", "cmd_t": "~rpc", "pl_off": "{\\"id\\":1,\\"src\\":\\"shellyplus1-7c87cexxxxxx\\",\\"method\\":\\"Switch.Set\\",\\"params\\":{\\"id\\":0,\\"on\\":false}}", "pl_on": "{\\"id\\":1,\\"src\\":\\"shellyplus1-7c87cexxxxxx\\",\\"method\\":\\"Switch.Set\\",\\"params\\":{\\"id\\":0,\\"on\\":true}}", "stat_t": "~status/switch:0", "val_tpl": "{%if value_json.output%}on{%else%}off{%endif%}", "stat_off": "off", "stat_on": "on", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyplus1-7c87cexxxxxx-0", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/"}'
2022-10-16 11:39:00.942 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received retained message on homeassistant/button/shellyplus1-7c87cexxxxxx-restart/config: b'{"name": "Shelly Plus 1 Restart", "cmd_t": "~rpc", "payload_press": "{\\"id\\":1,\\"src\\":\\"shellyplus1-7c87cexxxxxx\\",\\"method\\":\\"Shelly.Reboot\\"}", "en": "true", "uniq_id": "shellyplus1-7c87cexxxxxx-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87ce58e33/", "dev_cla": "restart", "entity_category": "config"}'
2022-10-16 11:39:00.943 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received retained message on homeassistant/button/shellyplus1-7c87cexxxxxx-update_firmware/config: b'{"name": "Shelly Plus 1 Update Firmware", "cmd_t": "~rpc", "payload_press": "{\\"id\\":1,\\"src\\":\\"shellyplus1-7c87cexxxxxx\\",\\"method\\":\\"Shelly.Update\\",\\"params\\":{\\"stage\\":\\"stable\\"}}", "en": "true", "uniq_id": "shellyplus1-7c87cexxxxxx-update_firmware", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "dev_cla": "update", "entity_category": "config"}'
2022-10-16 11:39:01.420 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Relay 0 Overtemperature', 'value_template': '{%if "overtemp" in value_json.get("errors",[])%}ON{%else%}OFF{%endif%}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-0-overtemp', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/switch:0', 'device_class': 'problem', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:39:01.420 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: binary_sensor shellyplus1-7c87cexxxxxx-0-overtemp
2022-10-16 11:39:01.420 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Cloud', 'value_template': '{%if value_json.result.cloud.connected%}ON{%else%}OFF{%endif%}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-cloud', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'device_class': 'connectivity', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:39:01.420 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: binary_sensor shellyplus1-7c87cexxxxxx-cloud
2022-10-16 11:39:01.420 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Firmware', 'value_template': '{%if value_json.result.sys.available_updates.stable is defined%}ON{%else%}OFF{%endif%}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-firmware', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'json_attributes_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'json_attributes_template': '{{value_json.result.sys.available_updates.get("stable",{})|to_json}}', 'device_class': 'update', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:39:01.420 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: binary_sensor shellyplus1-7c87cexxxxxx-firmware
2022-10-16 11:39:01.440 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Last Restart', 'value_template': '{{(as_timestamp(now())-value_json.result.sys.uptime)|timestamp_local}}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-last_restart', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'device_class': 'timestamp', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:39:01.440 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: sensor shellyplus1-7c87cexxxxxx-last_restart
2022-10-16 11:39:01.440 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 SSID', 'value_template': '{{value_json.result.wifi.ssid}}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-ssid', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'icon': 'mdi:wifi-settings', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:39:01.440 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: sensor shellyplus1-7c87cexxxxxx-ssid
2022-10-16 11:39:01.440 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 WiFi IP', 'value_template': '{{value_json.result.wifi.sta_ip}}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-wifi_ip', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'icon': 'mdi:ip-outline', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:39:01.440 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: sensor shellyplus1-7c87cexxxxxx-wifi_ip
2022-10-16 11:39:01.440 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 WiFi Signal', 'value_template': '{{value_json.result.wifi.rssi}}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-wifi_signal', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'unit_of_measurement': 'dBm', 'device_class': 'signal_strength', 'entity_category': 'diagnostic', 'state_class': 'measurement', 'platform': 'mqtt'}
2022-10-16 11:39:01.440 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: sensor shellyplus1-7c87cexxxxxx-wifi_signal
2022-10-16 11:39:01.441 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Relay 0', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_off': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Switch.Set","params":{"id":0,"on":false}}', 'payload_on': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Switch.Set","params":{"id":0,"on":true}}', 'state_topic': 'shellyplus1-7c87cexxxxxx/status/switch:0', 'value_template': '{%if value_json.output%}on{%else%}off{%endif%}', 'state_off': 'off', 'state_on': 'on', 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'unique_id': 'shellyplus1-7c87cexxxxxx-0', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'platform': 'mqtt'}
2022-10-16 11:39:01.441 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: switch shellyplus1-7c87cexxxxxx-0
2022-10-16 11:39:01.443 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Restart', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_press': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Shelly.Reboot"}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-restart', 'qos': 0, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'device_class': 'restart', 'entity_category': 'config', 'platform': 'mqtt'}
2022-10-16 11:39:01.443 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: button shellyplus1-7c87cexxxxxx-restart
2022-10-16 11:39:01.443 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Update Firmware', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_press': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Shelly.Update","params":{"stage":"stable"}}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-update_firmware', 'qos': 0, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'device_class': 'update', 'entity_category': 'config', 'platform': 'mqtt'}
2022-10-16 11:39:01.443 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: button shellyplus1-7c87cexxxxxx-update_firmware
2022-10-16 11:39:01.755 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received retained message on homeassistant/device_automation/shellyplus1-7c87cexxxxxx-input-0/single_push/config: b'{"atype": "trigger", "t": "shellyplus1-7c87cexxxxxx/events/rpc", "pl": "0_single_push", "val_tpl": "{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "type": "button_short_press", "stype": "button_1"}'
2022-10-16 11:39:01.755 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received retained message on homeassistant/device_automation/shellyplus1-7c87cexxxxxx-input-0/double_push/config: b'{"atype": "trigger", "t": "shellyplus1-7c87cexxxxxx/events/rpc", "pl": "0_double_push", "val_tpl": "{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "type": "button_double_press", "stype": "button_1"}'
2022-10-16 11:39:01.755 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received retained message on homeassistant/device_automation/shellyplus1-7c87cexxxxxx-input-0/long_push/config: b'{"atype": "trigger", "t": "shellyplus1-7c87cexxxxxx/events/rpc", "pl": "0_long_push", "val_tpl": "{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "type": "button_long_press", "stype": "button_1"}'
2022-10-16 11:39:02.298 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_single_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_short_press', 'subtype': 'button_1', 'platform': 'mqtt'}
2022-10-16 11:39:02.298 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: device_automation shellyplus1-7c87cexxxxxx-input-0 single_push
2022-10-16 11:39:02.298 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_double_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_double_press', 'subtype': 'button_1', 'platform': 'mqtt'}
2022-10-16 11:39:02.298 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: device_automation shellyplus1-7c87cexxxxxx-input-0 double_push
2022-10-16 11:39:02.298 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_long_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_long_press', 'subtype': 'button_1', 'platform': 'mqtt'}
2022-10-16 11:39:02.298 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: device_automation shellyplus1-7c87cexxxxxx-input-0 long_push
2022-10-16 11:39:02.336 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('binary_sensor', 'shellyplus1-7c87cexxxxxx-0-overtemp'): deque([])
2022-10-16 11:39:02.337 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('binary_sensor', 'shellyplus1-7c87cexxxxxx-cloud'): deque([])
2022-10-16 11:39:02.372 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('sensor', 'shellyplus1-7c87cexxxxxx-last_restart'): deque([])
2022-10-16 11:39:02.372 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('sensor', 'shellyplus1-7c87cexxxxxx-ssid'): deque([])
2022-10-16 11:39:02.372 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('sensor', 'shellyplus1-7c87cexxxxxx-wifi_ip'): deque([])
2022-10-16 11:39:02.372 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('sensor', 'shellyplus1-7c87cexxxxxx-wifi_signal'): deque([])
2022-10-16 11:39:02.504 INFO (MainThread) [homeassistant.components.mqtt.mixins] Device trigger ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 single_push') has been initialized
2022-10-16 11:39:02.504 INFO (MainThread) [homeassistant.components.mqtt.mixins] Device trigger ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 double_push') has been initialized
2022-10-16 11:39:02.505 INFO (MainThread) [homeassistant.components.mqtt.mixins] Device trigger ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 long_push') has been initialized
2022-10-16 11:39:02.573 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 single_push'): deque([])
2022-10-16 11:39:02.573 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 double_push'): deque([])
2022-10-16 11:39:02.573 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 long_push'): deque([])
2022-10-16 11:39:04.737 DEBUG (SyncWorker_0) [homeassistant.components.mqtt.client] Subscribing to shellyplus1-7c87cexxxxxx/online, mid: 37
2022-10-16 11:39:05.134 DEBUG (SyncWorker_8) [homeassistant.components.mqtt.client] Subscribing to shellyplus1-7c87cexxxxxx/online, mid: 58
2022-10-16 11:39:05.164 DEBUG (SyncWorker_9) [homeassistant.components.mqtt.client] Subscribing to shellyplus1-7c87cexxxxxx/online, mid: 69
2022-10-16 11:39:05.167 DEBUG (SyncWorker_8) [homeassistant.components.mqtt.client] Subscribing to shellyplus1-7c87cexxxxxx/online, mid: 70
2022-10-16 11:39:06.115 DEBUG (SyncWorker_12) [homeassistant.components.mqtt.client] Subscribing to shellyplus1-7c87cexxxxxx/status/rpc, mid: 219
2022-10-16 11:39:06.213 DEBUG (SyncWorker_15) [homeassistant.components.mqtt.client] Subscribing to shellyplus1-7c87cexxxxxx/status/rpc, mid: 240
2022-10-16 11:39:06.216 DEBUG (SyncWorker_4) [homeassistant.components.mqtt.client] Subscribing to shellyplus1-7c87cexxxxxx/status/rpc, mid: 241
2022-10-16 11:39:06.218 DEBUG (SyncWorker_16) [homeassistant.components.mqtt.client] Subscribing to shellyplus1-7c87cexxxxxx/status/rpc, mid: 242
2022-10-16 11:39:06.225 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('button', 'shellyplus1-7c87cexxxxxx-restart'): deque([])
2022-10-16 11:39:06.228 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('button', 'shellyplus1-7c87cexxxxxx-update_firmware'): deque([])
2022-10-16 11:39:06.936 DEBUG (SyncWorker_8) [homeassistant.components.mqtt.client] Subscribing to shellyplus1-7c87cexxxxxx/status/rpc, mid: 362
2022-10-16 11:39:06.943 DEBUG (SyncWorker_19) [homeassistant.components.mqtt.client] Subscribing to shellyplus1-7c87cexxxxxx/status/switch:0, mid: 363
2022-10-16 11:39:06.962 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('switch', 'shellyplus1-7c87cexxxxxx-0'): deque([])
2022-10-16 11:39:08.253 DEBUG (SyncWorker_15) [homeassistant.components.mqtt.client] Subscribing to shellyplus1-7c87cexxxxxx/status/rpc, mid: 477
2022-10-16 11:39:08.263 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('binary_sensor', 'shellyplus1-7c87cexxxxxx-firmware'): deque([])
2022-10-16 11:39:14.549 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting message on shellyplus1-7c87cexxxxxx/rpc: '{"id": 1, "src": "shellies_discovery", "method": "Shelly.GetConfig"}', mid: 484
2022-10-16 11:39:14.817 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on shellies_discovery/rpc: b'{"id":1,"src":"shellyplus1-7c87cexxxxxx","dst":"shellies_discovery","result":{"ble":{"enable":false},"cloud":{"enable":true,"server":"shelly-49-eu.shelly.cloud:6022/jrpc"},"input:0":{"id":0, "name":null, "type":"button", "invert":false,"factory_reset":true},"mqtt":{"enable":true,"server":"hivemq-uuid.s1.eu.hivemq.cloud:8883","client_id":"shellyplus1-7c87cexxxxxx","user":"hivemq-user","ssl_ca":"ca.pem","topic_prefix":"shellyplus1-7c87cexxxxxx","rpc_ntf":true,"status_ntf":false},"script:1":{"id":1, "name":"send_device_status.js", "enable":true},"switch:0":{"id":0, "name":null,"in_mode":"detached","initial_state":"off", "auto_on":false, "auto_on_delay":60.00, "auto_off":true, "auto_off_delay": 2.00},"sys":{"device":{"name":null,"mac":"7c87cexxxxxx","fw_id":"20221014-103904/0.11.3-g0753507","discoverable":true,"eco_mode":false},"location":{"tz":"Europe/Berlin","lat":52.464720,"lon":13.395710},"debug":{"mqtt":{"enable":false},"websocket":{"enable":false},"udp":{"addr":null}},"ui_data":{},"rpc_udp":{"dst_addr":null,"listen_port":null},"sntp":{"server":"time.google.com"},"cfg_rev":32},"wifi":{"ap":{"ssid":"ShellyPlus1-7c87cexxxxxx","is_open":true, "enable":true, "range_extender": {"enable":false}},"sta":{"ssid":"WIFI-SSID","is_open":false, "enable":true, "ipv4mode":"dhcp","ip":null,"netmask":null,"gw":null,"nameserver":null},"sta1":{"ssid":null,"is_open":true, "enable":false, "ipv4mode":"dhcp","ip":null,"netmask":null,"gw":null,"nameserver":null},"roam":{"rssi_thr":-80,"interval":60}},"ws":{"enable":false,"server":null,"ssl_ca":"ca.pem"}}}'
2022-10-16 11:39:15.324 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/switch/shellyplus1-7c87cexxxxxx-0/config: '{"name": "Shelly Plus 1 Relay 0", "cmd_t": "~rpc", "pl_off": "{\"id\":1,\"src\":\"shellyplus1-7c87cexxxxxx\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":false}}", "pl_on": "{\"id\":1,\"src\":\"shellyplus1-7c87cexxxxxx\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":true}}", "stat_t": "~status/switch:0", "val_tpl": "{%if value_json.output%}on{%else%}off{%endif%}", "stat_off": "off", "stat_on": "on", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyplus1-7c87cexxxxxx-0", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/"}', mid: 486
2022-10-16 11:39:15.325 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/switch/shellyplus1-7c87cexxxxxx-0/config: b'{"name": "Shelly Plus 1 Relay 0", "cmd_t": "~rpc", "pl_off": "{\\"id\\":1,\\"src\\":\\"shellyplus1-7c87cexxxxxx\\",\\"method\\":\\"Switch.Set\\",\\"params\\":{\\"id\\":0,\\"on\\":false}}", "pl_on": "{\\"id\\":1,\\"src\\":\\"shellyplus1-7c87cexxxxxx\\",\\"method\\":\\"Switch.Set\\",\\"params\\":{\\"id\\":0,\\"on\\":true}}", "stat_t": "~status/switch:0", "val_tpl": "{%if value_json.output%}on{%else%}off{%endif%}", "stat_off": "off", "stat_on": "on", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyplus1-7c87cexxxxxx-0", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/"}'
2022-10-16 11:39:16.051 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Relay 0', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_off': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Switch.Set","params":{"id":0,"on":false}}', 'payload_on': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Switch.Set","params":{"id":0,"on":true}}', 'state_topic': 'shellyplus1-7c87cexxxxxx/status/switch:0', 'value_template': '{%if value_json.output%}on{%else%}off{%endif%}', 'state_off': 'off', 'state_on': 'on', 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'unique_id': 'shellyplus1-7c87cexxxxxx-0', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'platform': 'mqtt'}
2022-10-16 11:39:16.051 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: switch shellyplus1-7c87cexxxxxx-0, sending update
2022-10-16 11:39:16.059 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('switch', 'shellyplus1-7c87cexxxxxx-0') '{'name': 'Shelly Plus 1 Relay 0', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_off': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Switch.Set","params":{"id":0,"on":false}}', 'payload_on': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Switch.Set","params":{"id":0,"on":true}}', 'state_topic': 'shellyplus1-7c87cexxxxxx/status/switch:0', 'value_template': '{%if value_json.output%}on{%else%}off{%endif%}', 'state_off': 'off', 'state_on': 'on', 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'unique_id': 'shellyplus1-7c87cexxxxxx-0', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'platform': 'mqtt'}'
2022-10-16 11:39:16.073 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/switch/shellyplus1-7c87cexxxxxx-0/config: b'{"name": "Shelly Plus 1 Relay 0", "cmd_t": "~rpc", "pl_off": "{\\"id\\":1,\\"src\\":\\"shellyplus1-7c87cexxxxxx\\",\\"method\\":\\"Switch.Set\\",\\"params\\":{\\"id\\":0,\\"on\\":false}}", "pl_on": "{\\"id\\":1,\\"src\\":\\"shellyplus1-7c87cexxxxxx\\",\\"method\\":\\"Switch.Set\\",\\"params\\":{\\"id\\":0,\\"on\\":true}}", "stat_t": "~status/switch:0", "val_tpl": "{%if value_json.output%}on{%else%}off{%endif%}", "stat_off": "off", "stat_on": "on", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyplus1-7c87cexxxxxx-0", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/"}'
2022-10-16 11:39:16.077 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('switch', 'shellyplus1-7c87cexxxxxx-0'): deque([])
2022-10-16 11:39:16.084 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Relay 0', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_off': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Switch.Set","params":{"id":0,"on":false}}', 'payload_on': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Switch.Set","params":{"id":0,"on":true}}', 'state_topic': 'shellyplus1-7c87cexxxxxx/status/switch:0', 'value_template': '{%if value_json.output%}on{%else%}off{%endif%}', 'state_off': 'off', 'state_on': 'on', 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'unique_id': 'shellyplus1-7c87cexxxxxx-0', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'platform': 'mqtt'}
2022-10-16 11:39:16.084 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: switch shellyplus1-7c87cexxxxxx-0, sending update
2022-10-16 11:39:16.085 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/light/shellyplus1-7c87cexxxxxx-0/config: '', mid: 487
2022-10-16 11:39:16.085 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/light/shellyplus1-7c87cexxxxxx-0/config: b''
2022-10-16 11:39:16.161 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('switch', 'shellyplus1-7c87cexxxxxx-0') '{'name': 'Shelly Plus 1 Relay 0', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_off': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Switch.Set","params":{"id":0,"on":false}}', 'payload_on': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Switch.Set","params":{"id":0,"on":true}}', 'state_topic': 'shellyplus1-7c87cexxxxxx/status/switch:0', 'value_template': '{%if value_json.output%}on{%else%}off{%endif%}', 'state_off': 'off', 'state_on': 'on', 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'unique_id': 'shellyplus1-7c87cexxxxxx-0', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'platform': 'mqtt'}'
2022-10-16 11:39:16.173 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('switch', 'shellyplus1-7c87cexxxxxx-0'): deque([])
2022-10-16 11:39:16.173 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/light/shellyplus1-7c87cexxxxxx-0/config: b''
2022-10-16 11:39:16.224 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-0-overtemp/config: '{"name": "Shelly Plus 1 Relay 0 Overtemperature", "val_tpl": "{%if \"overtemp\" in value_json.get(\"errors\",[])%}ON{%else%}OFF{%endif%}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-0-overtemp", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/switch:0", "dev_cla": "problem", "entity_category": "diagnostic"}', mid: 489
2022-10-16 11:39:16.226 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-0-overtemp/config: b'{"name": "Shelly Plus 1 Relay 0 Overtemperature", "val_tpl": "{%if \\"overtemp\\" in value_json.get(\\"errors\\",[])%}ON{%else%}OFF{%endif%}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-0-overtemp", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/switch:0", "dev_cla": "problem", "entity_category": "diagnostic"}'
2022-10-16 11:39:16.257 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Relay 0 Overtemperature', 'value_template': '{%if "overtemp" in value_json.get("errors",[])%}ON{%else%}OFF{%endif%}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-0-overtemp', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/switch:0', 'device_class': 'problem', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:39:16.257 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: binary_sensor shellyplus1-7c87cexxxxxx-0-overtemp
2022-10-16 11:39:16.316 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('binary_sensor', 'shellyplus1-7c87cexxxxxx-0-overtemp'): deque([])
2022-10-16 11:39:16.317 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-0-overtemp/config: b'{"name": "Shelly Plus 1 Relay 0 Overtemperature", "val_tpl": "{%if \\"overtemp\\" in value_json.get(\\"errors\\",[])%}ON{%else%}OFF{%endif%}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-0-overtemp", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/switch:0", "dev_cla": "problem", "entity_category": "diagnostic"}'
2022-10-16 11:39:16.328 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Relay 0 Overtemperature', 'value_template': '{%if "overtemp" in value_json.get("errors",[])%}ON{%else%}OFF{%endif%}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-0-overtemp', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/switch:0', 'device_class': 'problem', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:39:16.328 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: binary_sensor shellyplus1-7c87cexxxxxx-0-overtemp
2022-10-16 11:39:16.328 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/device_automation/shellyplus1-7c87cexxxxxx-input-0/single_push/config: '{"atype": "trigger", "t": "shellyplus1-7c87cexxxxxx/events/rpc", "pl": "0_single_push", "val_tpl": "{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "type": "button_short_press", "stype": "button_1"}', mid: 491
2022-10-16 11:39:16.329 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/device_automation/shellyplus1-7c87cexxxxxx-input-0/single_push/config: b'{"atype": "trigger", "t": "shellyplus1-7c87cexxxxxx/events/rpc", "pl": "0_single_push", "val_tpl": "{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "type": "button_short_press", "stype": "button_1"}'
2022-10-16 11:39:16.350 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_single_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_short_press', 'subtype': 'button_1', 'platform': 'mqtt'}
2022-10-16 11:39:16.350 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: device_automation shellyplus1-7c87cexxxxxx-input-0 single_push, sending update
2022-10-16 11:39:16.365 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for Device trigger with hash: ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 single_push') '{'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_single_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_short_press', 'subtype': 'button_1', 'platform': 'mqtt'}'
2022-10-16 11:39:16.365 INFO (MainThread) [homeassistant.components.mqtt.mixins] Device trigger ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 single_push') no changes
2022-10-16 11:39:16.374 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 single_push'): deque([])
2022-10-16 11:39:16.392 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('binary_sensor', 'shellyplus1-7c87cexxxxxx-0-overtemp'): deque([])
2022-10-16 11:39:16.413 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/device_automation/shellyplus1-7c87cexxxxxx-input-0/double_push/config: '{"atype": "trigger", "t": "shellyplus1-7c87cexxxxxx/events/rpc", "pl": "0_double_push", "val_tpl": "{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "type": "button_double_press", "stype": "button_1"}', mid: 493
2022-10-16 11:39:16.413 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/device_automation/shellyplus1-7c87cexxxxxx-input-0/single_push/config: b'{"atype": "trigger", "t": "shellyplus1-7c87cexxxxxx/events/rpc", "pl": "0_single_push", "val_tpl": "{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "type": "button_short_press", "stype": "button_1"}'
2022-10-16 11:39:16.414 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_single_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_short_press', 'subtype': 'button_1', 'platform': 'mqtt'}
2022-10-16 11:39:16.414 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: device_automation shellyplus1-7c87cexxxxxx-input-0 single_push, sending update
2022-10-16 11:39:16.422 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for Device trigger with hash: ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 single_push') '{'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_single_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_short_press', 'subtype': 'button_1', 'platform': 'mqtt'}'
2022-10-16 11:39:16.422 INFO (MainThread) [homeassistant.components.mqtt.mixins] Device trigger ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 single_push') no changes
2022-10-16 11:39:16.430 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 single_push'): deque([])
2022-10-16 11:39:16.431 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/device_automation/shellyplus1-7c87cexxxxxx-input-0/double_push/config: b'{"atype": "trigger", "t": "shellyplus1-7c87cexxxxxx/events/rpc", "pl": "0_double_push", "val_tpl": "{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "type": "button_double_press", "stype": "button_1"}'
2022-10-16 11:39:16.493 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_double_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_double_press', 'subtype': 'button_1', 'platform': 'mqtt'}
2022-10-16 11:39:16.493 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: device_automation shellyplus1-7c87cexxxxxx-input-0 double_push, sending update
2022-10-16 11:39:16.509 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for Device trigger with hash: ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 double_push') '{'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_double_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_double_press', 'subtype': 'button_1', 'platform': 'mqtt'}'
2022-10-16 11:39:16.509 INFO (MainThread) [homeassistant.components.mqtt.mixins] Device trigger ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 double_push') no changes
2022-10-16 11:39:16.512 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/device_automation/shellyplus1-7c87cexxxxxx-input-0/double_push/config: b'{"atype": "trigger", "t": "shellyplus1-7c87cexxxxxx/events/rpc", "pl": "0_double_push", "val_tpl": "{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "type": "button_double_press", "stype": "button_1"}'
2022-10-16 11:39:16.527 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 double_push'): deque([])
2022-10-16 11:39:16.527 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_double_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_double_press', 'subtype': 'button_1', 'platform': 'mqtt'}
2022-10-16 11:39:16.527 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: device_automation shellyplus1-7c87cexxxxxx-input-0 double_push, sending update
2022-10-16 11:39:16.528 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/device_automation/shellyplus1-7c87cexxxxxx-input-0/long_push/config: '{"atype": "trigger", "t": "shellyplus1-7c87cexxxxxx/events/rpc", "pl": "0_long_push", "val_tpl": "{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "type": "button_long_press", "stype": "button_1"}', mid: 495
2022-10-16 11:39:16.528 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/device_automation/shellyplus1-7c87cexxxxxx-input-0/long_push/config: b'{"atype": "trigger", "t": "shellyplus1-7c87cexxxxxx/events/rpc", "pl": "0_long_push", "val_tpl": "{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "type": "button_long_press", "stype": "button_1"}'
2022-10-16 11:39:16.541 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for Device trigger with hash: ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 double_push') '{'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_double_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_double_press', 'subtype': 'button_1', 'platform': 'mqtt'}'
2022-10-16 11:39:16.542 INFO (MainThread) [homeassistant.components.mqtt.mixins] Device trigger ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 double_push') no changes
2022-10-16 11:39:16.542 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_long_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_long_press', 'subtype': 'button_1', 'platform': 'mqtt'}
2022-10-16 11:39:16.542 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: device_automation shellyplus1-7c87cexxxxxx-input-0 long_push, sending update
2022-10-16 11:39:16.564 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 double_push'): deque([])
2022-10-16 11:39:16.564 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for Device trigger with hash: ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 long_push') '{'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_long_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_long_press', 'subtype': 'button_1', 'platform': 'mqtt'}'
2022-10-16 11:39:16.564 INFO (MainThread) [homeassistant.components.mqtt.mixins] Device trigger ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 long_push') no changes
2022-10-16 11:39:16.586 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 long_push'): deque([])
2022-10-16 11:39:16.636 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/device_automation/shellyplus1-7c87cexxxxxx-input-0/long_push/config: b'{"atype": "trigger", "t": "shellyplus1-7c87cexxxxxx/events/rpc", "pl": "0_long_push", "val_tpl": "{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "type": "button_long_press", "stype": "button_1"}'
2022-10-16 11:39:16.677 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_long_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_long_press', 'subtype': 'button_1', 'platform': 'mqtt'}
2022-10-16 11:39:16.677 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: device_automation shellyplus1-7c87cexxxxxx-input-0 long_push, sending update
2022-10-16 11:39:16.684 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-0-input/config: '', mid: 497
2022-10-16 11:39:16.684 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-0-input/config: b''
2022-10-16 11:39:16.698 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for Device trigger with hash: ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 long_push') '{'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_long_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_long_press', 'subtype': 'button_1', 'platform': 'mqtt'}'
2022-10-16 11:39:16.698 INFO (MainThread) [homeassistant.components.mqtt.mixins] Device trigger ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 long_push') no changes
2022-10-16 11:39:16.714 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 long_push'): deque([])
2022-10-16 11:39:16.715 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-0-input/config: b''
2022-10-16 11:39:16.785 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/button/shellyplus1-7c87cexxxxxx-restart/config: '{"name": "Shelly Plus 1 Restart", "cmd_t": "~rpc", "payload_press": "{\"id\":1,\"src\":\"shellyplus1-7c87cexxxxxx\",\"method\":\"Shelly.Reboot\"}", "en": "true", "uniq_id": "shellyplus1-7c87cexxxxxx-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "dev_cla": "restart", "entity_category": "config"}', mid: 499
2022-10-16 11:39:16.785 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/button/shellyplus1-7c87cexxxxxx-restart/config: b'{"name": "Shelly Plus 1 Restart", "cmd_t": "~rpc", "payload_press": "{\\"id\\":1,\\"src\\":\\"shellyplus1-7c87cexxxxxx\\",\\"method\\":\\"Shelly.Reboot\\"}", "en": "true", "uniq_id": "shellyplus1-7c87cexxxxxx-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "dev_cla": "restart", "entity_category": "config"}'
2022-10-16 11:39:16.795 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Restart', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_press': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Shelly.Reboot"}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-restart', 'qos': 0, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'device_class': 'restart', 'entity_category': 'config', 'platform': 'mqtt'}
2022-10-16 11:39:16.796 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: button shellyplus1-7c87cexxxxxx-restart, sending update
2022-10-16 11:39:16.815 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('button', 'shellyplus1-7c87cexxxxxx-restart') '{'name': 'Shelly Plus 1 Restart', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_press': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Shelly.Reboot"}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-restart', 'qos': 0, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'device_class': 'restart', 'entity_category': 'config', 'platform': 'mqtt'}'
2022-10-16 11:39:16.863 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('button', 'shellyplus1-7c87cexxxxxx-restart'): deque([])
2022-10-16 11:39:16.904 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/button/shellyplus1-7c87cexxxxxx-restart/config: b'{"name": "Shelly Plus 1 Restart", "cmd_t": "~rpc", "payload_press": "{\\"id\\":1,\\"src\\":\\"shellyplus1-7c87cexxxxxx\\",\\"method\\":\\"Shelly.Reboot\\"}", "en": "true", "uniq_id": "shellyplus1-7c87cexxxxxx-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "dev_cla": "restart", "entity_category": "config"}'
2022-10-16 11:39:16.917 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Restart', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_press': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Shelly.Reboot"}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-restart', 'qos': 0, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'device_class': 'restart', 'entity_category': 'config', 'platform': 'mqtt'}
2022-10-16 11:39:16.917 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: button shellyplus1-7c87cexxxxxx-restart, sending update
2022-10-16 11:39:16.921 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('button', 'shellyplus1-7c87cexxxxxx-restart') '{'name': 'Shelly Plus 1 Restart', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_press': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Shelly.Reboot"}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-restart', 'qos': 0, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'device_class': 'restart', 'entity_category': 'config', 'platform': 'mqtt'}'
2022-10-16 11:39:16.921 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/button/shellyplus1-7c87cexxxxxx-update_firmware/config: '{"name": "Shelly Plus 1 Update Firmware", "cmd_t": "~rpc", "payload_press": "{\"id\":1,\"src\":\"shellyplus1-7c87cexxxxxx\",\"method\":\"Shelly.Update\",\"params\":{\"stage\":\"stable\"}}", "en": "true", "uniq_id": "shellyplus1-7c87cexxxxxx-update_firmware", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "dev_cla": "update", "entity_category": "config"}', mid: 501
2022-10-16 11:39:16.921 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/button/shellyplus1-7c87cexxxxxx-update_firmware/config: b'{"name": "Shelly Plus 1 Update Firmware", "cmd_t": "~rpc", "payload_press": "{\\"id\\":1,\\"src\\":\\"shellyplus1-7c87cexxxxxx\\",\\"method\\":\\"Shelly.Update\\",\\"params\\":{\\"stage\\":\\"stable\\"}}", "en": "true", "uniq_id": "shellyplus1-7c87cexxxxxx-update_firmware", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "dev_cla": "update", "entity_category": "config"}'
2022-10-16 11:39:16.934 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('button', 'shellyplus1-7c87cexxxxxx-restart'): deque([])
2022-10-16 11:39:16.935 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Update Firmware', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_press': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Shelly.Update","params":{"stage":"stable"}}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-update_firmware', 'qos': 0, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'device_class': 'update', 'entity_category': 'config', 'platform': 'mqtt'}
2022-10-16 11:39:16.935 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: button shellyplus1-7c87cexxxxxx-update_firmware, sending update
2022-10-16 11:39:16.944 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('button', 'shellyplus1-7c87cexxxxxx-update_firmware') '{'name': 'Shelly Plus 1 Update Firmware', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_press': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Shelly.Update","params":{"stage":"stable"}}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-update_firmware', 'qos': 0, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'device_class': 'update', 'entity_category': 'config', 'platform': 'mqtt'}'
2022-10-16 11:39:16.951 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('button', 'shellyplus1-7c87cexxxxxx-update_firmware'): deque([])
2022-10-16 11:39:16.972 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-last_restart/config: '{"name": "Shelly Plus 1 Last Restart", "val_tpl": "{{(as_timestamp(now())-value_json.result.sys.uptime)|timestamp_local}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-last_restart", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "dev_cla": "timestamp", "entity_category": "diagnostic"}', mid: 503
2022-10-16 11:39:16.972 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-last_restart/config: b'{"name": "Shelly Plus 1 Last Restart", "val_tpl": "{{(as_timestamp(now())-value_json.result.sys.uptime)|timestamp_local}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-last_restart", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "dev_cla": "timestamp", "entity_category": "diagnostic"}'
2022-10-16 11:39:17.003 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Last Restart', 'value_template': '{{(as_timestamp(now())-value_json.result.sys.uptime)|timestamp_local}}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-last_restart', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'device_class': 'timestamp', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:39:17.004 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: sensor shellyplus1-7c87cexxxxxx-last_restart
2022-10-16 11:39:17.015 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/button/shellyplus1-7c87cexxxxxx-update_firmware/config: b'{"name": "Shelly Plus 1 Update Firmware", "cmd_t": "~rpc", "payload_press": "{\\"id\\":1,\\"src\\":\\"shellyplus1-7c87cexxxxxx\\",\\"method\\":\\"Shelly.Update\\",\\"params\\":{\\"stage\\":\\"stable\\"}}", "en": "true", "uniq_id": "shellyplus1-7c87cexxxxxx-update_firmware", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "dev_cla": "update", "entity_category": "config"}'
2022-10-16 11:39:17.025 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Update Firmware', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_press': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Shelly.Update","params":{"stage":"stable"}}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-update_firmware', 'qos': 0, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'device_class': 'update', 'entity_category': 'config', 'platform': 'mqtt'}
2022-10-16 11:39:17.025 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: button shellyplus1-7c87cexxxxxx-update_firmware, sending update
2022-10-16 11:39:17.044 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('button', 'shellyplus1-7c87cexxxxxx-update_firmware') '{'name': 'Shelly Plus 1 Update Firmware', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_press': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Shelly.Update","params":{"stage":"stable"}}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-update_firmware', 'qos': 0, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'device_class': 'update', 'entity_category': 'config', 'platform': 'mqtt'}'
2022-10-16 11:39:17.058 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('sensor', 'shellyplus1-7c87cexxxxxx-last_restart'): deque([])
2022-10-16 11:39:17.058 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('button', 'shellyplus1-7c87cexxxxxx-update_firmware'): deque([])
2022-10-16 11:39:17.067 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-ssid/config: '{"name": "Shelly Plus 1 SSID", "val_tpl": "{{value_json.result.wifi.ssid}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-ssid", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "icon": "mdi:wifi-settings", "entity_category": "diagnostic"}', mid: 505
2022-10-16 11:39:17.068 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-last_restart/config: b'{"name": "Shelly Plus 1 Last Restart", "val_tpl": "{{(as_timestamp(now())-value_json.result.sys.uptime)|timestamp_local}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-last_restart", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "dev_cla": "timestamp", "entity_category": "diagnostic"}'
2022-10-16 11:39:17.093 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Last Restart', 'value_template': '{{(as_timestamp(now())-value_json.result.sys.uptime)|timestamp_local}}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-last_restart', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'device_class': 'timestamp', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:39:17.093 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: sensor shellyplus1-7c87cexxxxxx-last_restart
2022-10-16 11:39:17.120 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-ssid/config: b'{"name": "Shelly Plus 1 SSID", "val_tpl": "{{value_json.result.wifi.ssid}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-ssid", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "icon": "mdi:wifi-settings", "entity_category": "diagnostic"}'
2022-10-16 11:39:17.150 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 SSID', 'value_template': '{{value_json.result.wifi.ssid}}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-ssid', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'icon': 'mdi:wifi-settings', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:39:17.151 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: sensor shellyplus1-7c87cexxxxxx-ssid
2022-10-16 11:39:17.204 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('sensor', 'shellyplus1-7c87cexxxxxx-last_restart'): deque([])
2022-10-16 11:39:17.205 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-ssid/config: b'{"name": "Shelly Plus 1 SSID", "val_tpl": "{{value_json.result.wifi.ssid}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-ssid", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "icon": "mdi:wifi-settings", "entity_category": "diagnostic"}'
2022-10-16 11:39:17.229 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: sensor shellyplus1-7c87cexxxxxx-ssid, queuing update
2022-10-16 11:39:17.229 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-wifi_ip/config: '{"name": "Shelly Plus 1 WiFi IP", "val_tpl": "{{value_json.result.wifi.sta_ip}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-wifi_ip", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "icon": "mdi:ip-outline", "entity_category": "diagnostic"}', mid: 507
2022-10-16 11:39:17.230 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-wifi_ip/config: b'{"name": "Shelly Plus 1 WiFi IP", "val_tpl": "{{value_json.result.wifi.sta_ip}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-wifi_ip", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "icon": "mdi:ip-outline", "entity_category": "diagnostic"}'
2022-10-16 11:39:17.258 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('sensor', 'shellyplus1-7c87cexxxxxx-ssid'): deque([{'name': 'Shelly Plus 1 SSID', 'value_template': '{{value_json.result.wifi.ssid}}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-ssid', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'icon': 'mdi:wifi-settings', 'entity_category': 'diagnostic', 'platform': 'mqtt'}])
2022-10-16 11:39:17.258 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 SSID', 'value_template': '{{value_json.result.wifi.ssid}}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-ssid', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'icon': 'mdi:wifi-settings', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:39:17.258 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: sensor shellyplus1-7c87cexxxxxx-ssid
2022-10-16 11:39:17.259 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 WiFi IP', 'value_template': '{{value_json.result.wifi.sta_ip}}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-wifi_ip', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'icon': 'mdi:ip-outline', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:39:17.259 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: sensor shellyplus1-7c87cexxxxxx-wifi_ip
2022-10-16 11:39:17.285 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-wifi_ip/config: b'{"name": "Shelly Plus 1 WiFi IP", "val_tpl": "{{value_json.result.wifi.sta_ip}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-wifi_ip", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "icon": "mdi:ip-outline", "entity_category": "diagnostic"}'
2022-10-16 11:39:17.296 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: sensor shellyplus1-7c87cexxxxxx-wifi_ip, queuing update
2022-10-16 11:39:17.304 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('sensor', 'shellyplus1-7c87cexxxxxx-ssid'): deque([])
2022-10-16 11:39:17.304 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('sensor', 'shellyplus1-7c87cexxxxxx-wifi_ip'): deque([{'name': 'Shelly Plus 1 WiFi IP', 'value_template': '{{value_json.result.wifi.sta_ip}}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-wifi_ip', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'icon': 'mdi:ip-outline', 'entity_category': 'diagnostic', 'platform': 'mqtt'}])
2022-10-16 11:39:17.304 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 WiFi IP', 'value_template': '{{value_json.result.wifi.sta_ip}}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-wifi_ip', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'icon': 'mdi:ip-outline', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:39:17.304 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: sensor shellyplus1-7c87cexxxxxx-wifi_ip
2022-10-16 11:39:17.312 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-wifi_signal/config: '{"name": "Shelly Plus 1 WiFi Signal", "val_tpl": "{{value_json.result.wifi.rssi}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-wifi_signal", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "unit_of_meas": "dBm", "dev_cla": "signal_strength", "entity_category": "diagnostic", "stat_cla": "measurement"}', mid: 509
2022-10-16 11:39:17.312 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-wifi_signal/config: b'{"name": "Shelly Plus 1 WiFi Signal", "val_tpl": "{{value_json.result.wifi.rssi}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-wifi_signal", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "unit_of_meas": "dBm", "dev_cla": "signal_strength", "entity_category": "diagnostic", "stat_cla": "measurement"}'
2022-10-16 11:39:17.325 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 WiFi Signal', 'value_template': '{{value_json.result.wifi.rssi}}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-wifi_signal', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'unit_of_measurement': 'dBm', 'device_class': 'signal_strength', 'entity_category': 'diagnostic', 'state_class': 'measurement', 'platform': 'mqtt'}
2022-10-16 11:39:17.325 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: sensor shellyplus1-7c87cexxxxxx-wifi_signal
2022-10-16 11:39:17.362 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('sensor', 'shellyplus1-7c87cexxxxxx-wifi_ip'): deque([])
2022-10-16 11:39:17.362 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-cloud/config: '{"name": "Shelly Plus 1 Cloud", "val_tpl": "{%if value_json.result.cloud.connected%}ON{%else%}OFF{%endif%}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-cloud", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "dev_cla": "connectivity", "entity_category": "diagnostic"}', mid: 510
2022-10-16 11:39:17.363 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-cloud/config: b'{"name": "Shelly Plus 1 Cloud", "val_tpl": "{%if value_json.result.cloud.connected%}ON{%else%}OFF{%endif%}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-cloud", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "dev_cla": "connectivity", "entity_category": "diagnostic"}'
2022-10-16 11:39:17.384 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Cloud', 'value_template': '{%if value_json.result.cloud.connected%}ON{%else%}OFF{%endif%}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-cloud', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'device_class': 'connectivity', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:39:17.384 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: binary_sensor shellyplus1-7c87cexxxxxx-cloud
2022-10-16 11:39:17.393 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('sensor', 'shellyplus1-7c87cexxxxxx-wifi_signal'): deque([])
2022-10-16 11:39:17.418 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-wifi_signal/config: b'{"name": "Shelly Plus 1 WiFi Signal", "val_tpl": "{{value_json.result.wifi.rssi}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-wifi_signal", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "unit_of_meas": "dBm", "dev_cla": "signal_strength", "entity_category": "diagnostic", "stat_cla": "measurement"}'
2022-10-16 11:39:17.418 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-cloud/config: b'{"name": "Shelly Plus 1 Cloud", "val_tpl": "{%if value_json.result.cloud.connected%}ON{%else%}OFF{%endif%}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-cloud", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "dev_cla": "connectivity", "entity_category": "diagnostic"}'
2022-10-16 11:39:17.426 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('binary_sensor', 'shellyplus1-7c87cexxxxxx-cloud'): deque([])
2022-10-16 11:39:17.427 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 WiFi Signal', 'value_template': '{{value_json.result.wifi.rssi}}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-wifi_signal', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'unit_of_measurement': 'dBm', 'device_class': 'signal_strength', 'entity_category': 'diagnostic', 'state_class': 'measurement', 'platform': 'mqtt'}
2022-10-16 11:39:17.427 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: sensor shellyplus1-7c87cexxxxxx-wifi_signal
2022-10-16 11:39:17.427 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Cloud', 'value_template': '{%if value_json.result.cloud.connected%}ON{%else%}OFF{%endif%}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-cloud', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'device_class': 'connectivity', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:39:17.427 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: binary_sensor shellyplus1-7c87cexxxxxx-cloud
2022-10-16 11:39:17.437 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-firmware/config: '{"name": "Shelly Plus 1 Firmware", "val_tpl": "{%if value_json.result.sys.available_updates.stable is defined%}ON{%else%}OFF{%endif%}", "en": "true", "uniq_id": "shellyplus1-7c87cexxxxxx-firmware", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "json_attributes_topic": "~status/rpc", "json_attributes_template": "{{value_json.result.sys.available_updates.get(\"stable\",{})|to_json}}", "dev_cla": "update", "entity_category": "diagnostic"}', mid: 512
2022-10-16 11:39:17.438 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-firmware/config: b'{"name": "Shelly Plus 1 Firmware", "val_tpl": "{%if value_json.result.sys.available_updates.stable is defined%}ON{%else%}OFF{%endif%}", "en": "true", "uniq_id": "shellyplus1-7c87cexxxxxx-firmware", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "json_attributes_topic": "~status/rpc", "json_attributes_template": "{{value_json.result.sys.available_updates.get(\\"stable\\",{})|to_json}}", "dev_cla": "update", "entity_category": "diagnostic"}'
2022-10-16 11:39:17.449 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Firmware', 'value_template': '{%if value_json.result.sys.available_updates.stable is defined%}ON{%else%}OFF{%endif%}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-firmware', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'json_attributes_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'json_attributes_template': '{{value_json.result.sys.available_updates.get("stable",{})|to_json}}', 'device_class': 'update', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:39:17.450 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: binary_sensor shellyplus1-7c87cexxxxxx-firmware, sending update
2022-10-16 11:39:17.463 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('binary_sensor', 'shellyplus1-7c87cexxxxxx-firmware') '{'name': 'Shelly Plus 1 Firmware', 'value_template': '{%if value_json.result.sys.available_updates.stable is defined%}ON{%else%}OFF{%endif%}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-firmware', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'json_attributes_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'json_attributes_template': '{{value_json.result.sys.available_updates.get("stable",{})|to_json}}', 'device_class': 'update', 'entity_category': 'diagnostic', 'platform': 'mqtt'}'
2022-10-16 11:39:17.482 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('sensor', 'shellyplus1-7c87cexxxxxx-wifi_signal'): deque([])
2022-10-16 11:39:17.482 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('binary_sensor', 'shellyplus1-7c87cexxxxxx-cloud'): deque([])
2022-10-16 11:39:17.482 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('binary_sensor', 'shellyplus1-7c87cexxxxxx-firmware'): deque([])
2022-10-16 11:39:17.581 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-firmware/config: b'{"name": "Shelly Plus 1 Firmware", "val_tpl": "{%if value_json.result.sys.available_updates.stable is defined%}ON{%else%}OFF{%endif%}", "en": "true", "uniq_id": "shellyplus1-7c87cexxxxxx-firmware", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "json_attributes_topic": "~status/rpc", "json_attributes_template": "{{value_json.result.sys.available_updates.get(\\"stable\\",{})|to_json}}", "dev_cla": "update", "entity_category": "diagnostic"}'
2022-10-16 11:39:17.609 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Firmware', 'value_template': '{%if value_json.result.sys.available_updates.stable is defined%}ON{%else%}OFF{%endif%}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-firmware', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'json_attributes_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'json_attributes_template': '{{value_json.result.sys.available_updates.get("stable",{})|to_json}}', 'device_class': 'update', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:39:17.609 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: binary_sensor shellyplus1-7c87cexxxxxx-firmware, sending update
2022-10-16 11:39:17.663 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('binary_sensor', 'shellyplus1-7c87cexxxxxx-firmware') '{'name': 'Shelly Plus 1 Firmware', 'value_template': '{%if value_json.result.sys.available_updates.stable is defined%}ON{%else%}OFF{%endif%}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-firmware', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'json_attributes_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'json_attributes_template': '{{value_json.result.sys.available_updates.get("stable",{})|to_json}}', 'device_class': 'update', 'entity_category': 'diagnostic', 'platform': 'mqtt'}'
2022-10-16 11:39:17.730 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('binary_sensor', 'shellyplus1-7c87cexxxxxx-firmware'): deque([])
2022-10-16 11:43:09.781 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting message on shellyplus1-7c87cexxxxxx/rpc: '{"id": 1, "src": "shellies_discovery", "method": "Shelly.GetConfig"}', mid: 969
2022-10-16 11:43:09.961 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on shellies_discovery/rpc: b'{"id":1,"src":"shellyplus1-7c87cexxxxxx","dst":"shellies_discovery","result":{"ble":{"enable":false},"cloud":{"enable":true,"server":"shelly-49-eu.shelly.cloud:6022/jrpc"},"input:0":{"id":0, "name":null, "type":"button", "invert":false,"factory_reset":true},"mqtt":{"enable":true,"server":"hivemq-uuid.s1.eu.hivemq.cloud:8883","client_id":"shellyplus1-7c87cexxxxxx","user":"hivemq-user","ssl_ca":"ca.pem","topic_prefix":"shellyplus1-7c87cexxxxxx","rpc_ntf":true,"status_ntf":false},"script:1":{"id":1, "name":"send_device_status.js", "enable":true},"switch:0":{"id":0, "name":null,"in_mode":"detached","initial_state":"off", "auto_on":false, "auto_on_delay":60.00, "auto_off":true, "auto_off_delay": 2.00},"sys":{"device":{"name":null,"mac":"7c87cexxxxxx","fw_id":"20221014-103904/0.11.3-g0753507","discoverable":true,"eco_mode":false},"location":{"tz":"Europe/Berlin","lat":52.464720,"lon":13.395710},"debug":{"mqtt":{"enable":false},"websocket":{"enable":false},"udp":{"addr":null}},"ui_data":{},"rpc_udp":{"dst_addr":null,"listen_port":null},"sntp":{"server":"time.google.com"},"cfg_rev":32},"wifi":{"ap":{"ssid":"ShellyPlus1-7c87cexxxxxx","is_open":true, "enable":true, "range_extender": {"enable":false}},"sta":{"ssid":"WIFI-SSID","is_open":false, "enable":true, "ipv4mode":"dhcp","ip":null,"netmask":null,"gw":null,"nameserver":null},"sta1":{"ssid":null,"is_open":true, "enable":false, "ipv4mode":"dhcp","ip":null,"netmask":null,"gw":null,"nameserver":null},"roam":{"rssi_thr":-80,"interval":60}},"ws":{"enable":false,"server":null,"ssl_ca":"ca.pem"}}}'
2022-10-16 11:43:10.121 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/switch/shellyplus1-7c87cexxxxxx-0/config: '{"name": "Shelly Plus 1 Relay 0", "cmd_t": "~rpc", "pl_off": "{\"id\":1,\"src\":\"shellyplus1-7c87cexxxxxx\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":false}}", "pl_on": "{\"id\":1,\"src\":\"shellyplus1-7c87cexxxxxx\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":true}}", "stat_t": "~status/switch:0", "val_tpl": "{%if value_json.output%}on{%else%}off{%endif%}", "stat_off": "off", "stat_on": "on", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyplus1-7c87cexxxxxx-0", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/"}', mid: 970
2022-10-16 11:43:10.123 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/switch/shellyplus1-7c87cexxxxxx-0/config: b'{"name": "Shelly Plus 1 Relay 0", "cmd_t": "~rpc", "pl_off": "{\\"id\\":1,\\"src\\":\\"shellyplus1-7c87cexxxxxx\\",\\"method\\":\\"Switch.Set\\",\\"params\\":{\\"id\\":0,\\"on\\":false}}", "pl_on": "{\\"id\\":1,\\"src\\":\\"shellyplus1-7c87cexxxxxx\\",\\"method\\":\\"Switch.Set\\",\\"params\\":{\\"id\\":0,\\"on\\":true}}", "stat_t": "~status/switch:0", "val_tpl": "{%if value_json.output%}on{%else%}off{%endif%}", "stat_off": "off", "stat_on": "on", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyplus1-7c87cexxxxxx-0", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/"}'
2022-10-16 11:43:10.128 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Relay 0', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_off': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Switch.Set","params":{"id":0,"on":false}}', 'payload_on': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Switch.Set","params":{"id":0,"on":true}}', 'state_topic': 'shellyplus1-7c87cexxxxxx/status/switch:0', 'value_template': '{%if value_json.output%}on{%else%}off{%endif%}', 'state_off': 'off', 'state_on': 'on', 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'unique_id': 'shellyplus1-7c87cexxxxxx-0', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'platform': 'mqtt'}
2022-10-16 11:43:10.128 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: switch shellyplus1-7c87cexxxxxx-0, sending update
2022-10-16 11:43:10.129 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('switch', 'shellyplus1-7c87cexxxxxx-0') '{'name': 'Shelly Plus 1 Relay 0', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_off': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Switch.Set","params":{"id":0,"on":false}}', 'payload_on': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Switch.Set","params":{"id":0,"on":true}}', 'state_topic': 'shellyplus1-7c87cexxxxxx/status/switch:0', 'value_template': '{%if value_json.output%}on{%else%}off{%endif%}', 'state_off': 'off', 'state_on': 'on', 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'unique_id': 'shellyplus1-7c87cexxxxxx-0', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'platform': 'mqtt'}'
2022-10-16 11:43:10.137 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('switch', 'shellyplus1-7c87cexxxxxx-0'): deque([])
2022-10-16 11:43:10.144 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/light/shellyplus1-7c87cexxxxxx-0/config: '', mid: 971
2022-10-16 11:43:10.145 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/light/shellyplus1-7c87cexxxxxx-0/config: b''
2022-10-16 11:43:10.156 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-0-overtemp/config: '{"name": "Shelly Plus 1 Relay 0 Overtemperature", "val_tpl": "{%if \"overtemp\" in value_json.get(\"errors\",[])%}ON{%else%}OFF{%endif%}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-0-overtemp", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/switch:0", "dev_cla": "problem", "entity_category": "diagnostic"}', mid: 972
2022-10-16 11:43:10.157 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/switch/shellyplus1-7c87cexxxxxx-0/config: b'{"name": "Shelly Plus 1 Relay 0", "cmd_t": "~rpc", "pl_off": "{\\"id\\":1,\\"src\\":\\"shellyplus1-7c87cexxxxxx\\",\\"method\\":\\"Switch.Set\\",\\"params\\":{\\"id\\":0,\\"on\\":false}}", "pl_on": "{\\"id\\":1,\\"src\\":\\"shellyplus1-7c87cexxxxxx\\",\\"method\\":\\"Switch.Set\\",\\"params\\":{\\"id\\":0,\\"on\\":true}}", "stat_t": "~status/switch:0", "val_tpl": "{%if value_json.output%}on{%else%}off{%endif%}", "stat_off": "off", "stat_on": "on", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyplus1-7c87cexxxxxx-0", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/"}'
2022-10-16 11:43:10.162 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Relay 0', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_off': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Switch.Set","params":{"id":0,"on":false}}', 'payload_on': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Switch.Set","params":{"id":0,"on":true}}', 'state_topic': 'shellyplus1-7c87cexxxxxx/status/switch:0', 'value_template': '{%if value_json.output%}on{%else%}off{%endif%}', 'state_off': 'off', 'state_on': 'on', 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'unique_id': 'shellyplus1-7c87cexxxxxx-0', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'platform': 'mqtt'}
2022-10-16 11:43:10.162 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: switch shellyplus1-7c87cexxxxxx-0, sending update
2022-10-16 11:43:10.169 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('switch', 'shellyplus1-7c87cexxxxxx-0') '{'name': 'Shelly Plus 1 Relay 0', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_off': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Switch.Set","params":{"id":0,"on":false}}', 'payload_on': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Switch.Set","params":{"id":0,"on":true}}', 'state_topic': 'shellyplus1-7c87cexxxxxx/status/switch:0', 'value_template': '{%if value_json.output%}on{%else%}off{%endif%}', 'state_off': 'off', 'state_on': 'on', 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'unique_id': 'shellyplus1-7c87cexxxxxx-0', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'platform': 'mqtt'}'
2022-10-16 11:43:10.173 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('switch', 'shellyplus1-7c87cexxxxxx-0'): deque([])
2022-10-16 11:43:10.174 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/device_automation/shellyplus1-7c87cexxxxxx-input-0/single_push/config: '{"atype": "trigger", "t": "shellyplus1-7c87cexxxxxx/events/rpc", "pl": "0_single_push", "val_tpl": "{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "type": "button_short_press", "stype": "button_1"}', mid: 973
2022-10-16 11:43:10.175 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-0-overtemp/config: b'{"name": "Shelly Plus 1 Relay 0 Overtemperature", "val_tpl": "{%if \\"overtemp\\" in value_json.get(\\"errors\\",[])%}ON{%else%}OFF{%endif%}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-0-overtemp", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/switch:0", "dev_cla": "problem", "entity_category": "diagnostic"}'
2022-10-16 11:43:10.184 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Relay 0 Overtemperature', 'value_template': '{%if "overtemp" in value_json.get("errors",[])%}ON{%else%}OFF{%endif%}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-0-overtemp', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/switch:0', 'device_class': 'problem', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:43:10.185 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: binary_sensor shellyplus1-7c87cexxxxxx-0-overtemp
2022-10-16 11:43:10.219 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/device_automation/shellyplus1-7c87cexxxxxx-input-0/double_push/config: '{"atype": "trigger", "t": "shellyplus1-7c87cexxxxxx/events/rpc", "pl": "0_double_push", "val_tpl": "{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "type": "button_double_press", "stype": "button_1"}', mid: 974
2022-10-16 11:43:10.220 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/device_automation/shellyplus1-7c87cexxxxxx-input-0/single_push/config: b'{"atype": "trigger", "t": "shellyplus1-7c87cexxxxxx/events/rpc", "pl": "0_single_push", "val_tpl": "{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "type": "button_short_press", "stype": "button_1"}'
2022-10-16 11:43:10.220 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/light/shellyplus1-7c87cexxxxxx-0/config: b''
2022-10-16 11:43:10.227 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/device_automation/shellyplus1-7c87cexxxxxx-input-0/double_push/config: b'{"atype": "trigger", "t": "shellyplus1-7c87cexxxxxx/events/rpc", "pl": "0_double_push", "val_tpl": "{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "type": "button_double_press", "stype": "button_1"}'
2022-10-16 11:43:10.227 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-0-overtemp/config: b'{"name": "Shelly Plus 1 Relay 0 Overtemperature", "val_tpl": "{%if \\"overtemp\\" in value_json.get(\\"errors\\",[])%}ON{%else%}OFF{%endif%}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-0-overtemp", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/switch:0", "dev_cla": "problem", "entity_category": "diagnostic"}'
2022-10-16 11:43:10.228 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/device_automation/shellyplus1-7c87cexxxxxx-input-0/single_push/config: b'{"atype": "trigger", "t": "shellyplus1-7c87cexxxxxx/events/rpc", "pl": "0_single_push", "val_tpl": "{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "type": "button_short_press", "stype": "button_1"}'
2022-10-16 11:43:10.228 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_single_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_short_press', 'subtype': 'button_1', 'platform': 'mqtt'}
2022-10-16 11:43:10.229 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: device_automation shellyplus1-7c87cexxxxxx-input-0 single_push, sending update
2022-10-16 11:43:10.244 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('binary_sensor', 'shellyplus1-7c87cexxxxxx-0-overtemp'): deque([])
2022-10-16 11:43:10.244 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_double_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_double_press', 'subtype': 'button_1', 'platform': 'mqtt'}
2022-10-16 11:43:10.245 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: device_automation shellyplus1-7c87cexxxxxx-input-0 double_push, sending update
2022-10-16 11:43:10.245 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Relay 0 Overtemperature', 'value_template': '{%if "overtemp" in value_json.get("errors",[])%}ON{%else%}OFF{%endif%}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-0-overtemp', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/switch:0', 'device_class': 'problem', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:43:10.245 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: binary_sensor shellyplus1-7c87cexxxxxx-0-overtemp
2022-10-16 11:43:10.246 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: device_automation shellyplus1-7c87cexxxxxx-input-0 single_push, queuing update
2022-10-16 11:43:10.246 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for Device trigger with hash: ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 single_push') '{'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_single_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_short_press', 'subtype': 'button_1', 'platform': 'mqtt'}'
2022-10-16 11:43:10.246 INFO (MainThread) [homeassistant.components.mqtt.mixins] Device trigger ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 single_push') no changes
2022-10-16 11:43:10.247 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for Device trigger with hash: ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 double_push') '{'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_double_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_double_press', 'subtype': 'button_1', 'platform': 'mqtt'}'
2022-10-16 11:43:10.247 INFO (MainThread) [homeassistant.components.mqtt.mixins] Device trigger ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 double_push') no changes
2022-10-16 11:43:10.249 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 single_push'): deque([{'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_single_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_short_press', 'subtype': 'button_1', 'platform': 'mqtt'}])
2022-10-16 11:43:10.249 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_single_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_short_press', 'subtype': 'button_1', 'platform': 'mqtt'}
2022-10-16 11:43:10.249 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: device_automation shellyplus1-7c87cexxxxxx-input-0 single_push, sending update
2022-10-16 11:43:10.250 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/device_automation/shellyplus1-7c87cexxxxxx-input-0/long_push/config: '{"atype": "trigger", "t": "shellyplus1-7c87cexxxxxx/events/rpc", "pl": "0_long_push", "val_tpl": "{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "type": "button_long_press", "stype": "button_1"}', mid: 975
2022-10-16 11:43:10.250 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/device_automation/shellyplus1-7c87cexxxxxx-input-0/long_push/config: b'{"atype": "trigger", "t": "shellyplus1-7c87cexxxxxx/events/rpc", "pl": "0_long_push", "val_tpl": "{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "type": "button_long_press", "stype": "button_1"}'
2022-10-16 11:43:10.260 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 double_push'): deque([])
2022-10-16 11:43:10.261 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for Device trigger with hash: ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 single_push') '{'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_single_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_short_press', 'subtype': 'button_1', 'platform': 'mqtt'}'
2022-10-16 11:43:10.261 INFO (MainThread) [homeassistant.components.mqtt.mixins] Device trigger ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 single_push') no changes
2022-10-16 11:43:10.262 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_long_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_long_press', 'subtype': 'button_1', 'platform': 'mqtt'}
2022-10-16 11:43:10.262 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: device_automation shellyplus1-7c87cexxxxxx-input-0 long_push, sending update
2022-10-16 11:43:10.279 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 single_push'): deque([])
2022-10-16 11:43:10.279 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for Device trigger with hash: ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 long_push') '{'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_long_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_long_press', 'subtype': 'button_1', 'platform': 'mqtt'}'
2022-10-16 11:43:10.279 INFO (MainThread) [homeassistant.components.mqtt.mixins] Device trigger ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 long_push') no changes
2022-10-16 11:43:10.286 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('binary_sensor', 'shellyplus1-7c87cexxxxxx-0-overtemp'): deque([])
2022-10-16 11:43:10.286 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 long_push'): deque([])
2022-10-16 11:43:10.287 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-0-input/config: '', mid: 976
2022-10-16 11:43:10.287 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/device_automation/shellyplus1-7c87cexxxxxx-input-0/double_push/config: b'{"atype": "trigger", "t": "shellyplus1-7c87cexxxxxx/events/rpc", "pl": "0_double_push", "val_tpl": "{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "type": "button_double_press", "stype": "button_1"}'
2022-10-16 11:43:10.292 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_double_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_double_press', 'subtype': 'button_1', 'platform': 'mqtt'}
2022-10-16 11:43:10.293 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: device_automation shellyplus1-7c87cexxxxxx-input-0 double_push, sending update
2022-10-16 11:43:10.308 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for Device trigger with hash: ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 double_push') '{'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_double_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_double_press', 'subtype': 'button_1', 'platform': 'mqtt'}'
2022-10-16 11:43:10.309 INFO (MainThread) [homeassistant.components.mqtt.mixins] Device trigger ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 double_push') no changes
2022-10-16 11:43:10.311 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 double_push'): deque([])
2022-10-16 11:43:10.311 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/button/shellyplus1-7c87cexxxxxx-restart/config: '{"name": "Shelly Plus 1 Restart", "cmd_t": "~rpc", "payload_press": "{\"id\":1,\"src\":\"shellyplus1-7c87cexxxxxx\",\"method\":\"Shelly.Reboot\"}", "en": "true", "uniq_id": "shellyplus1-7c87cexxxxxx-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "dev_cla": "restart", "entity_category": "config"}', mid: 977
2022-10-16 11:43:10.313 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-0-input/config: b''
2022-10-16 11:43:10.313 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/device_automation/shellyplus1-7c87cexxxxxx-input-0/long_push/config: b'{"atype": "trigger", "t": "shellyplus1-7c87cexxxxxx/events/rpc", "pl": "0_long_push", "val_tpl": "{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "type": "button_long_press", "stype": "button_1"}'
2022-10-16 11:43:10.327 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_long_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_long_press', 'subtype': 'button_1', 'platform': 'mqtt'}
2022-10-16 11:43:10.328 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: device_automation shellyplus1-7c87cexxxxxx-input-0 long_push, sending update
2022-10-16 11:43:10.337 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for Device trigger with hash: ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 long_push') '{'automation_type': 'trigger', 'topic': 'shellyplus1-7c87cexxxxxx/events/rpc', 'payload': '0_long_push', 'value_template': '{{value_json.params.events.0.id}}_{{value_json.params.events.0.event}}', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'type': 'button_long_press', 'subtype': 'button_1', 'platform': 'mqtt'}'
2022-10-16 11:43:10.337 INFO (MainThread) [homeassistant.components.mqtt.mixins] Device trigger ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 long_push') no changes
2022-10-16 11:43:10.338 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('device_automation', 'shellyplus1-7c87cexxxxxx-input-0 long_push'): deque([])
2022-10-16 11:43:10.338 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/button/shellyplus1-7c87cexxxxxx-update_firmware/config: '{"name": "Shelly Plus 1 Update Firmware", "cmd_t": "~rpc", "payload_press": "{\"id\":1,\"src\":\"shellyplus1-7c87cexxxxxx\",\"method\":\"Shelly.Update\",\"params\":{\"stage\":\"stable\"}}", "en": "true", "uniq_id": "shellyplus1-7c87cexxxxxx-update_firmware", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "dev_cla": "update", "entity_category": "config"}', mid: 978
2022-10-16 11:43:10.340 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/button/shellyplus1-7c87cexxxxxx-restart/config: b'{"name": "Shelly Plus 1 Restart", "cmd_t": "~rpc", "payload_press": "{\\"id\\":1,\\"src\\":\\"shellyplus1-7c87cexxxxxx\\",\\"method\\":\\"Shelly.Reboot\\"}", "en": "true", "uniq_id": "shellyplus1-7c87cexxxxxx-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "dev_cla": "restart", "entity_category": "config"}'
2022-10-16 11:43:10.340 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-0-input/config: b''
2022-10-16 11:43:10.341 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/button/shellyplus1-7c87cexxxxxx-update_firmware/config: b'{"name": "Shelly Plus 1 Update Firmware", "cmd_t": "~rpc", "payload_press": "{\\"id\\":1,\\"src\\":\\"shellyplus1-7c87cexxxxxx\\",\\"method\\":\\"Shelly.Update\\",\\"params\\":{\\"stage\\":\\"stable\\"}}", "en": "true", "uniq_id": "shellyplus1-7c87cexxxxxx-update_firmware", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "dev_cla": "update", "entity_category": "config"}'
2022-10-16 11:43:10.341 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/button/shellyplus1-7c87cexxxxxx-restart/config: b'{"name": "Shelly Plus 1 Restart", "cmd_t": "~rpc", "payload_press": "{\\"id\\":1,\\"src\\":\\"shellyplus1-7c87cexxxxxx\\",\\"method\\":\\"Shelly.Reboot\\"}", "en": "true", "uniq_id": "shellyplus1-7c87cexxxxxx-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "dev_cla": "restart", "entity_category": "config"}'
2022-10-16 11:43:10.351 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Restart', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_press': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Shelly.Reboot"}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-restart', 'qos': 0, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'device_class': 'restart', 'entity_category': 'config', 'platform': 'mqtt'}
2022-10-16 11:43:10.351 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: button shellyplus1-7c87cexxxxxx-restart, sending update
2022-10-16 11:43:10.352 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Update Firmware', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_press': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Shelly.Update","params":{"stage":"stable"}}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-update_firmware', 'qos': 0, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'device_class': 'update', 'entity_category': 'config', 'platform': 'mqtt'}
2022-10-16 11:43:10.352 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: button shellyplus1-7c87cexxxxxx-update_firmware, sending update
2022-10-16 11:43:10.353 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: button shellyplus1-7c87cexxxxxx-restart, queuing update
2022-10-16 11:43:10.366 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('button', 'shellyplus1-7c87cexxxxxx-restart') '{'name': 'Shelly Plus 1 Restart', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_press': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Shelly.Reboot"}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-restart', 'qos': 0, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'device_class': 'restart', 'entity_category': 'config', 'platform': 'mqtt'}'
2022-10-16 11:43:10.367 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('button', 'shellyplus1-7c87cexxxxxx-update_firmware') '{'name': 'Shelly Plus 1 Update Firmware', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_press': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Shelly.Update","params":{"stage":"stable"}}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-update_firmware', 'qos': 0, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'device_class': 'update', 'entity_category': 'config', 'platform': 'mqtt'}'
2022-10-16 11:43:10.380 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('button', 'shellyplus1-7c87cexxxxxx-restart'): deque([{'name': 'Shelly Plus 1 Restart', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_press': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Shelly.Reboot"}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-restart', 'qos': 0, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'device_class': 'restart', 'entity_category': 'config', 'platform': 'mqtt'}])
2022-10-16 11:43:10.380 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Restart', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_press': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Shelly.Reboot"}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-restart', 'qos': 0, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'device_class': 'restart', 'entity_category': 'config', 'platform': 'mqtt'}
2022-10-16 11:43:10.381 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: button shellyplus1-7c87cexxxxxx-restart, sending update
2022-10-16 11:43:10.381 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('button', 'shellyplus1-7c87cexxxxxx-update_firmware'): deque([])
2022-10-16 11:43:10.384 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-last_restart/config: '{"name": "Shelly Plus 1 Last Restart", "val_tpl": "{{(as_timestamp(now())-value_json.result.sys.uptime)|timestamp_local}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-last_restart", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "dev_cla": "timestamp", "entity_category": "diagnostic"}', mid: 979
2022-10-16 11:43:10.385 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-last_restart/config: b'{"name": "Shelly Plus 1 Last Restart", "val_tpl": "{{(as_timestamp(now())-value_json.result.sys.uptime)|timestamp_local}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-last_restart", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "dev_cla": "timestamp", "entity_category": "diagnostic"}'
2022-10-16 11:43:10.404 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('button', 'shellyplus1-7c87cexxxxxx-restart') '{'name': 'Shelly Plus 1 Restart', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_press': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Shelly.Reboot"}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-restart', 'qos': 0, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'device_class': 'restart', 'entity_category': 'config', 'platform': 'mqtt'}'
2022-10-16 11:43:10.407 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Last Restart', 'value_template': '{{(as_timestamp(now())-value_json.result.sys.uptime)|timestamp_local}}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-last_restart', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'device_class': 'timestamp', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:43:10.436 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: sensor shellyplus1-7c87cexxxxxx-last_restart
2022-10-16 11:43:10.436 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('button', 'shellyplus1-7c87cexxxxxx-restart'): deque([])
2022-10-16 11:43:10.436 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/button/shellyplus1-7c87cexxxxxx-update_firmware/config: b'{"name": "Shelly Plus 1 Update Firmware", "cmd_t": "~rpc", "payload_press": "{\\"id\\":1,\\"src\\":\\"shellyplus1-7c87cexxxxxx\\",\\"method\\":\\"Shelly.Update\\",\\"params\\":{\\"stage\\":\\"stable\\"}}", "en": "true", "uniq_id": "shellyplus1-7c87cexxxxxx-update_firmware", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "dev_cla": "update", "entity_category": "config"}'
2022-10-16 11:43:10.437 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-last_restart/config: b'{"name": "Shelly Plus 1 Last Restart", "val_tpl": "{{(as_timestamp(now())-value_json.result.sys.uptime)|timestamp_local}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-last_restart", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "dev_cla": "timestamp", "entity_category": "diagnostic"}'
2022-10-16 11:43:10.508 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Update Firmware', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_press': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Shelly.Update","params":{"stage":"stable"}}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-update_firmware', 'qos': 0, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'device_class': 'update', 'entity_category': 'config', 'platform': 'mqtt'}
2022-10-16 11:43:10.509 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: button shellyplus1-7c87cexxxxxx-update_firmware, sending update
2022-10-16 11:43:10.509 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: sensor shellyplus1-7c87cexxxxxx-last_restart, queuing update
2022-10-16 11:43:10.509 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-ssid/config: '{"name": "Shelly Plus 1 SSID", "val_tpl": "{{value_json.result.wifi.ssid}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-ssid", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "icon": "mdi:wifi-settings", "entity_category": "diagnostic"}', mid: 980
2022-10-16 11:43:10.526 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-ssid/config: b'{"name": "Shelly Plus 1 SSID", "val_tpl": "{{value_json.result.wifi.ssid}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-ssid", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "icon": "mdi:wifi-settings", "entity_category": "diagnostic"}'
2022-10-16 11:43:10.527 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('button', 'shellyplus1-7c87cexxxxxx-update_firmware') '{'name': 'Shelly Plus 1 Update Firmware', 'command_topic': 'shellyplus1-7c87cexxxxxx/rpc', 'payload_press': '{"id":1,"src":"shellyplus1-7c87cexxxxxx","method":"Shelly.Update","params":{"stage":"stable"}}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-update_firmware', 'qos': 0, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'device_class': 'update', 'entity_category': 'config', 'platform': 'mqtt'}'
2022-10-16 11:43:10.527 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-ssid/config: b'{"name": "Shelly Plus 1 SSID", "val_tpl": "{{value_json.result.wifi.ssid}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-ssid", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "icon": "mdi:wifi-settings", "entity_category": "diagnostic"}'
2022-10-16 11:43:10.532 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 SSID', 'value_template': '{{value_json.result.wifi.ssid}}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-ssid', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'icon': 'mdi:wifi-settings', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:43:10.533 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: sensor shellyplus1-7c87cexxxxxx-ssid
2022-10-16 11:43:10.548 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('button', 'shellyplus1-7c87cexxxxxx-update_firmware'): deque([])
2022-10-16 11:43:10.549 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: sensor shellyplus1-7c87cexxxxxx-ssid, queuing update
2022-10-16 11:43:10.575 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('sensor', 'shellyplus1-7c87cexxxxxx-last_restart'): deque([{'name': 'Shelly Plus 1 Last Restart', 'value_template': '{{(as_timestamp(now())-value_json.result.sys.uptime)|timestamp_local}}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-last_restart', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'device_class': 'timestamp', 'entity_category': 'diagnostic', 'platform': 'mqtt'}])
2022-10-16 11:43:10.575 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Last Restart', 'value_template': '{{(as_timestamp(now())-value_json.result.sys.uptime)|timestamp_local}}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-last_restart', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'device_class': 'timestamp', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:43:10.577 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: sensor shellyplus1-7c87cexxxxxx-last_restart
2022-10-16 11:43:10.589 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-wifi_ip/config: '{"name": "Shelly Plus 1 WiFi IP", "val_tpl": "{{value_json.result.wifi.sta_ip}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-wifi_ip", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "icon": "mdi:ip-outline", "entity_category": "diagnostic"}', mid: 981
2022-10-16 11:43:10.589 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-wifi_ip/config: b'{"name": "Shelly Plus 1 WiFi IP", "val_tpl": "{{value_json.result.wifi.sta_ip}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-wifi_ip", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "icon": "mdi:ip-outline", "entity_category": "diagnostic"}'
2022-10-16 11:43:10.599 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 WiFi IP', 'value_template': '{{value_json.result.wifi.sta_ip}}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-wifi_ip', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'icon': 'mdi:ip-outline', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:43:10.602 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: sensor shellyplus1-7c87cexxxxxx-wifi_ip
2022-10-16 11:43:10.602 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-wifi_ip/config: b'{"name": "Shelly Plus 1 WiFi IP", "val_tpl": "{{value_json.result.wifi.sta_ip}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-wifi_ip", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "icon": "mdi:ip-outline", "entity_category": "diagnostic"}'
2022-10-16 11:43:10.614 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('sensor', 'shellyplus1-7c87cexxxxxx-ssid'): deque([{'name': 'Shelly Plus 1 SSID', 'value_template': '{{value_json.result.wifi.ssid}}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-ssid', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'icon': 'mdi:wifi-settings', 'entity_category': 'diagnostic', 'platform': 'mqtt'}])
2022-10-16 11:43:10.614 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 SSID', 'value_template': '{{value_json.result.wifi.ssid}}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-ssid', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'icon': 'mdi:wifi-settings', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:43:10.614 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: sensor shellyplus1-7c87cexxxxxx-ssid
2022-10-16 11:43:10.633 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: sensor shellyplus1-7c87cexxxxxx-wifi_ip, queuing update
2022-10-16 11:43:10.645 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('sensor', 'shellyplus1-7c87cexxxxxx-last_restart'): deque([])
2022-10-16 11:43:10.645 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-wifi_signal/config: '{"name": "Shelly Plus 1 WiFi Signal", "val_tpl": "{{value_json.result.wifi.rssi}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-wifi_signal", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "unit_of_meas": "dBm", "dev_cla": "signal_strength", "entity_category": "diagnostic", "stat_cla": "measurement"}', mid: 982
2022-10-16 11:43:10.646 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-wifi_signal/config: b'{"name": "Shelly Plus 1 WiFi Signal", "val_tpl": "{{value_json.result.wifi.rssi}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-wifi_signal", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "unit_of_meas": "dBm", "dev_cla": "signal_strength", "entity_category": "diagnostic", "stat_cla": "measurement"}'
2022-10-16 11:43:10.664 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 WiFi Signal', 'value_template': '{{value_json.result.wifi.rssi}}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-wifi_signal', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'unit_of_measurement': 'dBm', 'device_class': 'signal_strength', 'entity_category': 'diagnostic', 'state_class': 'measurement', 'platform': 'mqtt'}
2022-10-16 11:43:10.664 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: sensor shellyplus1-7c87cexxxxxx-wifi_signal
2022-10-16 11:43:10.676 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('sensor', 'shellyplus1-7c87cexxxxxx-wifi_ip'): deque([{'name': 'Shelly Plus 1 WiFi IP', 'value_template': '{{value_json.result.wifi.sta_ip}}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-wifi_ip', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'icon': 'mdi:ip-outline', 'entity_category': 'diagnostic', 'platform': 'mqtt'}])
2022-10-16 11:43:10.676 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 WiFi IP', 'value_template': '{{value_json.result.wifi.sta_ip}}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-wifi_ip', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'icon': 'mdi:ip-outline', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:43:10.677 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: sensor shellyplus1-7c87cexxxxxx-wifi_ip
2022-10-16 11:43:10.677 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/sensor/shellyplus1-7c87cexxxxxx-wifi_signal/config: b'{"name": "Shelly Plus 1 WiFi Signal", "val_tpl": "{{value_json.result.wifi.rssi}}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-wifi_signal", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "unit_of_meas": "dBm", "dev_cla": "signal_strength", "entity_category": "diagnostic", "stat_cla": "measurement"}'
2022-10-16 11:43:10.694 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('sensor', 'shellyplus1-7c87cexxxxxx-ssid'): deque([])
2022-10-16 11:43:10.696 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: sensor shellyplus1-7c87cexxxxxx-wifi_signal, queuing update
2022-10-16 11:43:10.697 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-cloud/config: '{"name": "Shelly Plus 1 Cloud", "val_tpl": "{%if value_json.result.cloud.connected%}ON{%else%}OFF{%endif%}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-cloud", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "dev_cla": "connectivity", "entity_category": "diagnostic"}', mid: 983
2022-10-16 11:43:10.697 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-cloud/config: b'{"name": "Shelly Plus 1 Cloud", "val_tpl": "{%if value_json.result.cloud.connected%}ON{%else%}OFF{%endif%}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-cloud", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "dev_cla": "connectivity", "entity_category": "diagnostic"}'
2022-10-16 11:43:10.717 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Cloud', 'value_template': '{%if value_json.result.cloud.connected%}ON{%else%}OFF{%endif%}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-cloud', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'device_class': 'connectivity', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:43:10.718 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: binary_sensor shellyplus1-7c87cexxxxxx-cloud
2022-10-16 11:43:10.735 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('sensor', 'shellyplus1-7c87cexxxxxx-wifi_signal'): deque([{'name': 'Shelly Plus 1 WiFi Signal', 'value_template': '{{value_json.result.wifi.rssi}}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-wifi_signal', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'unit_of_measurement': 'dBm', 'device_class': 'signal_strength', 'entity_category': 'diagnostic', 'state_class': 'measurement', 'platform': 'mqtt'}])
2022-10-16 11:43:10.735 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 WiFi Signal', 'value_template': '{{value_json.result.wifi.rssi}}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-wifi_signal', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'unit_of_measurement': 'dBm', 'device_class': 'signal_strength', 'entity_category': 'diagnostic', 'state_class': 'measurement', 'platform': 'mqtt'}
2022-10-16 11:43:10.735 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: sensor shellyplus1-7c87cexxxxxx-wifi_signal
2022-10-16 11:43:10.748 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-cloud/config: b'{"name": "Shelly Plus 1 Cloud", "val_tpl": "{%if value_json.result.cloud.connected%}ON{%else%}OFF{%endif%}", "en": "false", "uniq_id": "shellyplus1-7c87cexxxxxx-cloud", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "dev_cla": "connectivity", "entity_category": "diagnostic"}'
2022-10-16 11:43:10.751 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('sensor', 'shellyplus1-7c87cexxxxxx-wifi_ip'): deque([])
2022-10-16 11:43:10.755 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: binary_sensor shellyplus1-7c87cexxxxxx-cloud, queuing update
2022-10-16 11:43:10.768 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting retained message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-firmware/config: '{"name": "Shelly Plus 1 Firmware", "val_tpl": "{%if value_json.result.sys.available_updates.stable is defined%}ON{%else%}OFF{%endif%}", "en": "true", "uniq_id": "shellyplus1-7c87cexxxxxx-firmware", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "json_attributes_topic": "~status/rpc", "json_attributes_template": "{{value_json.result.sys.available_updates.get(\"stable\",{})|to_json}}", "dev_cla": "update", "entity_category": "diagnostic"}', mid: 984
2022-10-16 11:43:10.769 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-firmware/config: b'{"name": "Shelly Plus 1 Firmware", "val_tpl": "{%if value_json.result.sys.available_updates.stable is defined%}ON{%else%}OFF{%endif%}", "en": "true", "uniq_id": "shellyplus1-7c87cexxxxxx-firmware", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "json_attributes_topic": "~status/rpc", "json_attributes_template": "{{value_json.result.sys.available_updates.get(\\"stable\\",{})|to_json}}", "dev_cla": "update", "entity_category": "diagnostic"}'
2022-10-16 11:43:10.776 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Firmware', 'value_template': '{%if value_json.result.sys.available_updates.stable is defined%}ON{%else%}OFF{%endif%}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-firmware', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'json_attributes_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'json_attributes_template': '{{value_json.result.sys.available_updates.get("stable",{})|to_json}}', 'device_class': 'update', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:43:10.776 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: binary_sensor shellyplus1-7c87cexxxxxx-firmware, sending update
2022-10-16 11:43:10.786 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('binary_sensor', 'shellyplus1-7c87cexxxxxx-cloud'): deque([{'name': 'Shelly Plus 1 Cloud', 'value_template': '{%if value_json.result.cloud.connected%}ON{%else%}OFF{%endif%}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-cloud', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'device_class': 'connectivity', 'entity_category': 'diagnostic', 'platform': 'mqtt'}])
2022-10-16 11:43:10.786 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Cloud', 'value_template': '{%if value_json.result.cloud.connected%}ON{%else%}OFF{%endif%}', 'enabled_by_default': 'false', 'unique_id': 'shellyplus1-7c87cexxxxxx-cloud', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'device_class': 'connectivity', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:43:10.786 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: binary_sensor shellyplus1-7c87cexxxxxx-cloud
2022-10-16 11:43:10.786 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/binary_sensor/shellyplus1-7c87cexxxxxx-firmware/config: b'{"name": "Shelly Plus 1 Firmware", "val_tpl": "{%if value_json.result.sys.available_updates.stable is defined%}ON{%else%}OFF{%endif%}", "en": "true", "uniq_id": "shellyplus1-7c87cexxxxxx-firmware", "qos": 0, "dev": {"cns": [["mac", "7C:87:CE:XX:XX:XX"]], "name": "Shelly Plus 1", "mdl": "Shelly Plus 1", "sw": "20221014-103904/0.11.3-g0753507", "hw": "gen2 (SNSW-001X16EU)", "mf": "Allterco Robotics", "cu": "http://shellyplus1-7c87cexxxxxx.local/"}, "~": "shellyplus1-7c87cexxxxxx/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~status/rpc", "val_tpl": "{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}"}], "stat_t": "~status/rpc", "json_attributes_topic": "~status/rpc", "json_attributes_template": "{{value_json.result.sys.available_updates.get(\\"stable\\",{})|to_json}}", "dev_cla": "update", "entity_category": "diagnostic"}'
2022-10-16 11:43:10.787 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('binary_sensor', 'shellyplus1-7c87cexxxxxx-firmware') '{'name': 'Shelly Plus 1 Firmware', 'value_template': '{%if value_json.result.sys.available_updates.stable is defined%}ON{%else%}OFF{%endif%}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-firmware', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'json_attributes_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'json_attributes_template': '{{value_json.result.sys.available_updates.get("stable",{})|to_json}}', 'device_class': 'update', 'entity_category': 'diagnostic', 'platform': 'mqtt'}'
2022-10-16 11:43:10.796 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('sensor', 'shellyplus1-7c87cexxxxxx-wifi_signal'): deque([])
2022-10-16 11:43:10.797 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: binary_sensor shellyplus1-7c87cexxxxxx-firmware, queuing update
2022-10-16 11:43:10.798 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('binary_sensor', 'shellyplus1-7c87cexxxxxx-firmware'): deque([{'name': 'Shelly Plus 1 Firmware', 'value_template': '{%if value_json.result.sys.available_updates.stable is defined%}ON{%else%}OFF{%endif%}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-firmware', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'json_attributes_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'json_attributes_template': '{{value_json.result.sys.available_updates.get("stable",{})|to_json}}', 'device_class': 'update', 'entity_category': 'diagnostic', 'platform': 'mqtt'}])
2022-10-16 11:43:10.798 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'Shelly Plus 1 Firmware', 'value_template': '{%if value_json.result.sys.available_updates.stable is defined%}ON{%else%}OFF{%endif%}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-firmware', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'json_attributes_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'json_attributes_template': '{{value_json.result.sys.available_updates.get("stable",{})|to_json}}', 'device_class': 'update', 'entity_category': 'diagnostic', 'platform': 'mqtt'}
2022-10-16 11:43:10.798 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: binary_sensor shellyplus1-7c87cexxxxxx-firmware, sending update
2022-10-16 11:43:10.807 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('binary_sensor', 'shellyplus1-7c87cexxxxxx-firmware') '{'name': 'Shelly Plus 1 Firmware', 'value_template': '{%if value_json.result.sys.available_updates.stable is defined%}ON{%else%}OFF{%endif%}', 'enabled_by_default': 'true', 'unique_id': 'shellyplus1-7c87cexxxxxx-firmware', 'qos': 0, 'device': {'connections': [['mac', '7C:87:CE:XX:XX:XX']], 'name': 'Shelly Plus 1', 'model': 'Shelly Plus 1', 'sw_version': '20221014-103904/0.11.3-g0753507', 'hw_version': 'gen2 (SNSW-001X16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1-7c87cexxxxxx.local/'}, 'availability': [{'topic': 'shellyplus1-7c87cexxxxxx/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'value_template': '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'}], 'state_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'json_attributes_topic': 'shellyplus1-7c87cexxxxxx/status/rpc', 'json_attributes_template': '{{value_json.result.sys.available_updates.get("stable",{})|to_json}}', 'device_class': 'update', 'entity_category': 'diagnostic', 'platform': 'mqtt'}'
2022-10-16 11:43:10.813 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('binary_sensor', 'shellyplus1-7c87cexxxxxx-firmware'): deque([])
2022-10-16 11:43:10.815 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('binary_sensor', 'shellyplus1-7c87cexxxxxx-cloud'): deque([])
bieniu commented 1 year ago

The script does not update entities, the device does. Have you restarted HA after configuration?

vquie commented 1 year ago

Yes, I did. As you can see there are the correct values from the device in the logs. The device is updating something at least.

This is the log line.

2022-10-16 11:43:09.961 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on shellies_discovery/rpc: b'{"id":1,"src":"shellyplus1-7c87cexxxxxx","dst":"shellies_discovery","result":{"ble":{"enable":false},"cloud":{"enable":true,"server":"shelly-49-eu.shelly.cloud:6022/jrpc"},"input:0":{"id":0, "name":null, "type":"button", "invert":false,"factory_reset":true},"mqtt":{"enable":true,"server":"hivemq-uuid.s1.eu.hivemq.cloud:8883","client_id":"shellyplus1-7c87cexxxxxx","user":"hivemq-user","ssl_ca":"ca.pem","topic_prefix":"shellyplus1-7c87cexxxxxx","rpc_ntf":true,"status_ntf":false},"script:1":{"id":1, "name":"send_device_status.js", "enable":true},"switch:0":{"id":0, "name":null,"in_mode":"detached","initial_state":"off", "auto_on":false, "auto_on_delay":60.00, "auto_off":true, "auto_off_delay": 2.00},"sys":{"device":{"name":null,"mac":"7c87cexxxxxx","fw_id":"20221014-103904/0.11.3-g0753507","discoverable":true,"eco_mode":false},"location":{"tz":"Europe/Berlin","lat":52.464720,"lon":13.395710},"debug":{"mqtt":{"enable":false},"websocket":{"enable":false},"udp":{"addr":null}},"ui_data":{},"rpc_udp":{"dst_addr":null,"listen_port":null},"sntp":{"server":"time.google.com"},"cfg_rev":32},"wifi":{"ap":{"ssid":"ShellyPlus1-7c87cexxxxxx","is_open":true, "enable":true, "range_extender": {"enable":false}},"sta":{"ssid":"WIFI-SSID","is_open":false, "enable":true, "ipv4mode":"dhcp","ip":null,"netmask":null,"gw":null,"nameserver":null},"sta1":{"ssid":null,"is_open":true, "enable":false, "ipv4mode":"dhcp","ip":null,"netmask":null,"gw":null,"nameserver":null},"roam":{"rssi_thr":-80,"interval":60}},"ws":{"enable":false,"server":null,"ssl_ca":"ca.pem"}}}'
bieniu commented 1 year ago

This is not an update from the device, it is a response to an announce request.

I still don't understand what the problem is. Are entities unavailable? Or they are available but their states are not updated?

bieniu commented 1 year ago

I don’t see any data transmitted to topic shellyplus1-7c87cexxxxxx in the log.

vquie commented 1 year ago

I don't understand the problem neither. That's why I created this issue in the first place. :-D

What else can I provide you with?

The device is off-site, but still just down the road. Are there any debugging logs I can get from the device itself?

This is what it looks like in HASS. IMG_C2422FDB29D1-1

bieniu commented 1 year ago

The entities are unavailable, this should be the first information in your issue. This means that HA doesn’t receive informations from the device. Use MQTT-Explorer or mosquito binary to check if the device sends data to the MQTT broker.

bieniu commented 1 year ago

Are there any debugging logs I can get from the device itself?

https://shelly-api-docs.shelly.cloud/gen2/General/DebugLogs

vquie commented 1 year ago

Found the culprit. The script wasn't saved in the shelly device. I installed it via the URL now and everything works as expected. Thank you.

Issue closed.