bieniu / ha-shellies-discovery-gen2

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

Shelly Plus 1 fields detected but not updated #93

Closed inch1957 closed 1 year ago

inch1957 commented 2 years ago

Describe the bug

Expected behavior

Versions:

Shellies Discovery GEN2 automation:

- id: shellies_announce_gen2
  alias: "Shellies Announce Gen2"
  trigger:
    - platform: homeassistant
      event: start
    - platform: time_pattern
      hours: "/1"  # Modifying this if you are using Shelly Motion can drain your device's battery quickly.
  variables:
    device_info_payload:  "{{ {'id': 1, 'src':'shellies_discovery', 'method':'Shelly.GetConfig'} | to_json }}"
    device_ids:  # enter the list of device IDs here - respect lower-case characters
      - shellyplus1-441793a8c4e4
  action:
    - repeat:
        for_each: "{{ device_ids }}"
        sequence:
          - service: mqtt.publish
            data:
              topic: "{{ repeat.item }}/rpc"
              payload: "{{ device_info_payload }}"

- id: shellies_discovery_gen2
  alias: "Shellies Discovery Gen2"
  mode: queued
  max: 999
  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 }}"

Debug log:

inch1957 commented 2 years ago

Hello, I removed everything and re-installed, including the script that needs to be downloaded to the device. I think something was missing there and this might have caused the issue. After restarting and some patience now I see everything. Sorry for bothering you, and once again thanks for your contributions! inch1957

bieniu commented 2 years ago

Have you changed device_id (MQTT prefix)?

inch1957 commented 2 years ago

No, I for now have left everything as per default. I would like to set a prefix as this helps me in selections/overviews, but it was more important to get it working. Will experiment with the prefixes with my next device... :-) Charles

On Thu, 18 Aug 2022 at 16:21, Maciej Bieniek @.***> wrote:

Have you changed device_id (MQTT prefix)?

— Reply to this email directly, view it on GitHub https://github.com/bieniu/ha-shellies-discovery-gen2/issues/93#issuecomment-1219555228, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARYATHCOPZRBVWFKUPJV74LVZZBHJANCNFSM5646Y7VA . You are receiving this because you authored the thread.Message ID: @.***>

bieniu commented 2 years ago

Please post here debug log captured after HA start.

inch1957 commented 2 years ago

Shellyplus1-log.txt

bieniu commented 2 years ago

The script works fine. The problem is related to the device or to your configuration. Please add homeassistant.components.mqtt: debug to logger configuration, restart HA, wait 10 minutes and save the log.

vquie commented 2 years ago

I have the same issue. Device is discovered, fields are created but not populated. The only difference is, that I am running the shelly off-site and connected to HASS via HiveMQ Cloud. The script is installed on the device though

I find all the missing informations in the logs. It looks like they get lost between the discovery automation and the actual HASS device.

Logs:

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 2 years ago

@vquiering Please open a new issue and fill up the issue form.

zylxpl commented 1 year ago

I had same issue yesterday with new shelly. Upgrading the firmware solved it, however script did not install itself automatically.

bieniu commented 1 year ago

@vquiering Everything looks good in the log, the script did its job correctly.

inch1957 commented 1 year ago

So we have problems but the script is ... "perfect"...? Hmmmmm... obviously perfection is not living here...yet. Thanks for your continuous contributions!

bieniu commented 1 year ago

@inch1957 Maybe if you attach a debug log I can tell you more. Help me help you instead of complaining.

inch1957 commented 1 year ago

Nobody is complaining, on the contrary you have many followers who enjoy your work and efforts! Only that most of us are not tech gurus like you are, and what we’re trying to say is that somewhere something is not working as it should. What is difficult for “us” is when you get back stating the script is fine so the error is elsewhere. Making us feel ridiculous doesn’t help any kind of progress. So of course there’s need to gather more info/logs/traces/dumps/… for a proper PSI, but again for non-techies this is not always that simple.

Thank you for your efforts, they are very appreciated I assure you!!!

On Thu, 24 Nov 2022 at 22:43, Maciej Bieniek @.***> wrote:

