bieniu / ha-shellies-discovery-gen2

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

KeyError: 'id' when running the script #292

Closed hros closed 11 months ago

hros commented 11 months ago

Describe the bug Added a Shelly 1PM plus, but it is not added automatically to the MQTT devices in home assistant. My previous Shelly devices are gen 1 devices and are recognized Perhaps I need to configure the MQTT parameters of the device differently, as the options are different then those of GEN1 devices. Still, it is visible in MQTT explorer

Expected behavior adding the Shelly to the MQTT devices of HA

Versions:

Shellies Discovery GEN2 automation:

- 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 }}"
  - service: mqtt.publish
    data:
      topic: "{{ trigger.payload_json.result.mqtt.topic_prefix }}/command"
      payload: "status_update"

Debug log:

Logger: homeassistant.components.python_script.shellies_discovery_gen2.py
Source: components/python_script/__init__.py:224
Integration: Python Scripts (documentation, issues)
First occurred: 5:58:56 PM (4 occurrences)
Last logged: 7:16:10 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)  # noqa: S102
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "shellies_discovery_gen2.py", line 2421, in <module>
  File "/usr/local/lib/python3.11/site-packages/RestrictedPython/Eval.py", line 28, in default_guarded_getitem
    return ob[index]
           ~~^^^^^^^
KeyError: 'id'
bieniu commented 11 months ago

You can’t run manually shellies_discovey_gen2 automation.

hros commented 11 months ago

How do I trigger the discovery? Are there any settings I need to specify for the MQTT options of the Shelly device?

bieniu commented 11 months ago

How do I trigger the discovery?

Announce automation triggers the discovery process.

Are there any settings I need to specify for the MQTT options of the Shelly device?

Please read the documentation.

hros commented 11 months ago

Thanks @bieniu I read the docs again. I missed one thing: "Generic status update over MQTT enabled," and it is now enabled. The 1PM MQTT settings are currently:

image

I have not made any modifications to the MQTT configuration of home assistant, as it is working with the GEN1 devices

I downloaded from HACS the latest python scripts, and the gen2 discovery is now v"2.20.0"

restarted home assistant a couple of times, but the new device (1PM gen2) is still not showing in the MQTT integration device list

I tried running the announce_gen2 automation manually, but that didn't make a difference

I'd appreciate your assistance

bieniu commented 11 months ago

image

bieniu commented 11 months ago

I assume you added the device ID to the configuration of an announce automation.

hros commented 11 months ago

I assume you added the device ID to the configuration of an announce automation.

This could be the problem. My shelly device has a client id that looks like shellyplus1pm-1111111111 and I changed the MQTT prefix to shellies (it used to be the same as the client id). In shellies_announce_gen2 automation, under device_ids I tried adding both

but perhaps I need to do it differently....

btw, why doesn't the announce gen 1 automation require a list of device ids?

bieniu commented 11 months ago

image

Client ID is not important, you need to add only device IDs (MQTT prefixes) to the list.

bieniu commented 11 months ago

image

This is wrong. Where is a device ID?

hros commented 11 months ago

The initial value of the MQTT prefix was the same as the Client ID. When things weren't working for me, I tried changing it to "shellies", which is what I saw in MQTT-explorer for the gen-1 devices. I replaced the mqtt prefix to its original value (shellyplus1pm-.........) and set that value in the device_ids list in the shellied_announce_gen2 automation

restarted the shelly device, and home assistant ran the announce automation, but I'm still not seeing the new device in the mqtt integration device list

bieniu commented 11 months ago

If you need help please provide more information, the whole configuration, debug log, etc.

hros commented 11 months ago

Thanks, appreciate your help.

configuration.yaml:

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# necessary to turn on lg tv to extend developer mode
wake_on_lan:

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 172.16.0.0/16

homeassistant:
  customize: !include customize.yaml
  packages: !include_dir_named packages

panel_iframe:
  nodered:
    title: Node-RED
    icon: mdi:sitemap
    require_admin: true
    url: https://nodered.mydomain.net
  esphome:
    title: ESPHome
    icon: mdi:sitemap
    require_admin: true
    url: https://esphome.mydomain.net

# python script integration
python_script:

binary_sensor: !include_dir_merge_list binsensors/
sensor: !include_dir_merge_list sensors/
light: !include_dir_merge_list lights/
switch: !include_dir_merge_list switches/

mqtt:
  sensor: !include_dir_merge_list mqtt/sensor/
  climate: !include_dir_merge_list mqtt/climate/
  binary_sensor: !include_dir_merge_list mqtt/binary_sensor/
  switch: !include_dir_merge_list mqtt/switch/
  light: !include_dir_merge_list mqtt/light/

# configuration.yaml file
logger:
  default: warning
  logs:
    homeassistant.components.python_script: debug
    homeassistant.components.automation: info

note that the list of include_dir statements

binary_sensor: !include_dir_merge_list binsensors/
sensor: !include_dir_merge_list sensors/
light: !include_dir_merge_list lights/
switch: !include_dir_merge_list switches/

mqtt:
  sensor: !include_dir_merge_list mqtt/sensor/
  climate: !include_dir_merge_list mqtt/climate/
  binary_sensor: !include_dir_merge_list mqtt/binary_sensor/
  switch: !include_dir_merge_list mqtt/switch/
  light: !include_dir_merge_list mqtt/light/

don't have anything specified (empty directories)

hros commented 11 months ago

automations.yaml (mqtt automations, changing the actual value of the device id, the mac address at the end changed to a sequence of 1s)

- id: shellies_announce
  alias: Shellies Announce
  trigger:
  - platform: homeassistant
    event: start
  - platform: time_pattern
    hours: /1
  action:
    service: mqtt.publish
    data:
      topic: shellies/command
      payload: announce
- id: shellies_discovery
  alias: Shellies Discovery
  mode: queued
  max: 999
  trigger:
    platform: mqtt
    topic: shellies/announce
  condition:
  - condition: template
    value_template: '{{ trigger.payload_json.gen is not defined }}'
  action:
    service: python_script.shellies_discovery
    data:
      id: '{{ trigger.payload_json.id }}'
      mac: '{{ trigger.payload_json.mac }}'
      fw_ver: '{{ trigger.payload_json.fw_ver }}'
      model: '{{ trigger.payload_json.model | default }}'
      mode: '{{ trigger.payload_json.mode | default }}'
      host: '{{ trigger.payload_json.ip }}'
- id: shellies_announce_gen2
  alias: "Shellies Announce Gen2"
  trigger:
    - platform: homeassistant
      event: start
  variables:
    device_info_payload:  "{{ {'id': 1, 'src':'shellies_discovery', 'method':'Shelly.GetConfig'} | to_json }}"
    device_ids:  # enter the list of device IDs (MQTT prefixes) here
      - shellyplus1pm-111111111111
  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 }}"
  - service: mqtt.publish
    data:
      topic: "{{ trigger.payload_json.result.mqtt.topic_prefix }}/command"
      payload: "status_update"
hros commented 11 months ago

debug log (mac address of shelly devices replaced to a sequence of 1s):

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 399, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/mobile_app/__init__.py", line 104, in async_setup_entry
    webhook_register(hass, DOMAIN, registration_name, webhook_id, handle_webhook)
  File "/usr/src/homeassistant/homeassistant/components/webhook/__init__.py", line 53, in async_register
    raise ValueError("Handler is already defined!")