Maybe if you open a proper issue with a debug log I can tell you more. Help me help you instead of complaining.

— Reply to this email directly, view it on GitHub https://github.com/bieniu/ha-shellies-discovery-gen2/issues/93#issuecomment-1326852941, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARYATHCZWBH2MZLCIOP75XDWJ7OP3ANCNFSM5646Y7VA . You are receiving this because you authored the thread.Message ID: @.***>

bieniu commented 1 year ago

@inch1957 I realize that a lot of users are not technically advanced and I try to help as much as I can. But... I require a detailed description of the problem and providing relevant information that will help me to diagnose it. I'm not and will not be a master at guessing and frankly I don't like wasting my time guessing. I prefer to spend this time with my family or developing other hobby projects.

Coming back to your problem, this is its description: obraz Yes, some chaotic information is in the comments, but you did not fulfill my request for a debug log. So how am I supposed to help you if you're preventing me from doing it? I don't know your configuration, I don't know your network, your devices... and I see in the log that my script works fine. What more can I do in this situation? Imagine asking a mechanic to fix your car over the phone and not giving him/her any information about the car other than saying "it doesn't work". Will the mechanic be interested in continuing the conversation and guessing what's wrong with your car?

darklem commented 1 year ago

Hi @bieniu ,

First of all, thank you for your work on shelly and mqtt. I am trying to use the script with a shelly plus1. It seems to be discovered and nothing more. My versions are :

And my log :

2022-11-26 12:06:12.529 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received retained message on homeassistant/switch/shelly1/config: b'{"name": "shelly1", "device_class": "switch", "command_topic": "homeassistant/switch/shelly1/set", "state_topic": "homeassistant/switch/shelly1/state"}'
2022-11-26 12:06:12.530 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received retained message on homeassistant/switch/shelly/config: b'{"name": "shelly", "device_class": "switch", "command_topic": "homeassistant/switch/shelly/set", "state_topic": "homeassistant/switch/shelly1/state"}'
2022-11-26 12:06:12.541 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'shelly1', 'device_class': 'switch', 'command_topic': 'homeassistant/switch/shelly1/set', 'state_topic': 'homeassistant/switch/shelly1/state', 'platform': 'mqtt'}
2022-11-26 12:06:12.541 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: switch shelly1
2022-11-26 12:06:12.542 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'shelly', 'device_class': 'switch', 'command_topic': 'homeassistant/switch/shelly/set', 'state_topic': 'homeassistant/switch/shelly1/state', 'platform': 'mqtt'}
2022-11-26 12:06:12.542 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: switch shelly
2022-11-26 12:06:13.031 DEBUG (SyncWorker_2) [homeassistant.components.mqtt.client] Subscribing to homeassistant/switch/shelly1/state, mid: 3
2022-11-26 12:06:13.810 DEBUG (SyncWorker_4) [homeassistant.components.mqtt.client] Subscribing to homeassistant/switch/shelly1/state, mid: 4
2022-11-26 12:06:15.824 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('switch', 'shelly1'): deque([])
2022-11-26 12:06:15.940 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Pending discovery for ('switch', 'shelly'): deque([])
2022-11-26 12:06:31.150 DEBUG (MainThread) [homeassistant.components.mqtt.trigger] Attaching MQTT trigger for topic: 'shellies_discovery/rpc', payload: 'None'
2022-11-26 12:06:31.205 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Running automation actions
2022-11-26 12:06:31.207 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeating sequence: Iteration 1 of 1 with item: 'shelly1'
2022-11-26 12:06:31.207 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Initialized trigger Shellies Announce Gen2
2022-11-26 12:06:31.242 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeat at step 1: Running automation actions
2022-11-26 12:06:31.243 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeat at step 1: Executing step call service
2022-11-26 12:06:32.259 DEBUG (SyncWorker_0) [homeassistant.components.mqtt.client] Subscribing to shellies_discovery/rpc, mid: 176
2022-11-26 12:06:32.282 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting message on shelly1/rpc: '{"id": 1, "src": "shellies_discovery", "method": "Shelly.GetConfig"}', mid: 177
2022-11-26 12:06:32.287 INFO (MainThread) [homeassistant.components.automation.shellies_discovery_gen2] Initialized trigger Shellies Discovery Gen2
2022-11-26 12:09:14.828 DEBUG (SyncWorker_6) [homeassistant.components.mqtt.client] Unsubscribing from homeassistant/switch/shelly1/state, mid: 343
2022-11-26 12:09:14.833 DEBUG (SyncWorker_0) [homeassistant.components.mqtt.client] Unsubscribing from homeassistant/switch/shelly1/state, mid: 344
2022-11-26 12:09:15.031 DEBUG (SyncWorker_7) [homeassistant.components.mqtt.client] Subscribing to shellies_discovery/rpc, mid: 1
2022-11-26 12:09:15.054 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received retained message on homeassistant/switch/shelly1/config: b'{"name": "shelly1", "device_class": "switch", "command_topic": "homeassistant/switch/shelly1/set", "state_topic": "homeassistant/switch/shelly1/state"}'
2022-11-26 12:09:15.056 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received retained message on homeassistant/switch/shelly/config: b'{"name": "shelly", "device_class": "switch", "command_topic": "homeassistant/switch/shelly/set", "state_topic": "homeassistant/switch/shelly1/state"}'
2022-11-26 12:09:15.058 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'shelly1', 'device_class': 'switch', 'command_topic': 'homeassistant/switch/shelly1/set', 'state_topic': 'homeassistant/switch/shelly1/state', 'platform': 'mqtt'}
2022-11-26 12:09:15.059 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: switch shelly1
2022-11-26 12:09:15.059 DEBUG (MainThread) [homeassistant.components.mqtt.discovery] Process discovery payload {'name': 'shelly', 'device_class': 'switch', 'command_topic': 'homeassistant/switch/shelly/set', 'state_topic': 'homeassistant/switch/shelly1/state', 'platform': 'mqtt'}
2022-11-26 12:09:15.060 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: switch shelly

Thanks a lot for your time ! Regards N

bieniu commented 1 year ago

@darklem If you are using current script version (2.3.0), it requires HA 2022.11.0 and you are using 2022.8.3.

darklem commented 1 year ago

@bieniu sorry stupid me.. I have 2 HA. The one I use for that is 2022.11.4..

bieniu commented 1 year ago

It seems to be discovered and nothing more

What does it mean? Have the device been created in integrations? Have entities been created? Do entities have an unavailable state? Did you restart HA after configuration? What does your announce automation look like? Can you see the information sent from the device on the MQTT broker (you can use MQTT-Explorer to check this)?

A few questions to start with 😉

darklem commented 1 year ago

Have the device been created in integrations?

Have entities been created?

Do entities have an unavailable state?

Did you restart HA after configuration?

What does your announce automation look like?

- id: shellies_announce_gen2
  alias: Shellies Announce Gen2
  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:
      - shelly1
- id: shellies_discovery_gen2
  alias: Shellies Discovery Gen2
  mode: queued
  max: 999
  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 }}"

Can you see the information sent from the device on the MQTT broker (you can use MQTT-Explorer to check this)?

Thank you !

bieniu commented 1 year ago

Are you sure this ID is correct? image

  • no information from shelly device

Have you configured MQTT on the device web panel?

darklem commented 1 year ago

Are you sure this ID is correct?

image

  • no information from shelly device

Have you configured MQTT on the device web panel?

Yes sure ..

bieniu commented 1 year ago

@darklem Please show me the screen with MQTT configuration on web panel of the device.

darklem commented 1 year ago

Untitled

bieniu commented 1 year ago

This is totally wrong! MQTT prefix should contain device_id. And client_id and device_id should be unique.

darklem commented 1 year ago

This is totally wrong! MQTT prefix should contain device_id. And client_id and device_id should be unique.

Oh.... ha .. sorry for the bug.. I changed it and it works well know.

What is the actual role of client_id?

Thanks a lot for your help N

bieniu commented 1 year ago

client_id is an ID on MQTT broker. Two clients can’t use the same client_id, this is why it should be unique.

darklem commented 1 year ago

client_id is an ID on MQTT broker. Two clients can’t use the same client_id, this is why it should be unique.