ValueError: Handler is already defined!
2023-10-16 17:53:58.916 WARNING (MainThread) [homeassistant.config_entries] Config entry 'shellydimmer2-111111111111' for shelly integration not ready yet: DeviceConnectionError(TimeoutError()); Retrying in background
2023-10-16 17:53:58.917 WARNING (MainThread) [homeassistant.config_entries] Config entry 'shellyix3-111111111111' for shelly integration not ready yet: DeviceConnectionError(TimeoutError()); Retrying in background
2023-10-16 17:54:14.400 INFO (MainThread) [homeassistant.components.automation.shellies_announce] Shellies Announce: Running automation actions
2023-10-16 17:54:14.400 INFO (MainThread) [homeassistant.components.automation.shellies_announce] Shellies Announce: Executing step call service
2023-10-16 17:54:14.401 INFO (MainThread) [homeassistant.components.automation.shellies_announce] Initialized trigger Shellies Announce
2023-10-16 17:54:14.401 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Initialized trigger Shellies Discovery
2023-10-16 17:54:14.401 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Running automation actions
2023-10-16 17:54:14.403 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeating sequence: Iteration 1 of 1 with item: 'shellyplus1pm-80646fe5d2c8'
2023-10-16 17:54:14.404 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Initialized trigger Shellies Announce Gen2
2023-10-16 17:54:14.404 INFO (MainThread) [homeassistant.components.automation.shellies_discovery_gen2] Initialized trigger Shellies Discovery Gen2
2023-10-16 17:54:14.491 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeat at step 1: Running automation actions
2023-10-16 17:54:14.491 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeat at step 1: Executing step call service
2023-10-16 17:54:35.565 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Running automation actions
2023-10-16 17:54:35.565 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Executing step call service
2023-10-16 17:54:35.904 INFO (SyncWorker_2) [homeassistant.components.python_script] Executing shellies_discovery.py: {'id': 'shellyix3-111111111111', 'mac': '111111111111', 'fw_ver': '20230913-114336/v1.14.0-gcb84623', 'model': 'SHIX3-1', 'mode': '', 'host': '192.168.0.102'}
2023-10-16 17:54:35.905 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] id: shellyix3-111111111111, mac: 111111111111, fw_ver: 20230913-114336/v1.14.0-gcb84623, model: SHIX3-1
2023-10-16 17:54:35.905 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/update/shellyix3-111111111111-firmware/config', 'payload': '{"name": "Firmware", "stat_t": "~info", "val_tpl": "{{value_json[\'update\'].old_version}}", "l_ver_t": "~info", "l_ver_tpl": "{%if value_json[\'update\'].new_version%}{{value_json[\'update\'].new_version}}{%else%}{{value_json[\'update\'].old_version}}{%endif%}", "ent_pic": "https://brands.home-assistant.io/_/shelly/icon.png", "rel_u": "https://shelly-api-docs.shelly.cloud/gen1/#changelog", "tit": "Firmware", "dev_cla": "firmware", "en": "true", "uniq_id": "shellyix3-111111111111-firmware", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "cmd_t": "~command", "pl_inst": "update_fw", "ent_cat": "diagnostic"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:35.906 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/update/shellyix3-111111111111-firmware/config {"name": "Firmware", "stat_t": "~info", "val_tpl": "{{value_json['update'].old_version}}", "l_ver_t": "~info", "l_ver_tpl": "{%if value_json['update'].new_version%}{{value_json['update'].new_version}}{%else%}{{value_json['update'].old_version}}{%endif%}", "ent_pic": "https://brands.home-assistant.io/_/shelly/icon.png", "rel_u": "https://shelly-api-docs.shelly.cloud/gen1/#changelog", "tit": "Firmware", "dev_cla": "firmware", "en": "true", "uniq_id": "shellyix3-111111111111-firmware", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "cmd_t": "~command", "pl_inst": "update_fw", "ent_cat": "diagnostic"}
2023-10-16 17:54:35.912 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/button/shellyix3-111111111111-restart/config', 'payload': '{"name": "Restart", "cmd_t": "~command", "pl_prs": "reboot", "en": "true", "uniq_id": "shellyix3-111111111111-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "config", "dev_cla": "restart"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:35.912 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/button/shellyix3-111111111111-restart/config {"name": "Restart", "cmd_t": "~command", "pl_prs": "reboot", "en": "true", "uniq_id": "shellyix3-111111111111-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "config", "dev_cla": "restart"}
2023-10-16 17:54:35.915 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellyix3-111111111111-rssi/config', 'payload': '{"name": "WiFi signal", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-rssi", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{%if value_json.wifi_sta.rssi!=0%}{{value_json.wifi_sta.rssi}}{%endif%}", "icon": "mdi:wifi", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:35.915 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellyix3-111111111111-rssi/config {"name": "WiFi signal", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-rssi", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{%if value_json.wifi_sta.rssi!=0%}{{value_json.wifi_sta.rssi}}{%endif%}", "icon": "mdi:wifi", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:35.918 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellyix3-111111111111-ssid/config', 'payload': '{"name": "SSID", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-ssid", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ssid}}", "icon": "mdi:wifi-settings", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:35.918 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellyix3-111111111111-ssid/config {"name": "SSID", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-ssid", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ssid}}", "icon": "mdi:wifi-settings", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:35.922 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellyix3-111111111111-uptime/config', 'payload': '{"name": "Last restart", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-uptime", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "dev_cla": "timestamp", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:35.922 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellyix3-111111111111-uptime/config {"name": "Last restart", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-uptime", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "dev_cla": "timestamp", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:35.924 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellyix3-111111111111-ip/config', 'payload': '{"name": "IP address", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-ip", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ip}}", "icon": "mdi:ip-outline", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:35.924 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellyix3-111111111111-ip/config {"name": "IP address", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-ip", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ip}}", "icon": "mdi:ip-outline", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:35.925 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellyix3-111111111111-temperature_status/config', 'payload': '{"name": "Temperature status", "stat_t": "~temperature_status", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-temperature_status", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value|lower}}", "icon": "mdi:thermometer-alert", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:35.925 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellyix3-111111111111-temperature_status/config {"name": "Temperature status", "stat_t": "~temperature_status", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-temperature_status", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value|lower}}", "icon": "mdi:thermometer-alert", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:35.927 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_release/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input/0", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_release", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:35.927 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_release/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input/0", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_release", "stype": "button_1"}
2023-10-16 17:54:35.933 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:35.933 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_long_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_press", "stype": "button_1"}
2023-10-16 17:54:35.936 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:35.937 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_short_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_press", "stype": "button_1"}
2023-10-16 17:54:35.941 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_double_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "SS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_double_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:35.941 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_double_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "SS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_double_press", "stype": "button_1"}
2023-10-16 17:54:35.942 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_triple_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "SSS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_triple_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:35.943 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_triple_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "SSS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_triple_press", "stype": "button_1"}
2023-10-16 17:54:35.955 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_short_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "SL", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_long_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:35.956 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_short_long_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "SL", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_long_press", "stype": "button_1"}
2023-10-16 17:54:35.962 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_long_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "LS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_short_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:35.962 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_long_short_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "LS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_short_press", "stype": "button_1"}
2023-10-16 17:54:35.980 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/event/shellyix3-111111111111-input-0/config', 'payload': '{"name": "Button 0", "stat_t": "~input_event/0", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{\'event_type\':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyix3-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:35.981 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/event/shellyix3-111111111111-input-0/config {"name": "Button 0", "stat_t": "~input_event/0", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{'event_type':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyix3-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/"}
2023-10-16 17:54:35.986 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_release/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input/1", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_release", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:35.986 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_release/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input/1", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_release", "stype": "button_2"}
2023-10-16 17:54:35.994 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:35.995 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_long_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_press", "stype": "button_2"}
2023-10-16 17:54:36.002 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.003 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_short_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_press", "stype": "button_2"}
2023-10-16 17:54:36.005 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_double_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "SS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_double_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.005 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_double_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "SS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_double_press", "stype": "button_2"}
2023-10-16 17:54:36.008 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_triple_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "SSS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_triple_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.008 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_triple_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "SSS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_triple_press", "stype": "button_2"}
2023-10-16 17:54:36.019 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_short_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "SL", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_long_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.019 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_short_long_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "SL", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_long_press", "stype": "button_2"}
2023-10-16 17:54:36.021 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_long_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "LS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_short_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.021 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_long_short_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "LS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_short_press", "stype": "button_2"}
2023-10-16 17:54:36.022 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/event/shellyix3-111111111111-input-1/config', 'payload': '{"name": "Button 1", "stat_t": "~input_event/1", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{\'event_type\':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyix3-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.023 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/event/shellyix3-111111111111-input-1/config {"name": "Button 1", "stat_t": "~input_event/1", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{'event_type':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyix3-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/"}
2023-10-16 17:54:36.029 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_release/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input/2", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_release", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.029 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_release/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input/2", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_release", "stype": "button_3"}
2023-10-16 17:54:36.035 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_press", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.035 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_long_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_press", "stype": "button_3"}
hros commented 11 months ago

debug log (cont)

2023-10-16 17:54:36.041 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_press", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.041 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_short_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_press", "stype": "button_3"}
2023-10-16 17:54:36.047 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_double_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "SS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_double_press", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.047 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_double_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "SS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_double_press", "stype": "button_3"}
2023-10-16 17:54:36.053 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_triple_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "SSS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_triple_press", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.053 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_triple_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "SSS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_triple_press", "stype": "button_3"}
2023-10-16 17:54:36.061 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_short_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "SL", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_long_press", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.061 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_short_long_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "SL", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_long_press", "stype": "button_3"}
2023-10-16 17:54:36.063 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_long_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "LS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_short_press", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.063 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_long_short_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "LS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_short_press", "stype": "button_3"}
2023-10-16 17:54:36.067 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/event/shellyix3-111111111111-input-2/config', 'payload': '{"name": "Button 2", "stat_t": "~input_event/2", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{\'event_type\':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyix3-111111111111-input-2", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.067 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/event/shellyix3-111111111111-input-2/config {"name": "Button 2", "stat_t": "~input_event/2", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{'event_type':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyix3-111111111111-input-2", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/"}
2023-10-16 17:54:36.072 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellyix3-111111111111-input-0/config', 'payload': '{"name": "Input 0", "stat_t": "~input/0", "en": "false", "uniq_id": "shellyix3-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.073 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellyix3-111111111111-input-0/config {"name": "Input 0", "stat_t": "~input/0", "en": "false", "uniq_id": "shellyix3-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:36.076 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellyix3-111111111111-input-1/config', 'payload': '{"name": "Input 1", "stat_t": "~input/1", "en": "false", "uniq_id": "shellyix3-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.076 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellyix3-111111111111-input-1/config {"name": "Input 1", "stat_t": "~input/1", "en": "false", "uniq_id": "shellyix3-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:36.085 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellyix3-111111111111-input-2/config', 'payload': '{"name": "Input 2", "stat_t": "~input/2", "en": "false", "uniq_id": "shellyix3-111111111111-input-2", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.085 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellyix3-111111111111-input-2/config {"name": "Input 2", "stat_t": "~input/2", "en": "false", "uniq_id": "shellyix3-111111111111-input-2", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:36.096 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Running automation actions
2023-10-16 17:54:36.096 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Executing step call service
2023-10-16 17:54:36.419 INFO (SyncWorker_8) [homeassistant.components.python_script] Executing shellies_discovery.py: {'id': 'shelly1pm-111111111111', 'mac': '111111111111', 'fw_ver': '20230503-101420/v1.13.0-g9aed950', 'model': 'SHSW-PM', 'mode': '', 'host': '192.168.0.100'}
2023-10-16 17:54:36.419 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] id: shelly1pm-111111111111, mac: 111111111111, fw_ver: 20230503-101420/v1.13.0-g9aed950, model: SHSW-PM
2023-10-16 17:54:36.420 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/button/shelly1pm-111111111111-restart/config', 'payload': '{"name": "Restart", "cmd_t": "~command", "pl_prs": "reboot", "en": "true", "uniq_id": "shelly1pm-111111111111-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "config", "dev_cla": "restart"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.420 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/button/shelly1pm-111111111111-restart/config {"name": "Restart", "cmd_t": "~command", "pl_prs": "reboot", "en": "true", "uniq_id": "shelly1pm-111111111111-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "config", "dev_cla": "restart"}
2023-10-16 17:54:36.423 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/switch/shelly1pm-111111111111-relay-0/config', 'payload': '{"name": "Relay 0", "cmd_t": "~relay/0/command", "stat_t": "~relay/0", "pl_off": "off", "pl_on": "on", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shelly1pm-111111111111-relay-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.423 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/switch/shelly1pm-111111111111-relay-0/config {"name": "Relay 0", "cmd_t": "~relay/0/command", "stat_t": "~relay/0", "pl_off": "off", "pl_on": "on", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shelly1pm-111111111111-relay-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/"}
2023-10-16 17:54:36.429 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/light/shelly1pm-111111111111-relay-0/config', 'payload': '', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.429 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/light/shelly1pm-111111111111-relay-0/config 
2023-10-16 17:54:36.435 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/fan/shelly1pm-111111111111-relay-0/config', 'payload': '', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.435 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/fan/shelly1pm-111111111111-relay-0/config 
2023-10-16 17:54:36.437 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-power-0/config', 'payload': '{"name": "Power 0", "stat_t": "~relay/0/power", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shelly1pm-111111111111-relay-power-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "sug_dsp_prc": 1, "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.437 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-power-0/config {"name": "Power 0", "stat_t": "~relay/0/power", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shelly1pm-111111111111-relay-power-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "sug_dsp_prc": 1, "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W"}
2023-10-16 17:54:36.441 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-energy-0/config', 'payload': '{"name": "Energy 0", "stat_t": "~relay/0/energy", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shelly1pm-111111111111-relay-energy-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "sug_dsp_prc": 1, "dev_cla": "energy", "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{value|float/60}}"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.441 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-energy-0/config {"name": "Energy 0", "stat_t": "~relay/0/energy", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shelly1pm-111111111111-relay-energy-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "sug_dsp_prc": 1, "dev_cla": "energy", "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{value|float/60}}"}
2023-10-16 17:54:36.446 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shelly1pm-111111111111-overpower-0/config', 'payload': '{"name": "Overpower 0", "stat_t": "~relay/0", "en": "true", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shelly1pm-111111111111-overpower-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{%if value==\'overpower\'%}ON{%else%}OFF{%endif%}", "dev_cla": "problem", "json_attr_t": "~overpower/0/overpower_value", "json_attr_tpl": "{{{\'overpower_value\':value}|tojson}}"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.446 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-111111111111-overpower-0/config {"name": "Overpower 0", "stat_t": "~relay/0", "en": "true", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shelly1pm-111111111111-overpower-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{%if value=='overpower'%}ON{%else%}OFF{%endif%}", "dev_cla": "problem", "json_attr_t": "~overpower/0/overpower_value", "json_attr_tpl": "{{{'overpower_value':value}|tojson}}"}
2023-10-16 17:54:36.450 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-rssi/config', 'payload': '{"name": "WiFi signal", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-rssi", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{%if value_json.wifi_sta.rssi!=0%}{{value_json.wifi_sta.rssi}}{%endif%}", "icon": "mdi:wifi", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.450 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-rssi/config {"name": "WiFi signal", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-rssi", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{%if value_json.wifi_sta.rssi!=0%}{{value_json.wifi_sta.rssi}}{%endif%}", "icon": "mdi:wifi", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:36.453 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-ssid/config', 'payload': '{"name": "SSID", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-ssid", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ssid}}", "icon": "mdi:wifi-settings", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.453 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-ssid/config {"name": "SSID", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-ssid", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ssid}}", "icon": "mdi:wifi-settings", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:36.459 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-uptime/config', 'payload': '{"name": "Last restart", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-uptime", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "dev_cla": "timestamp", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.460 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-uptime/config {"name": "Last restart", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-uptime", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "dev_cla": "timestamp", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:36.464 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-ip/config', 'payload': '{"name": "IP address", "stat_t": "~announce", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-ip", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.ip}}", "icon": "mdi:ip-outline", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.465 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-ip/config {"name": "IP address", "stat_t": "~announce", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-ip", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.ip}}", "icon": "mdi:ip-outline", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:36.471 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-temperature/config', 'payload': '{"name": "Temperature", "stat_t": "~temperature", "frc_upd": "false", "en": "true", "uniq_id": "shelly1pm-111111111111-temperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "sug_dsp_prc": 1, "ent_cat": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "°C", "val_tpl": "{%if is_number(value) and -100<value|int<900%}{{value}}{%endif%}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.471 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-temperature/config {"name": "Temperature", "stat_t": "~temperature", "frc_upd": "false", "en": "true", "uniq_id": "shelly1pm-111111111111-temperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "sug_dsp_prc": 1, "ent_cat": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "°C", "val_tpl": "{%if is_number(value) and -100<value|int<900%}{{value}}{%endif%}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:36.480 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-temperature_status/config', 'payload': '{"name": "Temperature status", "stat_t": "~temperature_status", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-temperature_status", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value|lower}}", "icon": "mdi:thermometer-alert", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.480 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-temperature_status/config {"name": "Temperature status", "stat_t": "~temperature_status", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-temperature_status", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value|lower}}", "icon": "mdi:thermometer-alert", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:36.482 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shelly1pm-111111111111-input-0/button_release/config', 'payload': '{"atype": "trigger", "t": "shellies/shelly1pm-111111111111/input/0", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "type": "button_short_release", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.482 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shelly1pm-111111111111-input-0/button_release/config {"atype": "trigger", "t": "shellies/shelly1pm-111111111111/input/0", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "type": "button_short_release", "stype": "button_1"}
2023-10-16 17:54:36.486 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shelly1pm-111111111111-input-0/button_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shelly1pm-111111111111/input_event/0", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "type": "button_long_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.486 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shelly1pm-111111111111-input-0/button_long_press/config {"atype": "trigger", "t": "shellies/shelly1pm-111111111111/input_event/0", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "type": "button_long_press", "stype": "button_1"}
2023-10-16 17:54:36.491 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shelly1pm-111111111111-input-0/button_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shelly1pm-111111111111/input_event/0", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "type": "button_short_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.491 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shelly1pm-111111111111-input-0/button_short_press/config {"atype": "trigger", "t": "shellies/shelly1pm-111111111111/input_event/0", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "type": "button_short_press", "stype": "button_1"}
2023-10-16 17:54:36.501 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/event/shelly1pm-111111111111-input-0/config', 'payload': '{"name": "Button 0", "stat_t": "~input_event/0", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{\'event_type\':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shelly1pm-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.501 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/event/shelly1pm-111111111111-input-0/config {"name": "Button 0", "stat_t": "~input_event/0", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{'event_type':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shelly1pm-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/"}
2023-10-16 17:54:36.511 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-ext-temperature-0/config', 'payload': '', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.511 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-ext-temperature-0/config 
2023-10-16 17:54:36.515 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-ext-temperature-1/config', 'payload': '', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.515 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-ext-temperature-1/config 
2023-10-16 17:54:36.529 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-ext-temperature-2/config', 'payload': '', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.530 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-ext-temperature-2/config 
2023-10-16 17:54:36.534 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-ext-humidity-0/config', 'payload': '', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.534 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-ext-humidity-0/config 
2023-10-16 17:54:36.537 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shelly1pm-111111111111-overtemperature/config', 'payload': '{"name": "Overtemperature", "stat_t": "~overtemperature", "en": "true", "uniq_id": "shelly1pm-111111111111-overtemperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.537 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-111111111111-overtemperature/config {"name": "Overtemperature", "stat_t": "~overtemperature", "en": "true", "uniq_id": "shelly1pm-111111111111-overtemperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}
2023-10-16 17:54:36.550 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shelly1pm-111111111111-input-0/config', 'payload': '{"name": "Input 0", "stat_t": "~input/0", "en": "false", "uniq_id": "shelly1pm-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.550 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-111111111111-input-0/config {"name": "Input 0", "stat_t": "~input/0", "en": "false", "uniq_id": "shelly1pm-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:36.558 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Running automation actions
2023-10-16 17:54:36.559 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Executing step call service
2023-10-16 17:54:36.882 INFO (SyncWorker_12) [homeassistant.components.python_script] Executing shellies_discovery.py: {'id': 'shellydimmer2-111111111111', 'mac': '111111111111', 'fw_ver': '20230913-114008/v1.14.0-gcb84623', 'model': 'SHDM-2', 'mode': '', 'host': '192.168.0.140'}
2023-10-16 17:54:36.883 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] id: shellydimmer2-111111111111, mac: 111111111111, fw_ver: 20230913-114008/v1.14.0-gcb84623, model: SHDM-2
2023-10-16 17:54:36.883 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/update/shellydimmer2-111111111111-firmware/config', 'payload': '{"name": "Firmware", "stat_t": "~info", "val_tpl": "{{value_json[\'update\'].old_version}}", "l_ver_t": "~info", "l_ver_tpl": "{%if value_json[\'update\'].new_version%}{{value_json[\'update\'].new_version}}{%else%}{{value_json[\'update\'].old_version}}{%endif%}", "ent_pic": "https://brands.home-assistant.io/_/shelly/icon.png", "rel_u": "https://shelly-api-docs.shelly.cloud/gen1/#changelog", "tit": "Firmware", "dev_cla": "firmware", "en": "true", "uniq_id": "shellydimmer2-111111111111-firmware", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "cmd_t": "~command", "pl_inst": "update_fw", "ent_cat": "diagnostic"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.883 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/update/shellydimmer2-111111111111-firmware/config {"name": "Firmware", "stat_t": "~info", "val_tpl": "{{value_json['update'].old_version}}", "l_ver_t": "~info", "l_ver_tpl": "{%if value_json['update'].new_version%}{{value_json['update'].new_version}}{%else%}{{value_json['update'].old_version}}{%endif%}", "ent_pic": "https://brands.home-assistant.io/_/shelly/icon.png", "rel_u": "https://shelly-api-docs.shelly.cloud/gen1/#changelog", "tit": "Firmware", "dev_cla": "firmware", "en": "true", "uniq_id": "shellydimmer2-111111111111-firmware", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "cmd_t": "~command", "pl_inst": "update_fw", "ent_cat": "diagnostic"}
2023-10-16 17:54:36.886 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/button/shellydimmer2-111111111111-restart/config', 'payload': '{"name": "Restart", "cmd_t": "~command", "pl_prs": "reboot", "en": "true", "uniq_id": "shellydimmer2-111111111111-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "config", "dev_cla": "restart"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.886 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/button/shellydimmer2-111111111111-restart/config {"name": "Restart", "cmd_t": "~command", "pl_prs": "reboot", "en": "true", "uniq_id": "shellydimmer2-111111111111-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "config", "dev_cla": "restart"}
2023-10-16 17:54:36.888 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-ip/config', 'payload': '{"name": "IP address", "stat_t": "~announce", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-ip", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.ip}}", "icon": "mdi:ip-outline", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.888 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-ip/config {"name": "IP address", "stat_t": "~announce", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-ip", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.ip}}", "icon": "mdi:ip-outline", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:36.892 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-rssi/config', 'payload': '{"name": "WiFi signal", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-rssi", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{%if value_json.wifi_sta.rssi!=0%}{{value_json.wifi_sta.rssi}}{%endif%}", "icon": "mdi:wifi", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.892 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-rssi/config {"name": "WiFi signal", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-rssi", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{%if value_json.wifi_sta.rssi!=0%}{{value_json.wifi_sta.rssi}}{%endif%}", "icon": "mdi:wifi", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:36.894 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-ssid/config', 'payload': '{"name": "SSID", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-ssid", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ssid}}", "icon": "mdi:wifi-settings", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.894 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-ssid/config {"name": "SSID", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-ssid", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ssid}}", "icon": "mdi:wifi-settings", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:36.902 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-temperature/config', 'payload': '{"name": "Temperature", "stat_t": "~temperature", "frc_upd": "false", "en": "true", "uniq_id": "shellydimmer2-111111111111-temperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "ent_cat": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "°C", "val_tpl": "{%if is_number(value) and -100<value|int<900%}{{value}}{%endif%}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.902 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-temperature/config {"name": "Temperature", "stat_t": "~temperature", "frc_upd": "false", "en": "true", "uniq_id": "shellydimmer2-111111111111-temperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "ent_cat": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "°C", "val_tpl": "{%if is_number(value) and -100<value|int<900%}{{value}}{%endif%}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:36.908 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-uptime/config', 'payload': '{"name": "Last restart", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-uptime", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "dev_cla": "timestamp", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.909 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-uptime/config {"name": "Last restart", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-uptime", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "dev_cla": "timestamp", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:36.910 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellydimmer2-111111111111-input-0/button_release/config', 'payload': '{"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input/0", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_release", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.910 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellydimmer2-111111111111-input-0/button_release/config {"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input/0", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_release", "stype": "button_1"}
2023-10-16 17:54:36.923 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellydimmer2-111111111111-input-0/button_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/0", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_long_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.923 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellydimmer2-111111111111-input-0/button_long_press/config {"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/0", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_long_press", "stype": "button_1"}
2023-10-16 17:54:36.926 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellydimmer2-111111111111-input-0/button_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/0", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.926 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellydimmer2-111111111111-input-0/button_short_press/config {"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/0", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_press", "stype": "button_1"}
2023-10-16 17:54:36.937 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/event/shellydimmer2-111111111111-input-0/config', 'payload': '{"name": "Button 0", "stat_t": "~input_event/0", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{\'event_type\':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellydimmer2-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.937 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/event/shellydimmer2-111111111111-input-0/config {"name": "Button 0", "stat_t": "~input_event/0", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{'event_type':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellydimmer2-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/"}
2023-10-16 17:54:36.945 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellydimmer2-111111111111-input-1/button_release/config', 'payload': '{"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input/1", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_release", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.945 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellydimmer2-111111111111-input-1/button_release/config {"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input/1", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_release", "stype": "button_2"}
2023-10-16 17:54:36.947 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellydimmer2-111111111111-input-1/button_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/1", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_long_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.947 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellydimmer2-111111111111-input-1/button_long_press/config {"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/1", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_long_press", "stype": "button_2"}
2023-10-16 17:54:36.949 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellydimmer2-111111111111-input-1/button_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/1", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.949 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellydimmer2-111111111111-input-1/button_short_press/config {"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/1", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_press", "stype": "button_2"}
2023-10-16 17:54:36.953 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/event/shellydimmer2-111111111111-input-1/config', 'payload': '{"name": "Button 1", "stat_t": "~input_event/1", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{\'event_type\':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellydimmer2-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.953 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/event/shellydimmer2-111111111111-input-1/config {"name": "Button 1", "stat_t": "~input_event/1", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{'event_type':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellydimmer2-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/"}
2023-10-16 17:54:36.961 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellydimmer2-111111111111-overtemperature/config', 'payload': '{"name": "Overtemperature", "stat_t": "~overtemperature", "en": "true", "uniq_id": "shellydimmer2-111111111111-overtemperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.961 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-111111111111-overtemperature/config {"name": "Overtemperature", "stat_t": "~overtemperature", "en": "true", "uniq_id": "shellydimmer2-111111111111-overtemperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}
2023-10-16 17:54:36.967 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellydimmer2-111111111111-overload/config', 'payload': '{"name": "Overload", "stat_t": "~overload", "en": "false", "uniq_id": "shellydimmer2-111111111111-overload", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "pl_on": 1, "pl_off": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.967 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-111111111111-overload/config {"name": "Overload", "stat_t": "~overload", "en": "false", "uniq_id": "shellydimmer2-111111111111-overload", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "pl_on": 1, "pl_off": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}
2023-10-16 17:54:36.973 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellydimmer2-111111111111-loaderror/config', 'payload': '{"name": "Loaderror", "stat_t": "~loaderror", "en": "false", "uniq_id": "shellydimmer2-111111111111-loaderror", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "pl_on": 1, "pl_off": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.973 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-111111111111-loaderror/config {"name": "Loaderror", "stat_t": "~loaderror", "en": "false", "uniq_id": "shellydimmer2-111111111111-loaderror", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "pl_on": 1, "pl_off": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}
2023-10-16 17:54:36.977 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellydimmer2-111111111111-input-0/config', 'payload': '{"name": "Input 0", "stat_t": "~input/0", "en": "false", "uniq_id": "shellydimmer2-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.977 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-111111111111-input-0/config {"name": "Input 0", "stat_t": "~input/0", "en": "false", "uniq_id": "shellydimmer2-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:36.990 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellydimmer2-111111111111-input-1/config', 'payload': '{"name": "Input 1", "stat_t": "~input/1", "en": "false", "uniq_id": "shellydimmer2-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.990 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-111111111111-input-1/config {"name": "Input 1", "stat_t": "~input/1", "en": "false", "uniq_id": "shellydimmer2-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:36.994 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/light/shellydimmer2-111111111111-0/config', 'payload': '{"schema": "template", "name": "Light 0", "cmd_t": "~light/0/set", "stat_t": "~light/0/status", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "cmd_on_tpl": "{\\"turn\\":\\"on\\"{%if brightness is defined%},\\"brightness\\":{{brightness|float|multiply(0.3922)|round}}{%endif%}{%if transition is defined%},\\"transition\\":{{min(transition|multiply(1000), 5000)}}{%endif%}}", "cmd_off_tpl": "{\\"turn\\":\\"off\\"{%if transition is defined%},\\"transition\\":{{min(transition|multiply(1000),5000)}}{%endif%}}", "stat_tpl": "{%if value_json.ison%}on{%else%}off{%endif%}", "bri_tpl": "{{value_json.brightness|float|multiply(2.55)|round}}", "uniq_id": "shellydimmer2-111111111111-light-0", "qos": "0", "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.994 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/light/shellydimmer2-111111111111-0/config {"schema": "template", "name": "Light 0", "cmd_t": "~light/0/set", "stat_t": "~light/0/status", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "cmd_on_tpl": "{\"turn\":\"on\"{%if brightness is defined%},\"brightness\":{{brightness|float|multiply(0.3922)|round}}{%endif%}{%if transition is defined%},\"transition\":{{min(transition|multiply(1000), 5000)}}{%endif%}}", "cmd_off_tpl": "{\"turn\":\"off\"{%if transition is defined%},\"transition\":{{min(transition|multiply(1000),5000)}}{%endif%}}", "stat_tpl": "{%if value_json.ison%}on{%else%}off{%endif%}", "bri_tpl": "{{value_json.brightness|float|multiply(2.55)|round}}", "uniq_id": "shellydimmer2-111111111111-light-0", "qos": "0", "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/"}
2023-10-16 17:54:36.998 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-white-power-0/config', 'payload': '{"name": "Power 0", "stat_t": "~light/0/power", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shellydimmer2-111111111111-white-power-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:36.998 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-white-power-0/config {"name": "Power 0", "stat_t": "~light/0/power", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shellydimmer2-111111111111-white-power-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W"}
2023-10-16 17:54:37.005 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-white-energy-0/config', 'payload': '{"name": "Energy 0", "stat_t": "~light/0/energy", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shellydimmer2-111111111111-white-energy-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "dev_cla": "energy", "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{value|float/60}}"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:37.005 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-white-energy-0/config {"name": "Energy 0", "stat_t": "~light/0/energy", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shellydimmer2-111111111111-white-energy-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "dev_cla": "energy", "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{value|float/60}}"}
2023-10-16 17:54:37.008 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-white-overpower_value-0/config', 'payload': '{"name": "Overpower value 0", "stat_t": "~light/0/overpower_value", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-white-overpower_value-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "unit_of_meas": "W"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:37.008 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-white-overpower_value-0/config {"name": "Overpower value 0", "stat_t": "~light/0/overpower_value", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-white-overpower_value-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "unit_of_meas": "W"}
2023-10-16 17:54:37.012 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/number/shellydimmer2-111111111111-0-brightness/config', 'payload': '{"name": "Brightness 0", "cmd_t": "~light/0/set", "cmd_tpl": "{\\"brightness\\":{{value|float|round}}}", "max": 100, "min": 0, "step": 1, "stat_t": "~light/0/status", "val_tpl": "{{value_json.brightness}}", "unit_of_meas": "%", "en": "true", "uniq_id": "shellydimmer2-111111111111-brightness-0", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "icon": "mdi:brightness-percent"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:37.012 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/number/shellydimmer2-111111111111-0-brightness/config {"name": "Brightness 0", "cmd_t": "~light/0/set", "cmd_tpl": "{\"brightness\":{{value|float|round}}}", "max": 100, "min": 0, "step": 1, "stat_t": "~light/0/status", "val_tpl": "{{value_json.brightness}}", "unit_of_meas": "%", "en": "true", "uniq_id": "shellydimmer2-111111111111-brightness-0", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "icon": "mdi:brightness-percent"}
2023-10-16 17:54:38.108 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Running automation actions
2023-10-16 17:54:38.108 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Executing step call service
2023-10-16 17:54:38.761 INFO (SyncWorker_14) [homeassistant.components.python_script] Executing shellies_discovery.py: {'id': 'shellyix3-111111111111', 'mac': '111111111111', 'fw_ver': '20230913-114336/v1.14.0-gcb84623', 'model': 'SHIX3-1', 'mode': '', 'host': '192.168.0.102'}
2023-10-16 17:54:38.762 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] id: shellyix3-111111111111, mac: 111111111111, fw_ver: 20230913-114336/v1.14.0-gcb84623, model: SHIX3-1
2023-10-16 17:54:38.762 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/update/shellyix3-111111111111-firmware/config', 'payload': '{"name": "Firmware", "stat_t": "~info", "val_tpl": "{{value_json[\'update\'].old_version}}", "l_ver_t": "~info", "l_ver_tpl": "{%if value_json[\'update\'].new_version%}{{value_json[\'update\'].new_version}}{%else%}{{value_json[\'update\'].old_version}}{%endif%}", "ent_pic": "https://brands.home-assistant.io/_/shelly/icon.png", "rel_u": "https://shelly-api-docs.shelly.cloud/gen1/#changelog", "tit": "Firmware", "dev_cla": "firmware", "en": "true", "uniq_id": "shellyix3-111111111111-firmware", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "cmd_t": "~command", "pl_inst": "update_fw", "ent_cat": "diagnostic"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.762 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/update/shellyix3-111111111111-firmware/config {"name": "Firmware", "stat_t": "~info", "val_tpl": "{{value_json['update'].old_version}}", "l_ver_t": "~info", "l_ver_tpl": "{%if value_json['update'].new_version%}{{value_json['update'].new_version}}{%else%}{{value_json['update'].old_version}}{%endif%}", "ent_pic": "https://brands.home-assistant.io/_/shelly/icon.png", "rel_u": "https://shelly-api-docs.shelly.cloud/gen1/#changelog", "tit": "Firmware", "dev_cla": "firmware", "en": "true", "uniq_id": "shellyix3-111111111111-firmware", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "cmd_t": "~command", "pl_inst": "update_fw", "ent_cat": "diagnostic"}
2023-10-16 17:54:38.767 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/button/shellyix3-111111111111-restart/config', 'payload': '{"name": "Restart", "cmd_t": "~command", "pl_prs": "reboot", "en": "true", "uniq_id": "shellyix3-111111111111-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "config", "dev_cla": "restart"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.767 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/button/shellyix3-111111111111-restart/config {"name": "Restart", "cmd_t": "~command", "pl_prs": "reboot", "en": "true", "uniq_id": "shellyix3-111111111111-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "config", "dev_cla": "restart"}
2023-10-16 17:54:38.769 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellyix3-111111111111-rssi/config', 'payload': '{"name": "WiFi signal", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-rssi", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{%if value_json.wifi_sta.rssi!=0%}{{value_json.wifi_sta.rssi}}{%endif%}", "icon": "mdi:wifi", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.769 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellyix3-111111111111-rssi/config {"name": "WiFi signal", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-rssi", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{%if value_json.wifi_sta.rssi!=0%}{{value_json.wifi_sta.rssi}}{%endif%}", "icon": "mdi:wifi", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:38.771 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellyix3-111111111111-ssid/config', 'payload': '{"name": "SSID", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-ssid", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ssid}}", "icon": "mdi:wifi-settings", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.772 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellyix3-111111111111-ssid/config {"name": "SSID", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-ssid", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ssid}}", "icon": "mdi:wifi-settings", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:38.775 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellyix3-111111111111-uptime/config', 'payload': '{"name": "Last restart", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-uptime", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "dev_cla": "timestamp", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.775 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellyix3-111111111111-uptime/config {"name": "Last restart", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-uptime", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "dev_cla": "timestamp", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:38.780 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellyix3-111111111111-ip/config', 'payload': '{"name": "IP address", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-ip", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ip}}", "icon": "mdi:ip-outline", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.780 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellyix3-111111111111-ip/config {"name": "IP address", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-ip", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ip}}", "icon": "mdi:ip-outline", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:38.787 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellyix3-111111111111-temperature_status/config', 'payload': '{"name": "Temperature status", "stat_t": "~temperature_status", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-temperature_status", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value|lower}}", "icon": "mdi:thermometer-alert", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.788 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellyix3-111111111111-temperature_status/config {"name": "Temperature status", "stat_t": "~temperature_status", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-temperature_status", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value|lower}}", "icon": "mdi:thermometer-alert", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:38.791 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_release/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input/0", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_release", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.791 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_release/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input/0", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_release", "stype": "button_1"}
2023-10-16 17:54:38.792 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.792 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_long_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_press", "stype": "button_1"}
2023-10-16 17:54:38.795 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.796 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_short_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_press", "stype": "button_1"}
2023-10-16 17:54:38.800 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_double_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "SS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_double_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.800 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_double_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "SS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_double_press", "stype": "button_1"}
2023-10-16 17:54:38.808 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_triple_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "SSS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_triple_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.809 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_triple_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "SSS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_triple_press", "stype": "button_1"}
2023-10-16 17:54:38.811 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_short_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "SL", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_long_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.812 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_short_long_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "SL", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_long_press", "stype": "button_1"}
2023-10-16 17:54:38.815 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_long_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "LS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_short_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.815 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_long_short_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "LS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_short_press", "stype": "button_1"}
2023-10-16 17:54:38.836 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/event/shellyix3-111111111111-input-0/config', 'payload': '{"name": "Button 0", "stat_t": "~input_event/0", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{\'event_type\':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyix3-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.836 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/event/shellyix3-111111111111-input-0/config {"name": "Button 0", "stat_t": "~input_event/0", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{'event_type':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyix3-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/"}
2023-10-16 17:54:38.843 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_release/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input/1", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_release", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.843 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_release/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input/1", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_release", "stype": "button_2"}
2023-10-16 17:54:38.847 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.847 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_long_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_press", "stype": "button_2"}
2023-10-16 17:54:38.851 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.851 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_short_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_press", "stype": "button_2"}
2023-10-16 17:54:38.854 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_double_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "SS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_double_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.854 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_double_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "SS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_double_press", "stype": "button_2"}
2023-10-16 17:54:38.857 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_triple_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "SSS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_triple_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.857 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_triple_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "SSS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_triple_press", "stype": "button_2"}
2023-10-16 17:54:38.860 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_short_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "SL", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_long_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.860 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_short_long_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "SL", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_long_press", "stype": "button_2"}
2023-10-16 17:54:38.862 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_long_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "LS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_short_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.862 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_long_short_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "LS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_short_press", "stype": "button_2"}
2023-10-16 17:54:38.867 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/event/shellyix3-111111111111-input-1/config', 'payload': '{"name": "Button 1", "stat_t": "~input_event/1", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{\'event_type\':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyix3-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.867 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/event/shellyix3-111111111111-input-1/config {"name": "Button 1", "stat_t": "~input_event/1", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{'event_type':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyix3-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/"}
2023-10-16 17:54:38.870 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_release/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input/2", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_release", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.870 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_release/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input/2", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_release", "stype": "button_3"}
2023-10-16 17:54:38.873 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_press", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.873 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_long_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_press", "stype": "button_3"}
2023-10-16 17:54:38.875 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_press", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.875 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_short_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_press", "stype": "button_3"}
2023-10-16 17:54:38.878 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_double_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "SS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_double_press", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.878 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_double_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "SS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_double_press", "stype": "button_3"}
2023-10-16 17:54:38.881 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_triple_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "SSS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_triple_press", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.881 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_triple_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "SSS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_triple_press", "stype": "button_3"}
2023-10-16 17:54:38.883 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_short_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "SL", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_long_press", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.883 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_short_long_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "SL", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_long_press", "stype": "button_3"}
2023-10-16 17:54:38.888 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_long_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "LS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_short_press", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.888 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_long_short_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "LS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_short_press", "stype": "button_3"}
2023-10-16 17:54:38.892 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/event/shellyix3-111111111111-input-2/config', 'payload': '{"name": "Button 2", "stat_t": "~input_event/2", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{\'event_type\':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyix3-111111111111-input-2", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.892 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/event/shellyix3-111111111111-input-2/config {"name": "Button 2", "stat_t": "~input_event/2", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{'event_type':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyix3-111111111111-input-2", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/"}
2023-10-16 17:54:38.894 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellyix3-111111111111-input-0/config', 'payload': '{"name": "Input 0", "stat_t": "~input/0", "en": "false", "uniq_id": "shellyix3-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.894 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellyix3-111111111111-input-0/config {"name": "Input 0", "stat_t": "~input/0", "en": "false", "uniq_id": "shellyix3-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
hros commented 11 months ago

debug log (cont)

2023-10-16 17:54:38.896 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellyix3-111111111111-input-1/config', 'payload': '{"name": "Input 1", "stat_t": "~input/1", "en": "false", "uniq_id": "shellyix3-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.897 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellyix3-111111111111-input-1/config {"name": "Input 1", "stat_t": "~input/1", "en": "false", "uniq_id": "shellyix3-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:38.898 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellyix3-111111111111-input-2/config', 'payload': '{"name": "Input 2", "stat_t": "~input/2", "en": "false", "uniq_id": "shellyix3-111111111111-input-2", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:38.898 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellyix3-111111111111-input-2/config {"name": "Input 2", "stat_t": "~input/2", "en": "false", "uniq_id": "shellyix3-111111111111-input-2", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:38.905 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Running automation actions
2023-10-16 17:54:38.905 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Executing step call service
2023-10-16 17:54:39.245 INFO (SyncWorker_11) [homeassistant.components.python_script] Executing shellies_discovery.py: {'id': 'shelly1pm-111111111111', 'mac': '111111111111', 'fw_ver': '20230503-101420/v1.13.0-g9aed950', 'model': 'SHSW-PM', 'mode': '', 'host': '192.168.0.100'}
2023-10-16 17:54:39.245 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] id: shelly1pm-111111111111, mac: 111111111111, fw_ver: 20230503-101420/v1.13.0-g9aed950, model: SHSW-PM
2023-10-16 17:54:39.246 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/button/shelly1pm-111111111111-restart/config', 'payload': '{"name": "Restart", "cmd_t": "~command", "pl_prs": "reboot", "en": "true", "uniq_id": "shelly1pm-111111111111-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "config", "dev_cla": "restart"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.246 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/button/shelly1pm-111111111111-restart/config {"name": "Restart", "cmd_t": "~command", "pl_prs": "reboot", "en": "true", "uniq_id": "shelly1pm-111111111111-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "config", "dev_cla": "restart"}
2023-10-16 17:54:39.251 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/switch/shelly1pm-111111111111-relay-0/config', 'payload': '{"name": "Relay 0", "cmd_t": "~relay/0/command", "stat_t": "~relay/0", "pl_off": "off", "pl_on": "on", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shelly1pm-111111111111-relay-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.251 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/switch/shelly1pm-111111111111-relay-0/config {"name": "Relay 0", "cmd_t": "~relay/0/command", "stat_t": "~relay/0", "pl_off": "off", "pl_on": "on", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shelly1pm-111111111111-relay-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/"}
2023-10-16 17:54:39.259 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/light/shelly1pm-111111111111-relay-0/config', 'payload': '', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.259 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/light/shelly1pm-111111111111-relay-0/config 
2023-10-16 17:54:39.261 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/fan/shelly1pm-111111111111-relay-0/config', 'payload': '', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.261 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/fan/shelly1pm-111111111111-relay-0/config 
2023-10-16 17:54:39.264 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-power-0/config', 'payload': '{"name": "Power 0", "stat_t": "~relay/0/power", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shelly1pm-111111111111-relay-power-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "sug_dsp_prc": 1, "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.264 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-power-0/config {"name": "Power 0", "stat_t": "~relay/0/power", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shelly1pm-111111111111-relay-power-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "sug_dsp_prc": 1, "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W"}
2023-10-16 17:54:39.267 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-energy-0/config', 'payload': '{"name": "Energy 0", "stat_t": "~relay/0/energy", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shelly1pm-111111111111-relay-energy-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "sug_dsp_prc": 1, "dev_cla": "energy", "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{value|float/60}}"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.267 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-energy-0/config {"name": "Energy 0", "stat_t": "~relay/0/energy", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shelly1pm-111111111111-relay-energy-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "sug_dsp_prc": 1, "dev_cla": "energy", "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{value|float/60}}"}
2023-10-16 17:54:39.269 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shelly1pm-111111111111-overpower-0/config', 'payload': '{"name": "Overpower 0", "stat_t": "~relay/0", "en": "true", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shelly1pm-111111111111-overpower-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{%if value==\'overpower\'%}ON{%else%}OFF{%endif%}", "dev_cla": "problem", "json_attr_t": "~overpower/0/overpower_value", "json_attr_tpl": "{{{\'overpower_value\':value}|tojson}}"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.269 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-111111111111-overpower-0/config {"name": "Overpower 0", "stat_t": "~relay/0", "en": "true", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shelly1pm-111111111111-overpower-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{%if value=='overpower'%}ON{%else%}OFF{%endif%}", "dev_cla": "problem", "json_attr_t": "~overpower/0/overpower_value", "json_attr_tpl": "{{{'overpower_value':value}|tojson}}"}
2023-10-16 17:54:39.270 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-rssi/config', 'payload': '{"name": "WiFi signal", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-rssi", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{%if value_json.wifi_sta.rssi!=0%}{{value_json.wifi_sta.rssi}}{%endif%}", "icon": "mdi:wifi", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.270 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-rssi/config {"name": "WiFi signal", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-rssi", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{%if value_json.wifi_sta.rssi!=0%}{{value_json.wifi_sta.rssi}}{%endif%}", "icon": "mdi:wifi", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:39.276 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-ssid/config', 'payload': '{"name": "SSID", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-ssid", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ssid}}", "icon": "mdi:wifi-settings", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.276 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-ssid/config {"name": "SSID", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-ssid", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ssid}}", "icon": "mdi:wifi-settings", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:39.278 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-uptime/config', 'payload': '{"name": "Last restart", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-uptime", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "dev_cla": "timestamp", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.279 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-uptime/config {"name": "Last restart", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-uptime", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "dev_cla": "timestamp", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:39.281 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-ip/config', 'payload': '{"name": "IP address", "stat_t": "~announce", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-ip", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.ip}}", "icon": "mdi:ip-outline", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.281 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-ip/config {"name": "IP address", "stat_t": "~announce", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-ip", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.ip}}", "icon": "mdi:ip-outline", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:39.286 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-temperature/config', 'payload': '{"name": "Temperature", "stat_t": "~temperature", "frc_upd": "false", "en": "true", "uniq_id": "shelly1pm-111111111111-temperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "sug_dsp_prc": 1, "ent_cat": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "°C", "val_tpl": "{%if is_number(value) and -100<value|int<900%}{{value}}{%endif%}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.286 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-temperature/config {"name": "Temperature", "stat_t": "~temperature", "frc_upd": "false", "en": "true", "uniq_id": "shelly1pm-111111111111-temperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "sug_dsp_prc": 1, "ent_cat": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "°C", "val_tpl": "{%if is_number(value) and -100<value|int<900%}{{value}}{%endif%}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:39.289 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-temperature_status/config', 'payload': '{"name": "Temperature status", "stat_t": "~temperature_status", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-temperature_status", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value|lower}}", "icon": "mdi:thermometer-alert", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.289 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-temperature_status/config {"name": "Temperature status", "stat_t": "~temperature_status", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-temperature_status", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value|lower}}", "icon": "mdi:thermometer-alert", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:39.292 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shelly1pm-111111111111-input-0/button_release/config', 'payload': '{"atype": "trigger", "t": "shellies/shelly1pm-111111111111/input/0", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "type": "button_short_release", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.292 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shelly1pm-111111111111-input-0/button_release/config {"atype": "trigger", "t": "shellies/shelly1pm-111111111111/input/0", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "type": "button_short_release", "stype": "button_1"}
2023-10-16 17:54:39.297 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shelly1pm-111111111111-input-0/button_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shelly1pm-111111111111/input_event/0", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "type": "button_long_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.297 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shelly1pm-111111111111-input-0/button_long_press/config {"atype": "trigger", "t": "shellies/shelly1pm-111111111111/input_event/0", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "type": "button_long_press", "stype": "button_1"}
2023-10-16 17:54:39.305 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shelly1pm-111111111111-input-0/button_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shelly1pm-111111111111/input_event/0", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "type": "button_short_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.305 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shelly1pm-111111111111-input-0/button_short_press/config {"atype": "trigger", "t": "shellies/shelly1pm-111111111111/input_event/0", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "type": "button_short_press", "stype": "button_1"}
2023-10-16 17:54:39.308 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/event/shelly1pm-111111111111-input-0/config', 'payload': '{"name": "Button 0", "stat_t": "~input_event/0", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{\'event_type\':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shelly1pm-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.308 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/event/shelly1pm-111111111111-input-0/config {"name": "Button 0", "stat_t": "~input_event/0", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{'event_type':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shelly1pm-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/"}
2023-10-16 17:54:39.312 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-ext-temperature-0/config', 'payload': '', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.312 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-ext-temperature-0/config 
2023-10-16 17:54:39.315 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-ext-temperature-1/config', 'payload': '', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.316 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-ext-temperature-1/config 
2023-10-16 17:54:39.320 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-ext-temperature-2/config', 'payload': '', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.320 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-ext-temperature-2/config 
2023-10-16 17:54:39.325 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-ext-humidity-0/config', 'payload': '', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.325 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-ext-humidity-0/config 
2023-10-16 17:54:39.328 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shelly1pm-111111111111-overtemperature/config', 'payload': '{"name": "Overtemperature", "stat_t": "~overtemperature", "en": "true", "uniq_id": "shelly1pm-111111111111-overtemperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.328 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-111111111111-overtemperature/config {"name": "Overtemperature", "stat_t": "~overtemperature", "en": "true", "uniq_id": "shelly1pm-111111111111-overtemperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}
2023-10-16 17:54:39.331 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shelly1pm-111111111111-input-0/config', 'payload': '{"name": "Input 0", "stat_t": "~input/0", "en": "false", "uniq_id": "shelly1pm-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.331 DEBUG (SyncWorker_11) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-111111111111-input-0/config {"name": "Input 0", "stat_t": "~input/0", "en": "false", "uniq_id": "shelly1pm-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:39.347 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Running automation actions
2023-10-16 17:54:39.347 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Executing step call service
2023-10-16 17:54:39.704 INFO (SyncWorker_12) [homeassistant.components.python_script] Executing shellies_discovery.py: {'id': 'shellydimmer2-111111111111', 'mac': '111111111111', 'fw_ver': '20230913-114008/v1.14.0-gcb84623', 'model': 'SHDM-2', 'mode': '', 'host': '192.168.0.140'}
2023-10-16 17:54:39.705 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] id: shellydimmer2-111111111111, mac: 111111111111, fw_ver: 20230913-114008/v1.14.0-gcb84623, model: SHDM-2
2023-10-16 17:54:39.705 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/update/shellydimmer2-111111111111-firmware/config', 'payload': '{"name": "Firmware", "stat_t": "~info", "val_tpl": "{{value_json[\'update\'].old_version}}", "l_ver_t": "~info", "l_ver_tpl": "{%if value_json[\'update\'].new_version%}{{value_json[\'update\'].new_version}}{%else%}{{value_json[\'update\'].old_version}}{%endif%}", "ent_pic": "https://brands.home-assistant.io/_/shelly/icon.png", "rel_u": "https://shelly-api-docs.shelly.cloud/gen1/#changelog", "tit": "Firmware", "dev_cla": "firmware", "en": "true", "uniq_id": "shellydimmer2-111111111111-firmware", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "cmd_t": "~command", "pl_inst": "update_fw", "ent_cat": "diagnostic"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.705 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/update/shellydimmer2-111111111111-firmware/config {"name": "Firmware", "stat_t": "~info", "val_tpl": "{{value_json['update'].old_version}}", "l_ver_t": "~info", "l_ver_tpl": "{%if value_json['update'].new_version%}{{value_json['update'].new_version}}{%else%}{{value_json['update'].old_version}}{%endif%}", "ent_pic": "https://brands.home-assistant.io/_/shelly/icon.png", "rel_u": "https://shelly-api-docs.shelly.cloud/gen1/#changelog", "tit": "Firmware", "dev_cla": "firmware", "en": "true", "uniq_id": "shellydimmer2-111111111111-firmware", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "cmd_t": "~command", "pl_inst": "update_fw", "ent_cat": "diagnostic"}
2023-10-16 17:54:39.707 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/button/shellydimmer2-111111111111-restart/config', 'payload': '{"name": "Restart", "cmd_t": "~command", "pl_prs": "reboot", "en": "true", "uniq_id": "shellydimmer2-111111111111-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "config", "dev_cla": "restart"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.707 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/button/shellydimmer2-111111111111-restart/config {"name": "Restart", "cmd_t": "~command", "pl_prs": "reboot", "en": "true", "uniq_id": "shellydimmer2-111111111111-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "config", "dev_cla": "restart"}
2023-10-16 17:54:39.711 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-ip/config', 'payload': '{"name": "IP address", "stat_t": "~announce", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-ip", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.ip}}", "icon": "mdi:ip-outline", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.711 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-ip/config {"name": "IP address", "stat_t": "~announce", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-ip", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.ip}}", "icon": "mdi:ip-outline", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:39.715 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-rssi/config', 'payload': '{"name": "WiFi signal", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-rssi", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{%if value_json.wifi_sta.rssi!=0%}{{value_json.wifi_sta.rssi}}{%endif%}", "icon": "mdi:wifi", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.715 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-rssi/config {"name": "WiFi signal", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-rssi", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{%if value_json.wifi_sta.rssi!=0%}{{value_json.wifi_sta.rssi}}{%endif%}", "icon": "mdi:wifi", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:39.719 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-ssid/config', 'payload': '{"name": "SSID", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-ssid", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ssid}}", "icon": "mdi:wifi-settings", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.719 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-ssid/config {"name": "SSID", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-ssid", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ssid}}", "icon": "mdi:wifi-settings", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:39.720 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-temperature/config', 'payload': '{"name": "Temperature", "stat_t": "~temperature", "frc_upd": "false", "en": "true", "uniq_id": "shellydimmer2-111111111111-temperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "ent_cat": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "°C", "val_tpl": "{%if is_number(value) and -100<value|int<900%}{{value}}{%endif%}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.720 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-temperature/config {"name": "Temperature", "stat_t": "~temperature", "frc_upd": "false", "en": "true", "uniq_id": "shellydimmer2-111111111111-temperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "ent_cat": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "°C", "val_tpl": "{%if is_number(value) and -100<value|int<900%}{{value}}{%endif%}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:39.734 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-uptime/config', 'payload': '{"name": "Last restart", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-uptime", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "dev_cla": "timestamp", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.734 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-uptime/config {"name": "Last restart", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-uptime", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "dev_cla": "timestamp", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:39.736 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellydimmer2-111111111111-input-0/button_release/config', 'payload': '{"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input/0", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_release", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.737 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellydimmer2-111111111111-input-0/button_release/config {"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input/0", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_release", "stype": "button_1"}
2023-10-16 17:54:39.739 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellydimmer2-111111111111-input-0/button_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/0", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_long_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.739 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellydimmer2-111111111111-input-0/button_long_press/config {"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/0", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_long_press", "stype": "button_1"}
2023-10-16 17:54:39.743 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellydimmer2-111111111111-input-0/button_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/0", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.743 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellydimmer2-111111111111-input-0/button_short_press/config {"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/0", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_press", "stype": "button_1"}
2023-10-16 17:54:39.747 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/event/shellydimmer2-111111111111-input-0/config', 'payload': '{"name": "Button 0", "stat_t": "~input_event/0", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{\'event_type\':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellydimmer2-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.747 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/event/shellydimmer2-111111111111-input-0/config {"name": "Button 0", "stat_t": "~input_event/0", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{'event_type':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellydimmer2-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/"}
2023-10-16 17:54:39.748 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellydimmer2-111111111111-input-1/button_release/config', 'payload': '{"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input/1", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_release", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.748 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellydimmer2-111111111111-input-1/button_release/config {"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input/1", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_release", "stype": "button_2"}
2023-10-16 17:54:39.759 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellydimmer2-111111111111-input-1/button_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/1", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_long_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.759 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellydimmer2-111111111111-input-1/button_long_press/config {"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/1", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_long_press", "stype": "button_2"}
2023-10-16 17:54:39.772 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellydimmer2-111111111111-input-1/button_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/1", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.772 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellydimmer2-111111111111-input-1/button_short_press/config {"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/1", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_press", "stype": "button_2"}
2023-10-16 17:54:39.774 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/event/shellydimmer2-111111111111-input-1/config', 'payload': '{"name": "Button 1", "stat_t": "~input_event/1", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{\'event_type\':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellydimmer2-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.774 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/event/shellydimmer2-111111111111-input-1/config {"name": "Button 1", "stat_t": "~input_event/1", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{'event_type':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellydimmer2-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/"}
2023-10-16 17:54:39.778 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellydimmer2-111111111111-overtemperature/config', 'payload': '{"name": "Overtemperature", "stat_t": "~overtemperature", "en": "true", "uniq_id": "shellydimmer2-111111111111-overtemperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.778 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-111111111111-overtemperature/config {"name": "Overtemperature", "stat_t": "~overtemperature", "en": "true", "uniq_id": "shellydimmer2-111111111111-overtemperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}
2023-10-16 17:54:39.783 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellydimmer2-111111111111-overload/config', 'payload': '{"name": "Overload", "stat_t": "~overload", "en": "false", "uniq_id": "shellydimmer2-111111111111-overload", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "pl_on": 1, "pl_off": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.783 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-111111111111-overload/config {"name": "Overload", "stat_t": "~overload", "en": "false", "uniq_id": "shellydimmer2-111111111111-overload", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "pl_on": 1, "pl_off": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}
2023-10-16 17:54:39.785 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellydimmer2-111111111111-loaderror/config', 'payload': '{"name": "Loaderror", "stat_t": "~loaderror", "en": "false", "uniq_id": "shellydimmer2-111111111111-loaderror", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "pl_on": 1, "pl_off": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.785 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-111111111111-loaderror/config {"name": "Loaderror", "stat_t": "~loaderror", "en": "false", "uniq_id": "shellydimmer2-111111111111-loaderror", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "pl_on": 1, "pl_off": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}
2023-10-16 17:54:39.788 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellydimmer2-111111111111-input-0/config', 'payload': '{"name": "Input 0", "stat_t": "~input/0", "en": "false", "uniq_id": "shellydimmer2-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.788 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-111111111111-input-0/config {"name": "Input 0", "stat_t": "~input/0", "en": "false", "uniq_id": "shellydimmer2-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:39.790 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellydimmer2-111111111111-input-1/config', 'payload': '{"name": "Input 1", "stat_t": "~input/1", "en": "false", "uniq_id": "shellydimmer2-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.790 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-111111111111-input-1/config {"name": "Input 1", "stat_t": "~input/1", "en": "false", "uniq_id": "shellydimmer2-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:39.792 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/light/shellydimmer2-111111111111-0/config', 'payload': '{"schema": "template", "name": "Light 0", "cmd_t": "~light/0/set", "stat_t": "~light/0/status", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "cmd_on_tpl": "{\\"turn\\":\\"on\\"{%if brightness is defined%},\\"brightness\\":{{brightness|float|multiply(0.3922)|round}}{%endif%}{%if transition is defined%},\\"transition\\":{{min(transition|multiply(1000), 5000)}}{%endif%}}", "cmd_off_tpl": "{\\"turn\\":\\"off\\"{%if transition is defined%},\\"transition\\":{{min(transition|multiply(1000),5000)}}{%endif%}}", "stat_tpl": "{%if value_json.ison%}on{%else%}off{%endif%}", "bri_tpl": "{{value_json.brightness|float|multiply(2.55)|round}}", "uniq_id": "shellydimmer2-111111111111-light-0", "qos": "0", "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.792 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/light/shellydimmer2-111111111111-0/config {"schema": "template", "name": "Light 0", "cmd_t": "~light/0/set", "stat_t": "~light/0/status", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "cmd_on_tpl": "{\"turn\":\"on\"{%if brightness is defined%},\"brightness\":{{brightness|float|multiply(0.3922)|round}}{%endif%}{%if transition is defined%},\"transition\":{{min(transition|multiply(1000), 5000)}}{%endif%}}", "cmd_off_tpl": "{\"turn\":\"off\"{%if transition is defined%},\"transition\":{{min(transition|multiply(1000),5000)}}{%endif%}}", "stat_tpl": "{%if value_json.ison%}on{%else%}off{%endif%}", "bri_tpl": "{{value_json.brightness|float|multiply(2.55)|round}}", "uniq_id": "shellydimmer2-111111111111-light-0", "qos": "0", "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/"}
2023-10-16 17:54:39.797 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-white-power-0/config', 'payload': '{"name": "Power 0", "stat_t": "~light/0/power", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shellydimmer2-111111111111-white-power-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.797 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-white-power-0/config {"name": "Power 0", "stat_t": "~light/0/power", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shellydimmer2-111111111111-white-power-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W"}
2023-10-16 17:54:39.799 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-white-energy-0/config', 'payload': '{"name": "Energy 0", "stat_t": "~light/0/energy", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shellydimmer2-111111111111-white-energy-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "dev_cla": "energy", "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{value|float/60}}"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.799 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-white-energy-0/config {"name": "Energy 0", "stat_t": "~light/0/energy", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shellydimmer2-111111111111-white-energy-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "dev_cla": "energy", "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{value|float/60}}"}
2023-10-16 17:54:39.804 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-white-overpower_value-0/config', 'payload': '{"name": "Overpower value 0", "stat_t": "~light/0/overpower_value", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-white-overpower_value-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "unit_of_meas": "W"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.804 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-white-overpower_value-0/config {"name": "Overpower value 0", "stat_t": "~light/0/overpower_value", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-white-overpower_value-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "unit_of_meas": "W"}
2023-10-16 17:54:39.806 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/number/shellydimmer2-111111111111-0-brightness/config', 'payload': '{"name": "Brightness 0", "cmd_t": "~light/0/set", "cmd_tpl": "{\\"brightness\\":{{value|float|round}}}", "max": 100, "min": 0, "step": 1, "stat_t": "~light/0/status", "val_tpl": "{{value_json.brightness}}", "unit_of_meas": "%", "en": "true", "uniq_id": "shellydimmer2-111111111111-brightness-0", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "icon": "mdi:brightness-percent"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:39.806 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/number/shellydimmer2-111111111111-0-brightness/config {"name": "Brightness 0", "cmd_t": "~light/0/set", "cmd_tpl": "{\"brightness\":{{value|float|round}}}", "max": 100, "min": 0, "step": 1, "stat_t": "~light/0/status", "val_tpl": "{{value_json.brightness}}", "unit_of_meas": "%", "en": "true", "uniq_id": "shellydimmer2-111111111111-brightness-0", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "icon": "mdi:brightness-percent"}
2023-10-16 17:54:44.425 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Running automation actions
2023-10-16 17:54:44.426 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Executing step call service
2023-10-16 17:54:44.787 INFO (SyncWorker_1) [homeassistant.components.python_script] Executing shellies_discovery.py: {'id': 'shellyix3-111111111111', 'mac': '111111111111', 'fw_ver': '20230913-114336/v1.14.0-gcb84623', 'model': 'SHIX3-1', 'mode': '', 'host': '192.168.0.102'}
2023-10-16 17:54:44.787 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] id: shellyix3-111111111111, mac: 111111111111, fw_ver: 20230913-114336/v1.14.0-gcb84623, model: SHIX3-1
2023-10-16 17:54:44.788 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/update/shellyix3-111111111111-firmware/config', 'payload': '{"name": "Firmware", "stat_t": "~info", "val_tpl": "{{value_json[\'update\'].old_version}}", "l_ver_t": "~info", "l_ver_tpl": "{%if value_json[\'update\'].new_version%}{{value_json[\'update\'].new_version}}{%else%}{{value_json[\'update\'].old_version}}{%endif%}", "ent_pic": "https://brands.home-assistant.io/_/shelly/icon.png", "rel_u": "https://shelly-api-docs.shelly.cloud/gen1/#changelog", "tit": "Firmware", "dev_cla": "firmware", "en": "true", "uniq_id": "shellyix3-111111111111-firmware", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "cmd_t": "~command", "pl_inst": "update_fw", "ent_cat": "diagnostic"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:44.788 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/update/shellyix3-111111111111-firmware/config {"name": "Firmware", "stat_t": "~info", "val_tpl": "{{value_json['update'].old_version}}", "l_ver_t": "~info", "l_ver_tpl": "{%if value_json['update'].new_version%}{{value_json['update'].new_version}}{%else%}{{value_json['update'].old_version}}{%endif%}", "ent_pic": "https://brands.home-assistant.io/_/shelly/icon.png", "rel_u": "https://shelly-api-docs.shelly.cloud/gen1/#changelog", "tit": "Firmware", "dev_cla": "firmware", "en": "true", "uniq_id": "shellyix3-111111111111-firmware", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "cmd_t": "~command", "pl_inst": "update_fw", "ent_cat": "diagnostic"}
2023-10-16 17:54:44.828 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/button/shellyix3-111111111111-restart/config', 'payload': '{"name": "Restart", "cmd_t": "~command", "pl_prs": "reboot", "en": "true", "uniq_id": "shellyix3-111111111111-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "config", "dev_cla": "restart"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:44.829 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/button/shellyix3-111111111111-restart/config {"name": "Restart", "cmd_t": "~command", "pl_prs": "reboot", "en": "true", "uniq_id": "shellyix3-111111111111-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "config", "dev_cla": "restart"}
2023-10-16 17:54:44.853 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellyix3-111111111111-rssi/config', 'payload': '{"name": "WiFi signal", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-rssi", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{%if value_json.wifi_sta.rssi!=0%}{{value_json.wifi_sta.rssi}}{%endif%}", "icon": "mdi:wifi", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:44.853 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellyix3-111111111111-rssi/config {"name": "WiFi signal", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-rssi", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{%if value_json.wifi_sta.rssi!=0%}{{value_json.wifi_sta.rssi}}{%endif%}", "icon": "mdi:wifi", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:44.877 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellyix3-111111111111-ssid/config', 'payload': '{"name": "SSID", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-ssid", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ssid}}", "icon": "mdi:wifi-settings", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:44.877 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellyix3-111111111111-ssid/config {"name": "SSID", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-ssid", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ssid}}", "icon": "mdi:wifi-settings", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:44.904 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellyix3-111111111111-uptime/config', 'payload': '{"name": "Last restart", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-uptime", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "dev_cla": "timestamp", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:44.904 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellyix3-111111111111-uptime/config {"name": "Last restart", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-uptime", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "dev_cla": "timestamp", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:44.934 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellyix3-111111111111-ip/config', 'payload': '{"name": "IP address", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-ip", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ip}}", "icon": "mdi:ip-outline", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:44.934 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellyix3-111111111111-ip/config {"name": "IP address", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-ip", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ip}}", "icon": "mdi:ip-outline", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:44.970 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellyix3-111111111111-temperature_status/config', 'payload': '{"name": "Temperature status", "stat_t": "~temperature_status", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-temperature_status", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value|lower}}", "icon": "mdi:thermometer-alert", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:44.970 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellyix3-111111111111-temperature_status/config {"name": "Temperature status", "stat_t": "~temperature_status", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-temperature_status", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value|lower}}", "icon": "mdi:thermometer-alert", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:44.994 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_release/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input/0", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_release", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:44.994 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_release/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input/0", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_release", "stype": "button_1"}
2023-10-16 17:54:45.028 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.028 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_long_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_press", "stype": "button_1"}
2023-10-16 17:54:45.053 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.053 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_short_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_press", "stype": "button_1"}
2023-10-16 17:54:45.071 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_double_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "SS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_double_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.072 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_double_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "SS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_double_press", "stype": "button_1"}
2023-10-16 17:54:45.095 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_triple_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "SSS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_triple_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.095 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_triple_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "SSS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_triple_press", "stype": "button_1"}
2023-10-16 17:54:45.120 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_short_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "SL", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_long_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.120 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_short_long_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "SL", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_long_press", "stype": "button_1"}
2023-10-16 17:54:45.150 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_long_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "LS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_short_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.150 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_long_short_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "LS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_short_press", "stype": "button_1"}
2023-10-16 17:54:45.170 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/event/shellyix3-111111111111-input-0/config', 'payload': '{"name": "Button 0", "stat_t": "~input_event/0", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{\'event_type\':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyix3-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.170 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/event/shellyix3-111111111111-input-0/config {"name": "Button 0", "stat_t": "~input_event/0", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{'event_type':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyix3-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/"}
2023-10-16 17:54:45.185 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_release/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input/1", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_release", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.185 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_release/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input/1", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_release", "stype": "button_2"}
2023-10-16 17:54:45.187 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.188 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_long_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_press", "stype": "button_2"}
2023-10-16 17:54:45.193 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.193 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_short_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_press", "stype": "button_2"}
2023-10-16 17:54:45.195 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_double_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "SS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_double_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.195 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_double_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "SS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_double_press", "stype": "button_2"}
2023-10-16 17:54:45.198 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_triple_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "SSS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_triple_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.198 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_triple_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "SSS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_triple_press", "stype": "button_2"}
2023-10-16 17:54:45.204 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_short_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "SL", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_long_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.204 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_short_long_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "SL", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_long_press", "stype": "button_2"}
2023-10-16 17:54:45.205 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_long_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "LS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_short_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.206 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_long_short_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "LS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_short_press", "stype": "button_2"}
2023-10-16 17:54:45.209 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/event/shellyix3-111111111111-input-1/config', 'payload': '{"name": "Button 1", "stat_t": "~input_event/1", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{\'event_type\':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyix3-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.209 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/event/shellyix3-111111111111-input-1/config {"name": "Button 1", "stat_t": "~input_event/1", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{'event_type':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyix3-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/"}
2023-10-16 17:54:45.214 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_release/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input/2", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_release", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.214 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_release/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input/2", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_release", "stype": "button_3"}
2023-10-16 17:54:45.217 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_press", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.217 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_long_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_press", "stype": "button_3"}
2023-10-16 17:54:45.221 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_press", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.222 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_short_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_press", "stype": "button_3"}
2023-10-16 17:54:45.223 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_double_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "SS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_double_press", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.223 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_double_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "SS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_double_press", "stype": "button_3"}
2023-10-16 17:54:45.227 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_triple_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "SSS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_triple_press", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.227 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_triple_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "SSS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_triple_press", "stype": "button_3"}
2023-10-16 17:54:45.229 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_short_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "SL", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_long_press", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.229 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_short_long_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "SL", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_long_press", "stype": "button_3"}
2023-10-16 17:54:45.234 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_long_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "LS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_short_press", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.235 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_long_short_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "LS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_short_press", "stype": "button_3"}
2023-10-16 17:54:45.236 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/event/shellyix3-111111111111-input-2/config', 'payload': '{"name": "Button 2", "stat_t": "~input_event/2", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{\'event_type\':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyix3-111111111111-input-2", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.236 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/event/shellyix3-111111111111-input-2/config {"name": "Button 2", "stat_t": "~input_event/2", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{'event_type':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyix3-111111111111-input-2", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/"}
2023-10-16 17:54:45.238 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellyix3-111111111111-input-0/config', 'payload': '{"name": "Input 0", "stat_t": "~input/0", "en": "false", "uniq_id": "shellyix3-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.238 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellyix3-111111111111-input-0/config {"name": "Input 0", "stat_t": "~input/0", "en": "false", "uniq_id": "shellyix3-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:45.242 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellyix3-111111111111-input-1/config', 'payload': '{"name": "Input 1", "stat_t": "~input/1", "en": "false", "uniq_id": "shellyix3-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.242 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellyix3-111111111111-input-1/config {"name": "Input 1", "stat_t": "~input/1", "en": "false", "uniq_id": "shellyix3-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:45.244 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellyix3-111111111111-input-2/config', 'payload': '{"name": "Input 2", "stat_t": "~input/2", "en": "false", "uniq_id": "shellyix3-111111111111-input-2", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.244 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellyix3-111111111111-input-2/config {"name": "Input 2", "stat_t": "~input/2", "en": "false", "uniq_id": "shellyix3-111111111111-input-2", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:45.252 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Running automation actions
2023-10-16 17:54:45.252 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Executing step call service
2023-10-16 17:54:45.602 INFO (SyncWorker_10) [homeassistant.components.python_script] Executing shellies_discovery.py: {'id': 'shelly1pm-111111111111', 'mac': '111111111111', 'fw_ver': '20230503-101420/v1.13.0-g9aed950', 'model': 'SHSW-PM', 'mode': '', 'host': '192.168.0.100'}
2023-10-16 17:54:45.603 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] id: shelly1pm-111111111111, mac: 111111111111, fw_ver: 20230503-101420/v1.13.0-g9aed950, model: SHSW-PM
2023-10-16 17:54:45.603 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/button/shelly1pm-111111111111-restart/config', 'payload': '{"name": "Restart", "cmd_t": "~command", "pl_prs": "reboot", "en": "true", "uniq_id": "shelly1pm-111111111111-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "config", "dev_cla": "restart"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.603 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/button/shelly1pm-111111111111-restart/config {"name": "Restart", "cmd_t": "~command", "pl_prs": "reboot", "en": "true", "uniq_id": "shelly1pm-111111111111-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "config", "dev_cla": "restart"}
2023-10-16 17:54:45.609 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/switch/shelly1pm-111111111111-relay-0/config', 'payload': '{"name": "Relay 0", "cmd_t": "~relay/0/command", "stat_t": "~relay/0", "pl_off": "off", "pl_on": "on", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shelly1pm-111111111111-relay-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.610 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/switch/shelly1pm-111111111111-relay-0/config {"name": "Relay 0", "cmd_t": "~relay/0/command", "stat_t": "~relay/0", "pl_off": "off", "pl_on": "on", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shelly1pm-111111111111-relay-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/"}
2023-10-16 17:54:45.613 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/light/shelly1pm-111111111111-relay-0/config', 'payload': '', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.613 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/light/shelly1pm-111111111111-relay-0/config 
2023-10-16 17:54:45.616 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/fan/shelly1pm-111111111111-relay-0/config', 'payload': '', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.616 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/fan/shelly1pm-111111111111-relay-0/config 
2023-10-16 17:54:45.618 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-power-0/config', 'payload': '{"name": "Power 0", "stat_t": "~relay/0/power", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shelly1pm-111111111111-relay-power-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "sug_dsp_prc": 1, "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.618 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-power-0/config {"name": "Power 0", "stat_t": "~relay/0/power", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shelly1pm-111111111111-relay-power-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "sug_dsp_prc": 1, "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W"}
2023-10-16 17:54:45.623 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-energy-0/config', 'payload': '{"name": "Energy 0", "stat_t": "~relay/0/energy", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shelly1pm-111111111111-relay-energy-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "sug_dsp_prc": 1, "dev_cla": "energy", "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{value|float/60}}"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.623 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-energy-0/config {"name": "Energy 0", "stat_t": "~relay/0/energy", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shelly1pm-111111111111-relay-energy-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "sug_dsp_prc": 1, "dev_cla": "energy", "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{value|float/60}}"}
2023-10-16 17:54:45.629 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shelly1pm-111111111111-overpower-0/config', 'payload': '{"name": "Overpower 0", "stat_t": "~relay/0", "en": "true", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shelly1pm-111111111111-overpower-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{%if value==\'overpower\'%}ON{%else%}OFF{%endif%}", "dev_cla": "problem", "json_attr_t": "~overpower/0/overpower_value", "json_attr_tpl": "{{{\'overpower_value\':value}|tojson}}"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.629 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-111111111111-overpower-0/config {"name": "Overpower 0", "stat_t": "~relay/0", "en": "true", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shelly1pm-111111111111-overpower-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{%if value=='overpower'%}ON{%else%}OFF{%endif%}", "dev_cla": "problem", "json_attr_t": "~overpower/0/overpower_value", "json_attr_tpl": "{{{'overpower_value':value}|tojson}}"}
2023-10-16 17:54:45.633 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-rssi/config', 'payload': '{"name": "WiFi signal", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-rssi", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{%if value_json.wifi_sta.rssi!=0%}{{value_json.wifi_sta.rssi}}{%endif%}", "icon": "mdi:wifi", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.633 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-rssi/config {"name": "WiFi signal", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-rssi", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{%if value_json.wifi_sta.rssi!=0%}{{value_json.wifi_sta.rssi}}{%endif%}", "icon": "mdi:wifi", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
hros commented 11 months ago

debug log (cont)

2023-10-16 17:54:45.637 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-ssid/config', 'payload': '{"name": "SSID", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-ssid", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ssid}}", "icon": "mdi:wifi-settings", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.637 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-ssid/config {"name": "SSID", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-ssid", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ssid}}", "icon": "mdi:wifi-settings", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:45.640 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-uptime/config', 'payload': '{"name": "Last restart", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-uptime", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "dev_cla": "timestamp", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.640 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-uptime/config {"name": "Last restart", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-uptime", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "dev_cla": "timestamp", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:45.643 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-ip/config', 'payload': '{"name": "IP address", "stat_t": "~announce", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-ip", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.ip}}", "icon": "mdi:ip-outline", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.643 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-ip/config {"name": "IP address", "stat_t": "~announce", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-ip", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.ip}}", "icon": "mdi:ip-outline", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:45.646 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-temperature/config', 'payload': '{"name": "Temperature", "stat_t": "~temperature", "frc_upd": "false", "en": "true", "uniq_id": "shelly1pm-111111111111-temperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "sug_dsp_prc": 1, "ent_cat": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "°C", "val_tpl": "{%if is_number(value) and -100<value|int<900%}{{value}}{%endif%}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.646 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-temperature/config {"name": "Temperature", "stat_t": "~temperature", "frc_upd": "false", "en": "true", "uniq_id": "shelly1pm-111111111111-temperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "sug_dsp_prc": 1, "ent_cat": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "°C", "val_tpl": "{%if is_number(value) and -100<value|int<900%}{{value}}{%endif%}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:45.651 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-temperature_status/config', 'payload': '{"name": "Temperature status", "stat_t": "~temperature_status", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-temperature_status", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value|lower}}", "icon": "mdi:thermometer-alert", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.651 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-temperature_status/config {"name": "Temperature status", "stat_t": "~temperature_status", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-temperature_status", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value|lower}}", "icon": "mdi:thermometer-alert", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:45.653 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shelly1pm-111111111111-input-0/button_release/config', 'payload': '{"atype": "trigger", "t": "shellies/shelly1pm-111111111111/input/0", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "type": "button_short_release", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.654 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shelly1pm-111111111111-input-0/button_release/config {"atype": "trigger", "t": "shellies/shelly1pm-111111111111/input/0", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "type": "button_short_release", "stype": "button_1"}
2023-10-16 17:54:45.657 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shelly1pm-111111111111-input-0/button_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shelly1pm-111111111111/input_event/0", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "type": "button_long_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.657 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shelly1pm-111111111111-input-0/button_long_press/config {"atype": "trigger", "t": "shellies/shelly1pm-111111111111/input_event/0", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "type": "button_long_press", "stype": "button_1"}
2023-10-16 17:54:45.661 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shelly1pm-111111111111-input-0/button_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shelly1pm-111111111111/input_event/0", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "type": "button_short_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.661 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shelly1pm-111111111111-input-0/button_short_press/config {"atype": "trigger", "t": "shellies/shelly1pm-111111111111/input_event/0", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "type": "button_short_press", "stype": "button_1"}
2023-10-16 17:54:45.671 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/event/shelly1pm-111111111111-input-0/config', 'payload': '{"name": "Button 0", "stat_t": "~input_event/0", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{\'event_type\':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shelly1pm-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.672 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/event/shelly1pm-111111111111-input-0/config {"name": "Button 0", "stat_t": "~input_event/0", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{'event_type':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shelly1pm-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/"}
2023-10-16 17:54:45.674 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-ext-temperature-0/config', 'payload': '', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.674 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-ext-temperature-0/config 
2023-10-16 17:54:45.677 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-ext-temperature-1/config', 'payload': '', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.677 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-ext-temperature-1/config 
2023-10-16 17:54:45.687 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-ext-temperature-2/config', 'payload': '', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.687 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-ext-temperature-2/config 
2023-10-16 17:54:45.696 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-ext-humidity-0/config', 'payload': '', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.697 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-ext-humidity-0/config 
2023-10-16 17:54:45.699 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shelly1pm-111111111111-overtemperature/config', 'payload': '{"name": "Overtemperature", "stat_t": "~overtemperature", "en": "true", "uniq_id": "shelly1pm-111111111111-overtemperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.699 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-111111111111-overtemperature/config {"name": "Overtemperature", "stat_t": "~overtemperature", "en": "true", "uniq_id": "shelly1pm-111111111111-overtemperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}
2023-10-16 17:54:45.704 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shelly1pm-111111111111-input-0/config', 'payload': '{"name": "Input 0", "stat_t": "~input/0", "en": "false", "uniq_id": "shelly1pm-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:45.705 DEBUG (SyncWorker_10) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-111111111111-input-0/config {"name": "Input 0", "stat_t": "~input/0", "en": "false", "uniq_id": "shelly1pm-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:45.717 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Running automation actions
2023-10-16 17:54:45.718 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Executing step call service
2023-10-16 17:54:46.036 INFO (SyncWorker_12) [homeassistant.components.python_script] Executing shellies_discovery.py: {'id': 'shellydimmer2-111111111111', 'mac': '111111111111', 'fw_ver': '20230913-114008/v1.14.0-gcb84623', 'model': 'SHDM-2', 'mode': '', 'host': '192.168.0.140'}
2023-10-16 17:54:46.037 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] id: shellydimmer2-111111111111, mac: 111111111111, fw_ver: 20230913-114008/v1.14.0-gcb84623, model: SHDM-2
2023-10-16 17:54:46.037 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/update/shellydimmer2-111111111111-firmware/config', 'payload': '{"name": "Firmware", "stat_t": "~info", "val_tpl": "{{value_json[\'update\'].old_version}}", "l_ver_t": "~info", "l_ver_tpl": "{%if value_json[\'update\'].new_version%}{{value_json[\'update\'].new_version}}{%else%}{{value_json[\'update\'].old_version}}{%endif%}", "ent_pic": "https://brands.home-assistant.io/_/shelly/icon.png", "rel_u": "https://shelly-api-docs.shelly.cloud/gen1/#changelog", "tit": "Firmware", "dev_cla": "firmware", "en": "true", "uniq_id": "shellydimmer2-111111111111-firmware", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "cmd_t": "~command", "pl_inst": "update_fw", "ent_cat": "diagnostic"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:46.037 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/update/shellydimmer2-111111111111-firmware/config {"name": "Firmware", "stat_t": "~info", "val_tpl": "{{value_json['update'].old_version}}", "l_ver_t": "~info", "l_ver_tpl": "{%if value_json['update'].new_version%}{{value_json['update'].new_version}}{%else%}{{value_json['update'].old_version}}{%endif%}", "ent_pic": "https://brands.home-assistant.io/_/shelly/icon.png", "rel_u": "https://shelly-api-docs.shelly.cloud/gen1/#changelog", "tit": "Firmware", "dev_cla": "firmware", "en": "true", "uniq_id": "shellydimmer2-111111111111-firmware", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "cmd_t": "~command", "pl_inst": "update_fw", "ent_cat": "diagnostic"}
2023-10-16 17:54:46.042 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/button/shellydimmer2-111111111111-restart/config', 'payload': '{"name": "Restart", "cmd_t": "~command", "pl_prs": "reboot", "en": "true", "uniq_id": "shellydimmer2-111111111111-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "config", "dev_cla": "restart"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:46.043 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/button/shellydimmer2-111111111111-restart/config {"name": "Restart", "cmd_t": "~command", "pl_prs": "reboot", "en": "true", "uniq_id": "shellydimmer2-111111111111-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "config", "dev_cla": "restart"}
2023-10-16 17:54:46.046 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-ip/config', 'payload': '{"name": "IP address", "stat_t": "~announce", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-ip", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.ip}}", "icon": "mdi:ip-outline", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:46.046 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-ip/config {"name": "IP address", "stat_t": "~announce", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-ip", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.ip}}", "icon": "mdi:ip-outline", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:46.049 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-rssi/config', 'payload': '{"name": "WiFi signal", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-rssi", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{%if value_json.wifi_sta.rssi!=0%}{{value_json.wifi_sta.rssi}}{%endif%}", "icon": "mdi:wifi", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:46.050 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-rssi/config {"name": "WiFi signal", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-rssi", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{%if value_json.wifi_sta.rssi!=0%}{{value_json.wifi_sta.rssi}}{%endif%}", "icon": "mdi:wifi", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:46.054 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-ssid/config', 'payload': '{"name": "SSID", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-ssid", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ssid}}", "icon": "mdi:wifi-settings", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:46.054 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-ssid/config {"name": "SSID", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-ssid", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ssid}}", "icon": "mdi:wifi-settings", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:46.057 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-temperature/config', 'payload': '{"name": "Temperature", "stat_t": "~temperature", "frc_upd": "false", "en": "true", "uniq_id": "shellydimmer2-111111111111-temperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "ent_cat": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "°C", "val_tpl": "{%if is_number(value) and -100<value|int<900%}{{value}}{%endif%}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:46.057 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-temperature/config {"name": "Temperature", "stat_t": "~temperature", "frc_upd": "false", "en": "true", "uniq_id": "shellydimmer2-111111111111-temperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "ent_cat": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "°C", "val_tpl": "{%if is_number(value) and -100<value|int<900%}{{value}}{%endif%}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:46.064 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-uptime/config', 'payload': '{"name": "Last restart", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-uptime", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "dev_cla": "timestamp", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:46.064 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-uptime/config {"name": "Last restart", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-uptime", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "dev_cla": "timestamp", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:46.066 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellydimmer2-111111111111-input-0/button_release/config', 'payload': '{"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input/0", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_release", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:46.066 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellydimmer2-111111111111-input-0/button_release/config {"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input/0", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_release", "stype": "button_1"}
2023-10-16 17:54:46.069 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellydimmer2-111111111111-input-0/button_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/0", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_long_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:46.069 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellydimmer2-111111111111-input-0/button_long_press/config {"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/0", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_long_press", "stype": "button_1"}
2023-10-16 17:54:46.082 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellydimmer2-111111111111-input-0/button_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/0", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:46.082 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellydimmer2-111111111111-input-0/button_short_press/config {"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/0", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_press", "stype": "button_1"}
2023-10-16 17:54:46.086 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/event/shellydimmer2-111111111111-input-0/config', 'payload': '{"name": "Button 0", "stat_t": "~input_event/0", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{\'event_type\':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellydimmer2-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:46.087 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/event/shellydimmer2-111111111111-input-0/config {"name": "Button 0", "stat_t": "~input_event/0", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{'event_type':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellydimmer2-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/"}
2023-10-16 17:54:46.088 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellydimmer2-111111111111-input-1/button_release/config', 'payload': '{"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input/1", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_release", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:46.088 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellydimmer2-111111111111-input-1/button_release/config {"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input/1", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_release", "stype": "button_2"}
2023-10-16 17:54:46.099 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellydimmer2-111111111111-input-1/button_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/1", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_long_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:46.099 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellydimmer2-111111111111-input-1/button_long_press/config {"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/1", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_long_press", "stype": "button_2"}
2023-10-16 17:54:46.101 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellydimmer2-111111111111-input-1/button_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/1", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:46.102 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellydimmer2-111111111111-input-1/button_short_press/config {"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/1", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_press", "stype": "button_2"}
2023-10-16 17:54:46.103 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/event/shellydimmer2-111111111111-input-1/config', 'payload': '{"name": "Button 1", "stat_t": "~input_event/1", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{\'event_type\':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellydimmer2-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:46.103 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/event/shellydimmer2-111111111111-input-1/config {"name": "Button 1", "stat_t": "~input_event/1", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{'event_type':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellydimmer2-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/"}
2023-10-16 17:54:46.107 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellydimmer2-111111111111-overtemperature/config', 'payload': '{"name": "Overtemperature", "stat_t": "~overtemperature", "en": "true", "uniq_id": "shellydimmer2-111111111111-overtemperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:46.107 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-111111111111-overtemperature/config {"name": "Overtemperature", "stat_t": "~overtemperature", "en": "true", "uniq_id": "shellydimmer2-111111111111-overtemperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}
2023-10-16 17:54:46.110 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellydimmer2-111111111111-overload/config', 'payload': '{"name": "Overload", "stat_t": "~overload", "en": "false", "uniq_id": "shellydimmer2-111111111111-overload", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "pl_on": 1, "pl_off": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:46.110 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-111111111111-overload/config {"name": "Overload", "stat_t": "~overload", "en": "false", "uniq_id": "shellydimmer2-111111111111-overload", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "pl_on": 1, "pl_off": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}
2023-10-16 17:54:46.112 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellydimmer2-111111111111-loaderror/config', 'payload': '{"name": "Loaderror", "stat_t": "~loaderror", "en": "false", "uniq_id": "shellydimmer2-111111111111-loaderror", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "pl_on": 1, "pl_off": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:46.112 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-111111111111-loaderror/config {"name": "Loaderror", "stat_t": "~loaderror", "en": "false", "uniq_id": "shellydimmer2-111111111111-loaderror", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "pl_on": 1, "pl_off": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}
2023-10-16 17:54:46.117 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellydimmer2-111111111111-input-0/config', 'payload': '{"name": "Input 0", "stat_t": "~input/0", "en": "false", "uniq_id": "shellydimmer2-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:46.117 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-111111111111-input-0/config {"name": "Input 0", "stat_t": "~input/0", "en": "false", "uniq_id": "shellydimmer2-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:46.121 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellydimmer2-111111111111-input-1/config', 'payload': '{"name": "Input 1", "stat_t": "~input/1", "en": "false", "uniq_id": "shellydimmer2-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 17:54:46.121 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-111111111111-input-1/config {"name": "Input 1", "stat_t": "~input/1", "en": "false", "uniq_id": "shellydimmer2-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 17:54:46.125 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/light/shellydimmer2-111111111111-0/config', 'payload': '{"schema": "template", "name": "Light 0", "cmd_t": "~light/0/set", "stat_t": "~light/0/status", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "cmd_on_tpl": "{\\"turn\\":\\"on\\"{%if brightness is defined%},\\"brightness\\":{{brightness|float|multiply(0.3922)|round}}{%endif%}{%if transition is defined%},\\"transition\\":{{min(transition|multiply(1000), 5000)}}{%endif%}}", "cmd_off_tpl": "{\\"turn\\":\\"off\\"{%if transition is defined%},\\"transition\\":{{min(transition|multiply(1000),5000)}}{%endif%}}", "stat_tpl": "{%if value_json.ison%}on{%else%}off{%endif%}", "bri_tpl": "{{value_json.brightness|float|multiply(2.55)|round}}", "uniq_id": "shellydimmer2-111111111111-light-0", "qos": "0", "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:46.125 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/light/shellydimmer2-111111111111-0/config {"schema": "template", "name": "Light 0", "cmd_t": "~light/0/set", "stat_t": "~light/0/status", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "cmd_on_tpl": "{\"turn\":\"on\"{%if brightness is defined%},\"brightness\":{{brightness|float|multiply(0.3922)|round}}{%endif%}{%if transition is defined%},\"transition\":{{min(transition|multiply(1000), 5000)}}{%endif%}}", "cmd_off_tpl": "{\"turn\":\"off\"{%if transition is defined%},\"transition\":{{min(transition|multiply(1000),5000)}}{%endif%}}", "stat_tpl": "{%if value_json.ison%}on{%else%}off{%endif%}", "bri_tpl": "{{value_json.brightness|float|multiply(2.55)|round}}", "uniq_id": "shellydimmer2-111111111111-light-0", "qos": "0", "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/"}
2023-10-16 17:54:46.128 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-white-power-0/config', 'payload': '{"name": "Power 0", "stat_t": "~light/0/power", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shellydimmer2-111111111111-white-power-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:46.128 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-white-power-0/config {"name": "Power 0", "stat_t": "~light/0/power", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shellydimmer2-111111111111-white-power-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W"}
2023-10-16 17:54:46.132 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-white-energy-0/config', 'payload': '{"name": "Energy 0", "stat_t": "~light/0/energy", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shellydimmer2-111111111111-white-energy-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "dev_cla": "energy", "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{value|float/60}}"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:46.132 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-white-energy-0/config {"name": "Energy 0", "stat_t": "~light/0/energy", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shellydimmer2-111111111111-white-energy-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "dev_cla": "energy", "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{value|float/60}}"}
2023-10-16 17:54:46.135 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-white-overpower_value-0/config', 'payload': '{"name": "Overpower value 0", "stat_t": "~light/0/overpower_value", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-white-overpower_value-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "unit_of_meas": "W"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:46.135 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-white-overpower_value-0/config {"name": "Overpower value 0", "stat_t": "~light/0/overpower_value", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-white-overpower_value-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "unit_of_meas": "W"}
2023-10-16 17:54:46.138 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/number/shellydimmer2-111111111111-0-brightness/config', 'payload': '{"name": "Brightness 0", "cmd_t": "~light/0/set", "cmd_tpl": "{\\"brightness\\":{{value|float|round}}}", "max": 100, "min": 0, "step": 1, "stat_t": "~light/0/status", "val_tpl": "{{value_json.brightness}}", "unit_of_meas": "%", "en": "true", "uniq_id": "shellydimmer2-111111111111-brightness-0", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "icon": "mdi:brightness-percent"}', 'retain': True, 'qos': 0}
2023-10-16 17:54:46.138 DEBUG (SyncWorker_12) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/number/shellydimmer2-111111111111-0-brightness/config {"name": "Brightness 0", "cmd_t": "~light/0/set", "cmd_tpl": "{\"brightness\":{{value|float|round}}}", "max": 100, "min": 0, "step": 1, "stat_t": "~light/0/status", "val_tpl": "{{value_json.brightness}}", "unit_of_meas": "%", "en": "true", "uniq_id": "shellydimmer2-111111111111-brightness-0", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "icon": "mdi:brightness-percent"}
2023-10-16 17:55:20.399 INFO (SyncWorker_3) [homeassistant.components.python_script] Executing shellies_discovery_gen2.py: {}
2023-10-16 17:55:20.400 ERROR (SyncWorker_3) [homeassistant.components.python_script.shellies_discovery_gen2.py] 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)  # noqa: S102
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "shellies_discovery_gen2.py", line 2552, in <module>
  File "/usr/local/lib/python3.11/site-packages/RestrictedPython/Eval.py", line 28, in default_guarded_getitem
    return ob[index]
           ~~^^^^^^^
KeyError: 'id'
2023-10-16 17:55:32.497 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Running automation actions
2023-10-16 17:55:32.498 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeating sequence: Iteration 1 of 1 with item: 'shellyplus1pm-80646fe5d2c8'
2023-10-16 17:55:32.498 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeat at step 1: Running automation actions
2023-10-16 17:55:32.499 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeat at step 1: Executing step call service
2023-10-16 17:55:35.412 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Running automation actions
2023-10-16 17:55:35.413 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeating sequence: Iteration 1 of 1 with item: 'shellyplus1pm-80646fe5d2c8'
2023-10-16 17:55:35.413 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeat at step 1: Running automation actions
2023-10-16 17:55:35.413 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeat at step 1: Executing step call service
2023-10-16 17:55:38.897 INFO (SyncWorker_0) [homeassistant.components.python_script] Executing shellies_discovery_gen2.py: {}
2023-10-16 17:55:38.898 ERROR (SyncWorker_0) [homeassistant.components.python_script.shellies_discovery_gen2.py] 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)  # noqa: S102
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "shellies_discovery_gen2.py", line 2552, in <module>
  File "/usr/local/lib/python3.11/site-packages/RestrictedPython/Eval.py", line 28, in default_guarded_getitem
    return ob[index]
           ~~^^^^^^^
KeyError: 'id'
2023-10-16 18:00:00.468 INFO (MainThread) [homeassistant.components.automation.shellies_announce] Shellies Announce: Running automation actions
2023-10-16 18:00:00.469 INFO (MainThread) [homeassistant.components.automation.shellies_announce] Shellies Announce: Executing step call service
2023-10-16 18:00:00.504 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Running automation actions
2023-10-16 18:00:00.504 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Executing step call service
2023-10-16 18:00:00.894 INFO (SyncWorker_8) [homeassistant.components.python_script] Executing shellies_discovery.py: {'id': 'shellyix3-111111111111', 'mac': '111111111111', 'fw_ver': '20230913-114336/v1.14.0-gcb84623', 'model': 'SHIX3-1', 'mode': '', 'host': '192.168.0.102'}
2023-10-16 18:00:00.895 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] id: shellyix3-111111111111, mac: 111111111111, fw_ver: 20230913-114336/v1.14.0-gcb84623, model: SHIX3-1
2023-10-16 18:00:00.895 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/update/shellyix3-111111111111-firmware/config', 'payload': '{"name": "Firmware", "stat_t": "~info", "val_tpl": "{{value_json[\'update\'].old_version}}", "l_ver_t": "~info", "l_ver_tpl": "{%if value_json[\'update\'].new_version%}{{value_json[\'update\'].new_version}}{%else%}{{value_json[\'update\'].old_version}}{%endif%}", "ent_pic": "https://brands.home-assistant.io/_/shelly/icon.png", "rel_u": "https://shelly-api-docs.shelly.cloud/gen1/#changelog", "tit": "Firmware", "dev_cla": "firmware", "en": "true", "uniq_id": "shellyix3-111111111111-firmware", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "cmd_t": "~command", "pl_inst": "update_fw", "ent_cat": "diagnostic"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:00.895 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/update/shellyix3-111111111111-firmware/config {"name": "Firmware", "stat_t": "~info", "val_tpl": "{{value_json['update'].old_version}}", "l_ver_t": "~info", "l_ver_tpl": "{%if value_json['update'].new_version%}{{value_json['update'].new_version}}{%else%}{{value_json['update'].old_version}}{%endif%}", "ent_pic": "https://brands.home-assistant.io/_/shelly/icon.png", "rel_u": "https://shelly-api-docs.shelly.cloud/gen1/#changelog", "tit": "Firmware", "dev_cla": "firmware", "en": "true", "uniq_id": "shellyix3-111111111111-firmware", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "cmd_t": "~command", "pl_inst": "update_fw", "ent_cat": "diagnostic"}
2023-10-16 18:00:00.897 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/button/shellyix3-111111111111-restart/config', 'payload': '{"name": "Restart", "cmd_t": "~command", "pl_prs": "reboot", "en": "true", "uniq_id": "shellyix3-111111111111-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "config", "dev_cla": "restart"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:00.897 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/button/shellyix3-111111111111-restart/config {"name": "Restart", "cmd_t": "~command", "pl_prs": "reboot", "en": "true", "uniq_id": "shellyix3-111111111111-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "config", "dev_cla": "restart"}
2023-10-16 18:00:00.904 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellyix3-111111111111-rssi/config', 'payload': '{"name": "WiFi signal", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-rssi", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{%if value_json.wifi_sta.rssi!=0%}{{value_json.wifi_sta.rssi}}{%endif%}", "icon": "mdi:wifi", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 18:00:00.904 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellyix3-111111111111-rssi/config {"name": "WiFi signal", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-rssi", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{%if value_json.wifi_sta.rssi!=0%}{{value_json.wifi_sta.rssi}}{%endif%}", "icon": "mdi:wifi", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 18:00:00.907 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellyix3-111111111111-ssid/config', 'payload': '{"name": "SSID", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-ssid", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ssid}}", "icon": "mdi:wifi-settings", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 18:00:00.907 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellyix3-111111111111-ssid/config {"name": "SSID", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-ssid", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ssid}}", "icon": "mdi:wifi-settings", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 18:00:00.912 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellyix3-111111111111-uptime/config', 'payload': '{"name": "Last restart", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-uptime", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "dev_cla": "timestamp", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 18:00:00.912 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellyix3-111111111111-uptime/config {"name": "Last restart", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-uptime", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "dev_cla": "timestamp", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 18:00:00.926 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellyix3-111111111111-ip/config', 'payload': '{"name": "IP address", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-ip", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ip}}", "icon": "mdi:ip-outline", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 18:00:00.926 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellyix3-111111111111-ip/config {"name": "IP address", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-ip", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ip}}", "icon": "mdi:ip-outline", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 18:00:00.930 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellyix3-111111111111-temperature_status/config', 'payload': '{"name": "Temperature status", "stat_t": "~temperature_status", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-temperature_status", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value|lower}}", "icon": "mdi:thermometer-alert", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 18:00:00.931 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellyix3-111111111111-temperature_status/config {"name": "Temperature status", "stat_t": "~temperature_status", "frc_upd": "false", "en": "false", "uniq_id": "shellyix3-111111111111-temperature_status", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value|lower}}", "icon": "mdi:thermometer-alert", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 18:00:00.938 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_release/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input/0", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_release", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:00.938 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_release/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input/0", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_release", "stype": "button_1"}
2023-10-16 18:00:00.946 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:00.946 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_long_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_press", "stype": "button_1"}
2023-10-16 18:00:00.949 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:00.949 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_short_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_press", "stype": "button_1"}
2023-10-16 18:00:00.956 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_double_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "SS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_double_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:00.956 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_double_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "SS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_double_press", "stype": "button_1"}
2023-10-16 18:00:00.960 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_triple_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "SSS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_triple_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:00.960 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_triple_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "SSS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_triple_press", "stype": "button_1"}
2023-10-16 18:00:00.963 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_short_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "SL", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_long_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:00.963 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_short_long_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "SL", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_long_press", "stype": "button_1"}
2023-10-16 18:00:00.967 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-0/button_long_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "LS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_short_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:00.967 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-0/button_long_short_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/0", "pl": "LS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_short_press", "stype": "button_1"}
2023-10-16 18:00:00.968 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/event/shellyix3-111111111111-input-0/config', 'payload': '{"name": "Button 0", "stat_t": "~input_event/0", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{\'event_type\':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyix3-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:00.969 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/event/shellyix3-111111111111-input-0/config {"name": "Button 0", "stat_t": "~input_event/0", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{'event_type':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyix3-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/"}
2023-10-16 18:00:00.973 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_release/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input/1", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_release", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:00.973 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_release/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input/1", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_release", "stype": "button_2"}
2023-10-16 18:00:00.974 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:00.974 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_long_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_press", "stype": "button_2"}
2023-10-16 18:00:00.976 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:00.976 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_short_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_press", "stype": "button_2"}
2023-10-16 18:00:00.979 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_double_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "SS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_double_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:00.979 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_double_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "SS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_double_press", "stype": "button_2"}
2023-10-16 18:00:00.982 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_triple_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "SSS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_triple_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:00.982 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_triple_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "SSS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_triple_press", "stype": "button_2"}
2023-10-16 18:00:00.986 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_short_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "SL", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_long_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:00.986 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_short_long_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "SL", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_long_press", "stype": "button_2"}
2023-10-16 18:00:00.989 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-1/button_long_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "LS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_short_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:00.989 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-1/button_long_short_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/1", "pl": "LS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_short_press", "stype": "button_2"}
2023-10-16 18:00:00.992 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/event/shellyix3-111111111111-input-1/config', 'payload': '{"name": "Button 1", "stat_t": "~input_event/1", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{\'event_type\':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyix3-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:00.992 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/event/shellyix3-111111111111-input-1/config {"name": "Button 1", "stat_t": "~input_event/1", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{'event_type':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyix3-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/"}
2023-10-16 18:00:00.994 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_release/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input/2", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_release", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:00.994 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_release/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input/2", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_release", "stype": "button_3"}
2023-10-16 18:00:00.995 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_press", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:00.995 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_long_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_press", "stype": "button_3"}
2023-10-16 18:00:00.999 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_press", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.000 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_short_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_press", "stype": "button_3"}
2023-10-16 18:00:01.002 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_double_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "SS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_double_press", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.003 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_double_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "SS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_double_press", "stype": "button_3"}
2023-10-16 18:00:01.006 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_triple_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "SSS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_triple_press", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.006 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_triple_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "SSS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_triple_press", "stype": "button_3"}
2023-10-16 18:00:01.009 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_short_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "SL", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_long_press", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.009 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_short_long_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "SL", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_short_long_press", "stype": "button_3"}
2023-10-16 18:00:01.013 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellyix3-111111111111-input-2/button_long_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "LS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_short_press", "stype": "button_3"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.013 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellyix3-111111111111-input-2/button_long_short_press/config {"atype": "trigger", "t": "shellies/shellyix3-111111111111/input_event/2", "pl": "LS", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "type": "button_long_short_press", "stype": "button_3"}
2023-10-16 18:00:01.016 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/event/shellyix3-111111111111-input-2/config', 'payload': '{"name": "Button 2", "stat_t": "~input_event/2", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{\'event_type\':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyix3-111111111111-input-2", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.016 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/event/shellyix3-111111111111-input-2/config {"name": "Button 2", "stat_t": "~input_event/2", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{'event_type':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellyix3-111111111111-input-2", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/"}
2023-10-16 18:00:01.020 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellyix3-111111111111-input-0/config', 'payload': '{"name": "Input 0", "stat_t": "~input/0", "en": "false", "uniq_id": "shellyix3-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.020 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellyix3-111111111111-input-0/config {"name": "Input 0", "stat_t": "~input/0", "en": "false", "uniq_id": "shellyix3-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 18:00:01.024 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellyix3-111111111111-input-1/config', 'payload': '{"name": "Input 1", "stat_t": "~input/1", "en": "false", "uniq_id": "shellyix3-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.024 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellyix3-111111111111-input-1/config {"name": "Input 1", "stat_t": "~input/1", "en": "false", "uniq_id": "shellyix3-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 18:00:01.029 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellyix3-111111111111-input-2/config', 'payload': '{"name": "Input 2", "stat_t": "~input/2", "en": "false", "uniq_id": "shellyix3-111111111111-input-2", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.029 DEBUG (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellyix3-111111111111-input-2/config {"name": "Input 2", "stat_t": "~input/2", "en": "false", "uniq_id": "shellyix3-111111111111-input-2", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly i3 111111111111", "mdl": "Shelly i3", "sw": "20230913-114336/v1.14.0-gcb84623", "hw": "gen1 (SHIX3-1)", "mf": "Allterco Robotics", "cu": "http://192.168.0.102/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellyix3-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 18:00:01.040 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Running automation actions
2023-10-16 18:00:01.040 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Executing step call service
2023-10-16 18:00:01.375 INFO (SyncWorker_5) [homeassistant.components.python_script] Executing shellies_discovery.py: {'id': 'shelly1pm-111111111111', 'mac': '111111111111', 'fw_ver': '20230503-101420/v1.13.0-g9aed950', 'model': 'SHSW-PM', 'mode': '', 'host': '192.168.0.100'}
2023-10-16 18:00:01.376 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] id: shelly1pm-111111111111, mac: 111111111111, fw_ver: 20230503-101420/v1.13.0-g9aed950, model: SHSW-PM
2023-10-16 18:00:01.376 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/button/shelly1pm-111111111111-restart/config', 'payload': '{"name": "Restart", "cmd_t": "~command", "pl_prs": "reboot", "en": "true", "uniq_id": "shelly1pm-111111111111-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "config", "dev_cla": "restart"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.376 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/button/shelly1pm-111111111111-restart/config {"name": "Restart", "cmd_t": "~command", "pl_prs": "reboot", "en": "true", "uniq_id": "shelly1pm-111111111111-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "config", "dev_cla": "restart"}
2023-10-16 18:00:01.379 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/switch/shelly1pm-111111111111-relay-0/config', 'payload': '{"name": "Relay 0", "cmd_t": "~relay/0/command", "stat_t": "~relay/0", "pl_off": "off", "pl_on": "on", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shelly1pm-111111111111-relay-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.379 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/switch/shelly1pm-111111111111-relay-0/config {"name": "Relay 0", "cmd_t": "~relay/0/command", "stat_t": "~relay/0", "pl_off": "off", "pl_on": "on", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shelly1pm-111111111111-relay-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/"}
2023-10-16 18:00:01.382 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/light/shelly1pm-111111111111-relay-0/config', 'payload': '', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.382 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/light/shelly1pm-111111111111-relay-0/config 
2023-10-16 18:00:01.385 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/fan/shelly1pm-111111111111-relay-0/config', 'payload': '', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.385 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/fan/shelly1pm-111111111111-relay-0/config 
2023-10-16 18:00:01.388 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-power-0/config', 'payload': '{"name": "Power 0", "stat_t": "~relay/0/power", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shelly1pm-111111111111-relay-power-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "sug_dsp_prc": 1, "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.388 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-power-0/config {"name": "Power 0", "stat_t": "~relay/0/power", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shelly1pm-111111111111-relay-power-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "sug_dsp_prc": 1, "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W"}
2023-10-16 18:00:01.391 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-energy-0/config', 'payload': '{"name": "Energy 0", "stat_t": "~relay/0/energy", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shelly1pm-111111111111-relay-energy-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "sug_dsp_prc": 1, "dev_cla": "energy", "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{value|float/60}}"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.391 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-energy-0/config {"name": "Energy 0", "stat_t": "~relay/0/energy", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shelly1pm-111111111111-relay-energy-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "sug_dsp_prc": 1, "dev_cla": "energy", "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{value|float/60}}"}
2023-10-16 18:00:01.394 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shelly1pm-111111111111-overpower-0/config', 'payload': '{"name": "Overpower 0", "stat_t": "~relay/0", "en": "true", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shelly1pm-111111111111-overpower-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{%if value==\'overpower\'%}ON{%else%}OFF{%endif%}", "dev_cla": "problem", "json_attr_t": "~overpower/0/overpower_value", "json_attr_tpl": "{{{\'overpower_value\':value}|tojson}}"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.394 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-111111111111-overpower-0/config {"name": "Overpower 0", "stat_t": "~relay/0", "en": "true", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shelly1pm-111111111111-overpower-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{%if value=='overpower'%}ON{%else%}OFF{%endif%}", "dev_cla": "problem", "json_attr_t": "~overpower/0/overpower_value", "json_attr_tpl": "{{{'overpower_value':value}|tojson}}"}
2023-10-16 18:00:01.398 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-rssi/config', 'payload': '{"name": "WiFi signal", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-rssi", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{%if value_json.wifi_sta.rssi!=0%}{{value_json.wifi_sta.rssi}}{%endif%}", "icon": "mdi:wifi", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.398 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-rssi/config {"name": "WiFi signal", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-rssi", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{%if value_json.wifi_sta.rssi!=0%}{{value_json.wifi_sta.rssi}}{%endif%}", "icon": "mdi:wifi", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 18:00:01.404 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-ssid/config', 'payload': '{"name": "SSID", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-ssid", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ssid}}", "icon": "mdi:wifi-settings", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.405 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-ssid/config {"name": "SSID", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-ssid", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ssid}}", "icon": "mdi:wifi-settings", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 18:00:01.409 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-uptime/config', 'payload': '{"name": "Last restart", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-uptime", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "dev_cla": "timestamp", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.409 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-uptime/config {"name": "Last restart", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-uptime", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "dev_cla": "timestamp", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 18:00:01.410 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-ip/config', 'payload': '{"name": "IP address", "stat_t": "~announce", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-ip", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.ip}}", "icon": "mdi:ip-outline", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.410 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-ip/config {"name": "IP address", "stat_t": "~announce", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-ip", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.ip}}", "icon": "mdi:ip-outline", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 18:00:01.414 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-temperature/config', 'payload': '{"name": "Temperature", "stat_t": "~temperature", "frc_upd": "false", "en": "true", "uniq_id": "shelly1pm-111111111111-temperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "sug_dsp_prc": 1, "ent_cat": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "°C", "val_tpl": "{%if is_number(value) and -100<value|int<900%}{{value}}{%endif%}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.414 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-temperature/config {"name": "Temperature", "stat_t": "~temperature", "frc_upd": "false", "en": "true", "uniq_id": "shelly1pm-111111111111-temperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "sug_dsp_prc": 1, "ent_cat": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "°C", "val_tpl": "{%if is_number(value) and -100<value|int<900%}{{value}}{%endif%}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 18:00:01.418 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-temperature_status/config', 'payload': '{"name": "Temperature status", "stat_t": "~temperature_status", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-temperature_status", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value|lower}}", "icon": "mdi:thermometer-alert", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.418 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-temperature_status/config {"name": "Temperature status", "stat_t": "~temperature_status", "frc_upd": "false", "en": "false", "uniq_id": "shelly1pm-111111111111-temperature_status", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value|lower}}", "icon": "mdi:thermometer-alert", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 18:00:01.421 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shelly1pm-111111111111-input-0/button_release/config', 'payload': '{"atype": "trigger", "t": "shellies/shelly1pm-111111111111/input/0", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "type": "button_short_release", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.421 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shelly1pm-111111111111-input-0/button_release/config {"atype": "trigger", "t": "shellies/shelly1pm-111111111111/input/0", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "type": "button_short_release", "stype": "button_1"}
2023-10-16 18:00:01.425 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shelly1pm-111111111111-input-0/button_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shelly1pm-111111111111/input_event/0", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "type": "button_long_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.425 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shelly1pm-111111111111-input-0/button_long_press/config {"atype": "trigger", "t": "shellies/shelly1pm-111111111111/input_event/0", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "type": "button_long_press", "stype": "button_1"}
2023-10-16 18:00:01.427 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shelly1pm-111111111111-input-0/button_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shelly1pm-111111111111/input_event/0", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "type": "button_short_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.427 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shelly1pm-111111111111-input-0/button_short_press/config {"atype": "trigger", "t": "shellies/shelly1pm-111111111111/input_event/0", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "type": "button_short_press", "stype": "button_1"}
2023-10-16 18:00:01.430 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/event/shelly1pm-111111111111-input-0/config', 'payload': '{"name": "Button 0", "stat_t": "~input_event/0", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{\'event_type\':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shelly1pm-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.430 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/event/shelly1pm-111111111111-input-0/config {"name": "Button 0", "stat_t": "~input_event/0", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{'event_type':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shelly1pm-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/"}
2023-10-16 18:00:01.435 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-ext-temperature-0/config', 'payload': '', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.435 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-ext-temperature-0/config 
2023-10-16 18:00:01.438 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-ext-temperature-1/config', 'payload': '', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.438 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-ext-temperature-1/config 
2023-10-16 18:00:01.443 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-ext-temperature-2/config', 'payload': '', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.443 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-ext-temperature-2/config 
2023-10-16 18:00:01.446 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-111111111111-ext-humidity-0/config', 'payload': '', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.446 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-111111111111-ext-humidity-0/config 
2023-10-16 18:00:01.449 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shelly1pm-111111111111-overtemperature/config', 'payload': '{"name": "Overtemperature", "stat_t": "~overtemperature", "en": "true", "uniq_id": "shelly1pm-111111111111-overtemperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.449 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-111111111111-overtemperature/config {"name": "Overtemperature", "stat_t": "~overtemperature", "en": "true", "uniq_id": "shelly1pm-111111111111-overtemperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "ent_cat": "diagnostic", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}
2023-10-16 18:00:01.451 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shelly1pm-111111111111-input-0/config', 'payload': '{"name": "Input 0", "stat_t": "~input/0", "en": "false", "uniq_id": "shelly1pm-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.452 DEBUG (SyncWorker_5) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-111111111111-input-0/config {"name": "Input 0", "stat_t": "~input/0", "en": "false", "uniq_id": "shelly1pm-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly 1PM 111111111111", "mdl": "Shelly 1PM", "sw": "20230503-101420/v1.13.0-g9aed950", "hw": "gen1 (SHSW-PM)", "mf": "Allterco Robotics", "cu": "http://192.168.0.100/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shelly1pm-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 18:00:01.461 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Running automation actions
2023-10-16 18:00:01.461 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Executing step call service
2023-10-16 18:00:01.808 INFO (SyncWorker_1) [homeassistant.components.python_script] Executing shellies_discovery.py: {'id': 'shellydimmer2-111111111111', 'mac': '111111111111', 'fw_ver': '20230913-114008/v1.14.0-gcb84623', 'model': 'SHDM-2', 'mode': '', 'host': '192.168.0.140'}
2023-10-16 18:00:01.809 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] id: shellydimmer2-111111111111, mac: 111111111111, fw_ver: 20230913-114008/v1.14.0-gcb84623, model: SHDM-2
2023-10-16 18:00:01.809 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/update/shellydimmer2-111111111111-firmware/config', 'payload': '{"name": "Firmware", "stat_t": "~info", "val_tpl": "{{value_json[\'update\'].old_version}}", "l_ver_t": "~info", "l_ver_tpl": "{%if value_json[\'update\'].new_version%}{{value_json[\'update\'].new_version}}{%else%}{{value_json[\'update\'].old_version}}{%endif%}", "ent_pic": "https://brands.home-assistant.io/_/shelly/icon.png", "rel_u": "https://shelly-api-docs.shelly.cloud/gen1/#changelog", "tit": "Firmware", "dev_cla": "firmware", "en": "true", "uniq_id": "shellydimmer2-111111111111-firmware", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "cmd_t": "~command", "pl_inst": "update_fw", "ent_cat": "diagnostic"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.809 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/update/shellydimmer2-111111111111-firmware/config {"name": "Firmware", "stat_t": "~info", "val_tpl": "{{value_json['update'].old_version}}", "l_ver_t": "~info", "l_ver_tpl": "{%if value_json['update'].new_version%}{{value_json['update'].new_version}}{%else%}{{value_json['update'].old_version}}{%endif%}", "ent_pic": "https://brands.home-assistant.io/_/shelly/icon.png", "rel_u": "https://shelly-api-docs.shelly.cloud/gen1/#changelog", "tit": "Firmware", "dev_cla": "firmware", "en": "true", "uniq_id": "shellydimmer2-111111111111-firmware", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "cmd_t": "~command", "pl_inst": "update_fw", "ent_cat": "diagnostic"}
2023-10-16 18:00:01.813 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/button/shellydimmer2-111111111111-restart/config', 'payload': '{"name": "Restart", "cmd_t": "~command", "pl_prs": "reboot", "en": "true", "uniq_id": "shellydimmer2-111111111111-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "config", "dev_cla": "restart"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.813 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/button/shellydimmer2-111111111111-restart/config {"name": "Restart", "cmd_t": "~command", "pl_prs": "reboot", "en": "true", "uniq_id": "shellydimmer2-111111111111-restart", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "config", "dev_cla": "restart"}
2023-10-16 18:00:01.815 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-ip/config', 'payload': '{"name": "IP address", "stat_t": "~announce", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-ip", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.ip}}", "icon": "mdi:ip-outline", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.815 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-ip/config {"name": "IP address", "stat_t": "~announce", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-ip", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.ip}}", "icon": "mdi:ip-outline", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 18:00:01.818 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-rssi/config', 'payload': '{"name": "WiFi signal", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-rssi", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{%if value_json.wifi_sta.rssi!=0%}{{value_json.wifi_sta.rssi}}{%endif%}", "icon": "mdi:wifi", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.818 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-rssi/config {"name": "WiFi signal", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-rssi", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{%if value_json.wifi_sta.rssi!=0%}{{value_json.wifi_sta.rssi}}{%endif%}", "icon": "mdi:wifi", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 18:00:01.829 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-ssid/config', 'payload': '{"name": "SSID", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-ssid", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ssid}}", "icon": "mdi:wifi-settings", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.829 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-ssid/config {"name": "SSID", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-ssid", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "val_tpl": "{{value_json.wifi_sta.ssid}}", "icon": "mdi:wifi-settings", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 18:00:01.832 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-temperature/config', 'payload': '{"name": "Temperature", "stat_t": "~temperature", "frc_upd": "false", "en": "true", "uniq_id": "shellydimmer2-111111111111-temperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "ent_cat": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "°C", "val_tpl": "{%if is_number(value) and -100<value|int<900%}{{value}}{%endif%}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.832 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-temperature/config {"name": "Temperature", "stat_t": "~temperature", "frc_upd": "false", "en": "true", "uniq_id": "shellydimmer2-111111111111-temperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "ent_cat": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "°C", "val_tpl": "{%if is_number(value) and -100<value|int<900%}{{value}}{%endif%}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 18:00:01.837 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-uptime/config', 'payload': '{"name": "Last restart", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-uptime", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "dev_cla": "timestamp", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.837 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-uptime/config {"name": "Last restart", "stat_t": "~info", "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-uptime", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "dev_cla": "timestamp", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 18:00:01.839 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellydimmer2-111111111111-input-0/button_release/config', 'payload': '{"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input/0", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_release", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.840 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellydimmer2-111111111111-input-0/button_release/config {"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input/0", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_release", "stype": "button_1"}
2023-10-16 18:00:01.856 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellydimmer2-111111111111-input-0/button_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/0", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_long_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.856 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellydimmer2-111111111111-input-0/button_long_press/config {"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/0", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_long_press", "stype": "button_1"}
2023-10-16 18:00:01.859 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellydimmer2-111111111111-input-0/button_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/0", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.859 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellydimmer2-111111111111-input-0/button_short_press/config {"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/0", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_press", "stype": "button_1"}
2023-10-16 18:00:01.863 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/event/shellydimmer2-111111111111-input-0/config', 'payload': '{"name": "Button 0", "stat_t": "~input_event/0", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{\'event_type\':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellydimmer2-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.863 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/event/shellydimmer2-111111111111-input-0/config {"name": "Button 0", "stat_t": "~input_event/0", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{'event_type':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellydimmer2-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/"}
2023-10-16 18:00:01.865 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellydimmer2-111111111111-input-1/button_release/config', 'payload': '{"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input/1", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_release", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.865 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellydimmer2-111111111111-input-1/button_release/config {"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input/1", "pl": "0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_release", "stype": "button_2"}
2023-10-16 18:00:01.867 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellydimmer2-111111111111-input-1/button_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/1", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_long_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.867 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellydimmer2-111111111111-input-1/button_long_press/config {"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/1", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_long_press", "stype": "button_2"}
2023-10-16 18:00:01.876 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shellydimmer2-111111111111-input-1/button_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/1", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_press", "stype": "button_2"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.876 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shellydimmer2-111111111111-input-1/button_short_press/config {"atype": "trigger", "t": "shellies/shellydimmer2-111111111111/input_event/1", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "type": "button_short_press", "stype": "button_2"}
2023-10-16 18:00:01.879 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/event/shellydimmer2-111111111111-input-1/config', 'payload': '{"name": "Button 1", "stat_t": "~input_event/1", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{\'event_type\':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellydimmer2-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.879 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/event/shellydimmer2-111111111111-input-1/config {"name": "Button 1", "stat_t": "~input_event/1", "evt_typ": ["SS", "L", "LS", "SL", "S", "SSS"], "val_tpl": "{%if value_json.event%}{{{'event_type':value_json.event}|to_json}}{%endif%}", "dev_cla": "button", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "uniq_id": "shellydimmer2-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/"}
2023-10-16 18:00:01.886 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellydimmer2-111111111111-overtemperature/config', 'payload': '{"name": "Overtemperature", "stat_t": "~overtemperature", "en": "true", "uniq_id": "shellydimmer2-111111111111-overtemperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.887 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-111111111111-overtemperature/config {"name": "Overtemperature", "stat_t": "~overtemperature", "en": "true", "uniq_id": "shellydimmer2-111111111111-overtemperature", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}
2023-10-16 18:00:01.890 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellydimmer2-111111111111-overload/config', 'payload': '{"name": "Overload", "stat_t": "~overload", "en": "false", "uniq_id": "shellydimmer2-111111111111-overload", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "pl_on": 1, "pl_off": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.890 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-111111111111-overload/config {"name": "Overload", "stat_t": "~overload", "en": "false", "uniq_id": "shellydimmer2-111111111111-overload", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "pl_on": 1, "pl_off": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}
2023-10-16 18:00:01.894 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellydimmer2-111111111111-loaderror/config', 'payload': '{"name": "Loaderror", "stat_t": "~loaderror", "en": "false", "uniq_id": "shellydimmer2-111111111111-loaderror", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "pl_on": 1, "pl_off": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.894 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-111111111111-loaderror/config {"name": "Loaderror", "stat_t": "~loaderror", "en": "false", "uniq_id": "shellydimmer2-111111111111-loaderror", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "ent_cat": "diagnostic", "pl_on": 1, "pl_off": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev_cla": "problem"}
2023-10-16 18:00:01.896 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellydimmer2-111111111111-input-0/config', 'payload': '{"name": "Input 0", "stat_t": "~input/0", "en": "false", "uniq_id": "shellydimmer2-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.897 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-111111111111-input-0/config {"name": "Input 0", "stat_t": "~input/0", "en": "false", "uniq_id": "shellydimmer2-111111111111-input-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 18:00:01.904 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shellydimmer2-111111111111-input-1/config', 'payload': '{"name": "Input 1", "stat_t": "~input/1", "en": "false", "uniq_id": "shellydimmer2-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.904 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-111111111111-input-1/config {"name": "Input 1", "stat_t": "~input/1", "en": "false", "uniq_id": "shellydimmer2-111111111111-input-1", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "pl_on": "1", "pl_off": "0", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}]}
2023-10-16 18:00:01.907 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/light/shellydimmer2-111111111111-0/config', 'payload': '{"schema": "template", "name": "Light 0", "cmd_t": "~light/0/set", "stat_t": "~light/0/status", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "cmd_on_tpl": "{\\"turn\\":\\"on\\"{%if brightness is defined%},\\"brightness\\":{{brightness|float|multiply(0.3922)|round}}{%endif%}{%if transition is defined%},\\"transition\\":{{min(transition|multiply(1000), 5000)}}{%endif%}}", "cmd_off_tpl": "{\\"turn\\":\\"off\\"{%if transition is defined%},\\"transition\\":{{min(transition|multiply(1000),5000)}}{%endif%}}", "stat_tpl": "{%if value_json.ison%}on{%else%}off{%endif%}", "bri_tpl": "{{value_json.brightness|float|multiply(2.55)|round}}", "uniq_id": "shellydimmer2-111111111111-light-0", "qos": "0", "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.907 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/light/shellydimmer2-111111111111-0/config {"schema": "template", "name": "Light 0", "cmd_t": "~light/0/set", "stat_t": "~light/0/status", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "cmd_on_tpl": "{\"turn\":\"on\"{%if brightness is defined%},\"brightness\":{{brightness|float|multiply(0.3922)|round}}{%endif%}{%if transition is defined%},\"transition\":{{min(transition|multiply(1000), 5000)}}{%endif%}}", "cmd_off_tpl": "{\"turn\":\"off\"{%if transition is defined%},\"transition\":{{min(transition|multiply(1000),5000)}}{%endif%}}", "stat_tpl": "{%if value_json.ison%}on{%else%}off{%endif%}", "bri_tpl": "{{value_json.brightness|float|multiply(2.55)|round}}", "uniq_id": "shellydimmer2-111111111111-light-0", "qos": "0", "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/"}
2023-10-16 18:00:01.911 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-white-power-0/config', 'payload': '{"name": "Power 0", "stat_t": "~light/0/power", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shellydimmer2-111111111111-white-power-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.911 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-white-power-0/config {"name": "Power 0", "stat_t": "~light/0/power", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shellydimmer2-111111111111-white-power-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W"}
2023-10-16 18:00:01.914 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-white-energy-0/config', 'payload': '{"name": "Energy 0", "stat_t": "~light/0/energy", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shellydimmer2-111111111111-white-energy-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "dev_cla": "energy", "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{value|float/60}}"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.914 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-white-energy-0/config {"name": "Energy 0", "stat_t": "~light/0/energy", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "true", "uniq_id": "shellydimmer2-111111111111-white-energy-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "dev_cla": "energy", "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{value|float/60}}"}
2023-10-16 18:00:01.917 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shellydimmer2-111111111111-white-overpower_value-0/config', 'payload': '{"name": "Overpower value 0", "stat_t": "~light/0/overpower_value", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-white-overpower_value-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "unit_of_meas": "W"}', 'retain': True, 'qos': 0}
2023-10-16 18:00:01.917 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-111111111111-white-overpower_value-0/config {"name": "Overpower value 0", "stat_t": "~light/0/overpower_value", "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "frc_upd": "false", "en": "false", "uniq_id": "shellydimmer2-111111111111-white-overpower_value-0", "qos": 0, "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "sug_dsp_prc": 1, "unit_of_meas": "W"}
2023-10-16 18:00:01.920 DEBUG (SyncWorker_1) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/number/shellydimmer2-111111111111-0-brightness/config', 'payload': '{"name": "Brightness 0", "cmd_t": "~light/0/set", "cmd_tpl": "{\\"brightness\\":{{value|float|round}}}", "max": 100, "min": 0, "step": 1, "stat_t": "~light/0/status", "val_tpl": "{{value_json.brightness}}", "unit_of_meas": "%", "en": "true", "uniq_id": "shellydimmer2-111111111111-brightness-0", "qos": 0, "avty": [{"t": "~online", "pl_avail": "true", "pl_not_avail": "false"}, {"t": "~info", "val_tpl": "{%if value_json.mqtt.connected%}online{%else%}offline{%endif%}"}], "dev": {"cns": [["mac", "11:11:11:11:11:11"]], "name": "Shelly Dimmer 2 111111111111", "mdl": "Shelly Dimmer 2", "sw": "20230913-114008/v1.14.0-gcb84623", "hw": "gen1 (SHDM-2)", "mf": "Allterco Robotics", "cu": "http://192.168.0.140/"}, "o": {"name": "Shellies Discovery", "sw": "4.5.3", "url": "https://github.com/bieniu/ha-shellies-discovery"}, "~": "shellies/shellydimmer2-111111111111/", "icon": "mdi:brightness-percent"}', 'retain': True, 'qos': 0}
bieniu commented 11 months ago

Wait, wait, stop. You're spamming the thread!

hros commented 11 months ago

sorry this was the last portion of the log ;)

bieniu commented 11 months ago

You should always attach the log file.

bieniu commented 11 months ago
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/python_script/__init__.py", line 224, in execute
    exec(compiled.code, restricted_globals)  # noqa: S102
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "shellies_discovery_gen2.py", line 2552, in <module>
  File "/usr/local/lib/python3.11/site-packages/RestrictedPython/Eval.py", line 28, in default_guarded_getitem
    return ob[index]
           ~~^^^^^^^
KeyError: 'id'

Do you run the discovery automation manually?

hros commented 11 months ago

I think I did it once (dev options - call service)

bieniu commented 11 months ago

Did you fix the device ID? shellyplus1pm-111111111111 without any prefix?

hros commented 11 months ago

yes. it has the same value in the MQTT prefix setting in the shelly settings page and in the device_id list in the automation

bieniu commented 11 months ago

Disable automations for shelly discovery gen1, restart HA, run manually announce gen2 automation, wait 5 minutes and attach here the log file.

hros commented 11 months ago
2023-10-16 20:26:28.848 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Running automation actions
2023-10-16 20:26:28.850 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeating sequence: Iteration 1 of 1 with item: 'shellyplus1pm-111111111111'
2023-10-16 20:26:28.850 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Initialized trigger Shellies Announce Gen2
2023-10-16 20:26:28.851 INFO (MainThread) [homeassistant.components.automation.shellies_discovery_gen2] Initialized trigger Shellies Discovery Gen2
2023-10-16 20:26:29.389 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeat at step 1: Running automation actions
2023-10-16 20:26:29.389 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeat at step 1: Executing step call service
2023-10-16 20:30:24.368 INFO (MainThread) [homeassistant.components.automation.shellies_discovery_gen2] Shellies Discovery Gen2: Running automation actions
2023-10-16 20:30:24.368 INFO (MainThread) [homeassistant.components.automation.shellies_discovery_gen2] Shellies Discovery Gen2: Executing step call service
2023-10-16 20:30:24.369 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'payload_json' when rendering '{{ trigger.payload_json.src }}'
2023-10-16 20:30:24.369 ERROR (MainThread) [homeassistant.components.automation.shellies_discovery_gen2] Shellies Discovery Gen2: Error executing script. Error for call_service at pos 1: Error rendering data template: UndefinedError: 'dict object' has no attribute 'payload_json'
2023-10-16 20:30:24.371 ERROR (MainThread) [homeassistant.components.automation.shellies_discovery_gen2] Error while executing automation automation.shellies_discovery_gen2: Error rendering data template: UndefinedError: 'dict object' has no attribute 'payload_json'
2023-10-16 20:30:26.168 INFO (MainThread) [homeassistant.components.automation.shellies_discovery_gen2] Shellies Discovery Gen2: Running automation actions
2023-10-16 20:30:26.168 INFO (MainThread) [homeassistant.components.automation.shellies_discovery_gen2] Shellies Discovery Gen2: Executing step call service
2023-10-16 20:30:26.168 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'payload_json' when rendering '{{ trigger.payload_json.src }}'
2023-10-16 20:30:26.169 ERROR (MainThread) [homeassistant.components.automation.shellies_discovery_gen2] Shellies Discovery Gen2: Error executing script. Error for call_service at pos 1: Error rendering data template: UndefinedError: 'dict object' has no attribute 'payload_json'
2023-10-16 20:30:26.171 ERROR (MainThread) [homeassistant.components.automation.shellies_discovery_gen2] Error while executing automation automation.shellies_discovery_gen2: Error rendering data template: UndefinedError: 'dict object' has no attribute 'payload_json'
bieniu commented 11 months ago

What did the device send to the topic shellies_discovery/rpc?

hros commented 11 months ago

not sure how you meant that I check it. I started MQTT explorer, and ran the "announce gen 2" automation I see:

online=false
rpc={
"id":1, 
"src":"shellies_discovey", 
"method":"Shelly.GetConfig"
}

the "online=false" is worrying... but the Shelly settings, MQTT page shows that the device is connected to the MQTT server

bieniu commented 11 months ago

You've got quite a mess there. This is all wrong. Announce messages should not appear here. Never!

hros commented 11 months ago

You've seen my config files. What do you suggest?

bieniu commented 11 months ago

Configure everything according to the documentation. The data from the topic does not match the configuration you posted here.

bieniu commented 11 months ago

Why the device send online payload to shellies_discovery/rpc topic?

bieniu commented 11 months ago

Change logger configuration to that:

logger:
  default: warning
  logs:
    homeassistant.components.python_script: debug
    homeassistant.components.automation: debug
    homeassistant.components.mqtt: debug

restart HA, run announce gen2, and attach here the whole log file. The file, not its content.

hros commented 11 months ago

Thanks 🙏 should I still leave the gen 1 automations disabled?

bieniu commented 11 months ago

Yes

bieniu commented 11 months ago

Your device ID is shellies/shelly1pm-8CAAB574DB24 but you use shelly1pm-8CAAB574DB24 in the automation configuration. I asked two times about this.

hros commented 11 months ago

are you referring to the settings of the Shelly device? I think you are referring to another device. It is a gen-1 1pm that is installed. It is not the new gen-2 1pm-plus I recently installed (I verified that the id you mention is indeed the gen-1 devices)

bieniu commented 11 months ago

Oops, sorry, my mistake 🤦‍♂️, I looked through the log on the phone and confused the devices.

I think I know where the problem is... the device is not connected to the MQTT broker. This little chain icon should be blue, but in the screenshot it is gray.

obraz

hros commented 11 months ago

🙏 I guess that during one of the changes in the Shelly MQTT page, the password to the server was cleared. I entered the password, restarted HA, and ran the announce_gen2 automation, and the device now shows up in the MQTT integration's device list.

Should I now enable the gen1 automation? In the future, do I just have to add the device's MQTT PREFIX to the automation's device_id list and restart the HA?

One more thing: I want to use only the MQTT integration and not the Shelly integration. Both integrations have recognized the new device. What do you recommend to do to prevent the Shelly integration from discovering devices?

bieniu commented 11 months ago

That was tricky 😀 I’m glad the script is working for you. You can enable gen1 automations and remove the logger configuration. If you want to add MQTT prefix you have to do that in the device configuration and in the announce automation e.g. shellies/my-shelly-device. The same value in both places. And after that you have to restart the device and run an announce automation.