I see. It's still unclear to me the difference between device_id and client_id

bieniu commented 1 year ago

https://www.cloudmqtt.com/blog/mqtt-what-is-client-id.html device_id is an ID used in HA to generate device and entities unique_id.

gombihu commented 1 year ago

Hi, I need some help here if I'm doing something wrong with this integration or the device is wrong?

  1. running on HA raPi 3 ,Home Assistant 2022.11.3, Supervisor 2022.11.2, Operating System 8.2
  2. downloaded the latest shellies_discovery_gen2.py
  3. I set up the default announce and discovery gen2 automation.
  4. initiate the automation which triggers the discovery task with the python script
  5. error logged

disco payload:

payload: >-
    {"id":1,"src":"shellyplusht-c049ef8b9040","dst":"shellies_discovery","result":{"ble":{"enable":false,"rpc":{"enable":true}},"cloud":{"enable":false,"server":"iot.shelly.cloud:6012/jrpc"},"devicepower:0":{},"ht_ui":{"temperature_unit":"C"},"humidity:0":{"id":0,
    "name":null, "report_thr":2,
    "offset":0},"mqtt":{"enable":true,"server":"10.0.0.111:1883","client_id":"ShellyPlusHT1","user":"mqttuser","topic_prefix":"shellyplusht-c049ef8b9040","rpc_ntf":true,"status_ntf":false,"use_client_cert":false},"sys":{"device":{"name":null,"mac":"C049EF8B9040","fw_id":"20221124-125713/0.12.0-beta3-gf651078","discoverable":true},"location":{"tz":"Europe/Budapest","lat":47.525580,"lon":19.064130},"debug":{"mqtt":{"enable":true},"websocket":{"enable":false},"udp":{"addr":null}},"ui_data":{},"rpc_udp":{"dst_addr":null,"listen_port":null},"sntp":{"server":"time.google.com"},"sleep":{"wakeup_period":43200},"cfg_rev":25},"temperature:0":{"id":0,
    "name":null, "report_thr_C": 0.5, "offset_C":
    0.0},"wifi":{"ap":{"ssid":"ShellyPlusHT-C049EF8B9040","is_open":true,
    "enable":true},"sta":{"ssid":"netAP","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"}}}
   qos: 0
  description: mqtt topic shellies_discovery/rpc
  payload_json:
    id: 1
    src: shellyplusht-c049ef8b9040
    dst: shellies_discovery
    result:
      ble:
        enable: false
        rpc:
          enable: true
      cloud:
        enable: false
        server: iot.shelly.cloud:6012/jrpc
      devicepower:0: {}
      ht_ui:
        temperature_unit: C
      humidity:0:
        id: 0
        name: null
        report_thr: 2
        offset: 0
      mqtt:
        enable: true

error:

Logger: homeassistant.components.python_script.shellies_discovery_gen2.py
Source: components/python_script/__init__.py:224
Integration: Python Scripts (documentation, issues)
First occurred: 10:38:01 PM (6 occurrences)
Last logged: 10:47:53 PM

Error executing script: 'id'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/python_script/__init__.py", line 224, in execute
    exec(compiled.code, restricted_globals)
  File "shellies_discovery_gen2.py", line 1562, in <module>
  File "/usr/local/lib/python3.10/site-packages/RestrictedPython/Eval.py", line 35, in default_guarded_getitem
    return ob[index]
KeyError: 'id'

line 1562 is device_id = data[ATTR_ID] # noqa: F821 which is indeed defined as ATTR_ID = "id" https://github.com/zopefoundation/RestrictedPython/blob/master/src/RestrictedPython/Eval.py#L33

Not sure what is wrong. HA discovers the Shelly Plush HT, but every data is unknown. Could you please give some guidance? It felt relevant to post to this thread. Is it my python environment what is not sufficient somewhat?

bieniu commented 1 year ago

@babacs This issue is related to an unknown problem with Plus 1 and you are trying to configure Plus HT. Please open a new issue. BTW you can’t run discovery automation manually.

gombihu commented 1 year ago

@bieniu the automation triggered the discovery, I did not run it.

bieniu commented 1 year ago

No response.