2021-11-30 13:30:37 WARNING (MainThread) [homeassistant.components.mqtt.discovery] Received message on illegal discovery topic 'homeassistant/binary_sensor/shelly1pm-68C63AFAE2F9-longpush 0-0/config'
2021-11-30 13:32:04 INFO (MainThread) [homeassistant.components.automation.system_shellies_discovery] [system] - shellies discovery: Running automation actions
2021-11-30 13:32:04 INFO (MainThread) [homeassistant.components.automation.system_shellies_discovery] [system] - shellies discovery: Executing step call service
2021-11-30 13:32:04 INFO (SyncWorker_9) [homeassistant.components.python_script] Executing shellies_discovery.py: {'id': 'shelly1pm-68C63AFAE2F9', 'mac': '68C63AFAE2F9', 'fw_ver': '20211109-130756/v1.11.7-g682a0db', 'model': 'SHSW-PM', 'mode': '', 'host': '192.168.4.34'}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] id: shelly1pm-68C63AFAE2F9, mac: 68c63afae2f9, fw_ver: 20211109-130756/v1.11.7-g682a0db, model: SHSW-PM
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/switch/shelly1pm-68C63AFAE2F9-relay-0/config', 'payload': '{"name": "Shelly 1PM 68C63AFAE2F9 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", "uniq_id": "shelly1pm-68c63afae2f9-relay-0", "qos": 0, "dev": {"ids": ["68c63afae2f9"], "cns": [["mac", "68:c6:3a:fa:e2:f9"]], "name": "Shelly 1PM 68C63AFAE2F9", "mdl": "Shelly 1PM", "sw": "20211109-130756/v1.11.7-g682a0db", "mf": "Allterco Robotics", "cu": "http://192.168.4.34/"}, "~": "shellies/shelly1pm-68C63AFAE2F9/"}', 'retain': True, 'qos': 0}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/switch/shelly1pm-68C63AFAE2F9-relay-0/config {'name': 'Shelly 1PM 68C63AFAE2F9 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', 'uniq_id': 'shelly1pm-68c63afae2f9-relay-0', 'qos': 0, 'dev': {'ids': ['68c63afae2f9'], 'cns': [['mac', '68:c6:3a:fa:e2:f9']], 'name': 'Shelly 1PM 68C63AFAE2F9', 'mdl': 'Shelly 1PM', 'sw': '20211109-130756/v1.11.7-g682a0db', 'mf': 'Allterco Robotics', 'cu': 'http://192.168.4.34/'}, '~': 'shellies/shelly1pm-68C63AFAE2F9/'}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/light/shelly1pm-68C63AFAE2F9-relay-0/config', 'payload': '', 'retain': True, 'qos': 0}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/light/shelly1pm-68C63AFAE2F9-relay-0/config
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/fan/shelly1pm-68C63AFAE2F9-relay-0/config', 'payload': '', 'retain': True, 'qos': 0}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/fan/shelly1pm-68C63AFAE2F9-relay-0/config
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-68C63AFAE2F9-power/config', 'payload': '', 'retain': True, 'qos': 0}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-68C63AFAE2F9-power/config
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-68C63AFAE2F9-energy/config', 'payload': '', 'retain': True, 'qos': 0}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-68C63AFAE2F9-energy/config
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-68C63AFAE2F9-power-0/config', 'payload': '{"name": "Shelly 1PM 68C63AFAE2F9 Power 0", "stat_t": "~relay/0/power", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}", "dev_cla": "power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "frc_upd": "False", "uniq_id": "shelly1pm-68c63afae2f9-relay-power-0", "qos": 0, "dev": {"ids": ["68c63afae2f9"], "cns": [["mac", "68:c6:3a:fa:e2:f9"]], "name": "Shelly 1PM 68C63AFAE2F9", "mdl": "Shelly 1PM", "sw": "20211109-130756/v1.11.7-g682a0db", "mf": "Allterco Robotics", "cu": "http://192.168.4.34/"}, "~": "shellies/shelly1pm-68C63AFAE2F9/", "stat_cla": "measurement"}', 'retain': True, 'qos': 0}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-68C63AFAE2F9-power-0/config {'name': 'Shelly 1PM 68C63AFAE2F9 Power 0', 'stat_t': '~relay/0/power', 'unit_of_meas': 'W', 'val_tpl': '{{value|float|round(1)}}', 'dev_cla': 'power', 'avty_t': '~online', 'pl_avail': 'true', 'pl_not_avail': 'false', 'frc_upd': 'False', 'uniq_id': 'shelly1pm-68c63afae2f9-relay-power-0', 'qos': 0, 'dev': {'ids': ['68c63afae2f9'], 'cns': [['mac', '68:c6:3a:fa:e2:f9']], 'name': 'Shelly 1PM 68C63AFAE2F9', 'mdl': 'Shelly 1PM', 'sw': '20211109-130756/v1.11.7-g682a0db', 'mf': 'Allterco Robotics', 'cu': 'http://192.168.4.34/'}, '~': 'shellies/shelly1pm-68C63AFAE2F9/', 'stat_cla': 'measurement'}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-68C63AFAE2F9-energy-0/config', 'payload': '{"name": "Shelly 1PM 68C63AFAE2F9 Energy 0", "stat_t": "~relay/0/energy", "unit_of_meas": "kWh", "val_tpl": "{{(value|float/60/1000)|round(2)}}", "dev_cla": "energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "frc_upd": "False", "uniq_id": "shelly1pm-68c63afae2f9-relay-energy-0", "qos": 0, "dev": {"ids": ["68c63afae2f9"], "cns": [["mac", "68:c6:3a:fa:e2:f9"]], "name": "Shelly 1PM 68C63AFAE2F9", "mdl": "Shelly 1PM", "sw": "20211109-130756/v1.11.7-g682a0db", "mf": "Allterco Robotics", "cu": "http://192.168.4.34/"}, "~": "shellies/shelly1pm-68C63AFAE2F9/", "stat_cla": "total_increasing"}', 'retain': True, 'qos': 0}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-68C63AFAE2F9-energy-0/config {'name': 'Shelly 1PM 68C63AFAE2F9 Energy 0', 'stat_t': '~relay/0/energy', 'unit_of_meas': 'kWh', 'val_tpl': '{{(value|float/60/1000)|round(2)}}', 'dev_cla': 'energy', 'avty_t': '~online', 'pl_avail': 'true', 'pl_not_avail': 'false', 'frc_upd': 'False', 'uniq_id': 'shelly1pm-68c63afae2f9-relay-energy-0', 'qos': 0, 'dev': {'ids': ['68c63afae2f9'], 'cns': [['mac', '68:c6:3a:fa:e2:f9']], 'name': 'Shelly 1PM 68C63AFAE2F9', 'mdl': 'Shelly 1PM', 'sw': '20211109-130756/v1.11.7-g682a0db', 'mf': 'Allterco Robotics', 'cu': 'http://192.168.4.34/'}, '~': 'shellies/shelly1pm-68C63AFAE2F9/', 'stat_cla': 'total_increasing'}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shelly1pm-68C63AFAE2F9-input-0/config', 'payload': '{"name": "Shelly 1PM 68C63AFAE2F9 Input 0", "stat_t": "~input/0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "shelly1pm-68c63afae2f9-input-0", "qos": 0, "dev": {"ids": ["68c63afae2f9"], "cns": [["mac", "68:c6:3a:fa:e2:f9"]], "name": "Shelly 1PM 68C63AFAE2F9", "mdl": "Shelly 1PM", "sw": "20211109-130756/v1.11.7-g682a0db", "mf": "Allterco Robotics", "cu": "http://192.168.4.34/"}, "~": "shellies/shelly1pm-68C63AFAE2F9/", "pl_on": "1", "pl_off": "0"}', 'retain': True, 'qos': 0}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-68C63AFAE2F9-input-0/config {'name': 'Shelly 1PM 68C63AFAE2F9 Input 0', 'stat_t': '~input/0', 'avty_t': '~online', 'pl_avail': 'true', 'pl_not_avail': 'false', 'uniq_id': 'shelly1pm-68c63afae2f9-input-0', 'qos': 0, 'dev': {'ids': ['68c63afae2f9'], 'cns': [['mac', '68:c6:3a:fa:e2:f9']], 'name': 'Shelly 1PM 68C63AFAE2F9', 'mdl': 'Shelly 1PM', 'sw': '20211109-130756/v1.11.7-g682a0db', 'mf': 'Allterco Robotics', 'cu': 'http://192.168.4.34/'}, '~': 'shellies/shelly1pm-68C63AFAE2F9/', 'pl_on': '1', 'pl_off': '0'}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shelly1pm-68C63AFAE2F9-longpush-0/config', 'payload': '{"name": "Shelly 1PM 68C63AFAE2F9 Longpush 0", "stat_t": "~input_event/0/0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "shelly1pm-68c63afae2f9-longpush-0", "qos": 0, "dev": {"ids": ["68c63afae2f9"], "cns": [["mac", "68:c6:3a:fa:e2:f9"]], "name": "Shelly 1PM 68C63AFAE2F9", "mdl": "Shelly 1PM", "sw": "20211109-130756/v1.11.7-g682a0db", "mf": "Allterco Robotics", "cu": "http://192.168.4.34/"}, "~": "shellies/shelly1pm-68C63AFAE2F9/", "off_dly": 2, "val_tpl": "{%if value_json.event==\'L\'%}ON{%else%}OFF{%endif%}"}', 'retain': True, 'qos': 0}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-68C63AFAE2F9-longpush-0/config {'name': 'Shelly 1PM 68C63AFAE2F9 Longpush 0', 'stat_t': '~input_event/0/0', 'avty_t': '~online', 'pl_avail': 'true', 'pl_not_avail': 'false', 'uniq_id': 'shelly1pm-68c63afae2f9-longpush-0', 'qos': 0, 'dev': {'ids': ['68c63afae2f9'], 'cns': [['mac', '68:c6:3a:fa:e2:f9']], 'name': 'Shelly 1PM 68C63AFAE2F9', 'mdl': 'Shelly 1PM', 'sw': '20211109-130756/v1.11.7-g682a0db', 'mf': 'Allterco Robotics', 'cu': 'http://192.168.4.34/'}, '~': 'shellies/shelly1pm-68C63AFAE2F9/', 'off_dly': 2, 'val_tpl': '{%if value_json.event==^L^%}ON{%else%}OFF{%endif%}'}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shelly1pm-68C63AFAE2F9-shortpush-0/config', 'payload': '{"name": "Shelly 1PM 68C63AFAE2F9 Shortpush 0", "stat_t": "~input_event/0/0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "shelly1pm-68c63afae2f9-shortpush-0", "qos": 0, "dev": {"ids": ["68c63afae2f9"], "cns": [["mac", "68:c6:3a:fa:e2:f9"]], "name": "Shelly 1PM 68C63AFAE2F9", "mdl": "Shelly 1PM", "sw": "20211109-130756/v1.11.7-g682a0db", "mf": "Allterco Robotics", "cu": "http://192.168.4.34/"}, "~": "shellies/shelly1pm-68C63AFAE2F9/", "off_dly": 2, "val_tpl": "{%if value_json.event==\'S\'%}ON{%else%}OFF{%endif%}"}', 'retain': True, 'qos': 0}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-68C63AFAE2F9-shortpush-0/config {'name': 'Shelly 1PM 68C63AFAE2F9 Shortpush 0', 'stat_t': '~input_event/0/0', 'avty_t': '~online', 'pl_avail': 'true', 'pl_not_avail': 'false', 'uniq_id': 'shelly1pm-68c63afae2f9-shortpush-0', 'qos': 0, 'dev': {'ids': ['68c63afae2f9'], 'cns': [['mac', '68:c6:3a:fa:e2:f9']], 'name': 'Shelly 1PM 68C63AFAE2F9', 'mdl': 'Shelly 1PM', 'sw': '20211109-130756/v1.11.7-g682a0db', 'mf': 'Allterco Robotics', 'cu': 'http://192.168.4.34/'}, '~': 'shellies/shelly1pm-68C63AFAE2F9/', 'off_dly': 2, 'val_tpl': '{%if value_json.event==^S^%}ON{%else%}OFF{%endif%}'}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shelly1pm-68C63AFAE2F9-overpower-0/config', 'payload': '{"name": "Shelly 1PM 68C63AFAE2F9 Overpower 0", "stat_t": "~relay/0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "shelly1pm-68c63afae2f9-overpower-0", "qos": 0, "dev": {"ids": ["68c63afae2f9"], "cns": [["mac", "68:c6:3a:fa:e2:f9"]], "name": "Shelly 1PM 68C63AFAE2F9", "mdl": "Shelly 1PM", "sw": "20211109-130756/v1.11.7-g682a0db", "mf": "Allterco Robotics", "cu": "http://192.168.4.34/"}, "~": "shellies/shelly1pm-68C63AFAE2F9/", "entity_category": "diagnostic", "val_tpl": "{%if value==\'overpower\'%}ON{%else%}OFF{%endif%}", "dev_cla": "problem", "json_attr_t": "~relay/0/overpower_value", "json_attr_tpl": "{{{\'overpower_value\':value}|tojson}}"}', 'retain': True, 'qos': 0}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-68C63AFAE2F9-overpower-0/config {'name': 'Shelly 1PM 68C63AFAE2F9 Overpower 0', 'stat_t': '~relay/0', 'avty_t': '~online', 'pl_avail': 'true', 'pl_not_avail': 'false', 'uniq_id': 'shelly1pm-68c63afae2f9-overpower-0', 'qos': 0, 'dev': {'ids': ['68c63afae2f9'], 'cns': [['mac', '68:c6:3a:fa:e2:f9']], 'name': 'Shelly 1PM 68C63AFAE2F9', 'mdl': 'Shelly 1PM', 'sw': '20211109-130756/v1.11.7-g682a0db', 'mf': 'Allterco Robotics', 'cu': 'http://192.168.4.34/'}, '~': 'shellies/shelly1pm-68C63AFAE2F9/', 'entity_category': 'diagnostic', 'val_tpl': '{%if value==^overpower^%}ON{%else%}OFF{%endif%}', 'dev_cla': 'problem', 'json_attr_t': '~relay/0/overpower_value', 'json_attr_tpl': '{{{^overpower_value^:value}|tojson}}'}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-68C63AFAE2F9-temperature/config', 'payload': '{"name": "Shelly 1PM 68C63AFAE2F9 Temperature", "stat_t": "~temperature", "frc_upd": "False", "en": "True", "uniq_id": "shelly1pm-68c63afae2f9-temperature", "qos": 0, "dev": {"ids": ["68c63afae2f9"], "cns": [["mac", "68:c6:3a:fa:e2:f9"]], "name": "Shelly 1PM 68C63AFAE2F9", "mdl": "Shelly 1PM", "sw": "20211109-130756/v1.11.7-g682a0db", "mf": "Allterco Robotics", "cu": "http://192.168.4.34/"}, "~": "shellies/shelly1pm-68C63AFAE2F9/", "entity_category": "diagnostic", "stat_cla": "measurement", "unit_of_meas": "°C", "dev_cla": "temperature", "val_tpl": "{%if value!=999%}{{value|float|round(1)}}{%endif%}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}', 'retain': True, 'qos': 0}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-68C63AFAE2F9-temperature/config {'name': 'Shelly 1PM 68C63AFAE2F9 Temperature', 'stat_t': '~temperature', 'frc_upd': 'False', 'en': 'True', 'uniq_id': 'shelly1pm-68c63afae2f9-temperature', 'qos': 0, 'dev': {'ids': ['68c63afae2f9'], 'cns': [['mac', '68:c6:3a:fa:e2:f9']], 'name': 'Shelly 1PM 68C63AFAE2F9', 'mdl': 'Shelly 1PM', 'sw': '20211109-130756/v1.11.7-g682a0db', 'mf': 'Allterco Robotics', 'cu': 'http://192.168.4.34/'}, '~': 'shellies/shelly1pm-68C63AFAE2F9/', 'entity_category': 'diagnostic', 'stat_cla': 'measurement', 'unit_of_meas': '°C', 'dev_cla': 'temperature', 'val_tpl': '{%if value!=999%}{{value|float|round(1)}}{%endif%}', 'avty_t': '~online', 'pl_avail': 'true', 'pl_not_avail': 'false'}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-68C63AFAE2F9-rssi/config', 'payload': '{"name": "Shelly 1PM 68C63AFAE2F9 RSSI", "stat_t": "~info", "frc_upd": "False", "en": "False", "uniq_id": "shelly1pm-68c63afae2f9-rssi", "qos": 0, "dev": {"ids": ["68c63afae2f9"], "cns": [["mac", "68:c6:3a:fa:e2:f9"]], "name": "Shelly 1PM 68C63AFAE2F9", "mdl": "Shelly 1PM", "sw": "20211109-130756/v1.11.7-g682a0db", "mf": "Allterco Robotics", "cu": "http://192.168.4.34/"}, "~": "shellies/shelly1pm-68C63AFAE2F9/", "entity_category": "diagnostic", "unit_of_meas": "dBm", "dev_cla": "signal_strength", "val_tpl": "{{value_json[\'wifi_sta\'].rssi}}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}', 'retain': True, 'qos': 0}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-68C63AFAE2F9-rssi/config {'name': 'Shelly 1PM 68C63AFAE2F9 RSSI', 'stat_t': '~info', 'frc_upd': 'False', 'en': 'False', 'uniq_id': 'shelly1pm-68c63afae2f9-rssi', 'qos': 0, 'dev': {'ids': ['68c63afae2f9'], 'cns': [['mac', '68:c6:3a:fa:e2:f9']], 'name': 'Shelly 1PM 68C63AFAE2F9', 'mdl': 'Shelly 1PM', 'sw': '20211109-130756/v1.11.7-g682a0db', 'mf': 'Allterco Robotics', 'cu': 'http://192.168.4.34/'}, '~': 'shellies/shelly1pm-68C63AFAE2F9/', 'entity_category': 'diagnostic', 'unit_of_meas': 'dBm', 'dev_cla': 'signal_strength', 'val_tpl': '{{value_json[^wifi_sta^].rssi}}', 'avty_t': '~online', 'pl_avail': 'true', 'pl_not_avail': 'false'}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-68C63AFAE2F9-ssid/config', 'payload': '{"name": "Shelly 1PM 68C63AFAE2F9 SSID", "stat_t": "~info", "frc_upd": "False", "en": "False", "uniq_id": "shelly1pm-68c63afae2f9-ssid", "qos": 0, "dev": {"ids": ["68c63afae2f9"], "cns": [["mac", "68:c6:3a:fa:e2:f9"]], "name": "Shelly 1PM 68C63AFAE2F9", "mdl": "Shelly 1PM", "sw": "20211109-130756/v1.11.7-g682a0db", "mf": "Allterco Robotics", "cu": "http://192.168.4.34/"}, "~": "shellies/shelly1pm-68C63AFAE2F9/", "entity_category": "diagnostic", "val_tpl": "{{value_json[\'wifi_sta\'].ssid}}", "icon": "mdi:wifi", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}', 'retain': True, 'qos': 0}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-68C63AFAE2F9-ssid/config {'name': 'Shelly 1PM 68C63AFAE2F9 SSID', 'stat_t': '~info', 'frc_upd': 'False', 'en': 'False', 'uniq_id': 'shelly1pm-68c63afae2f9-ssid', 'qos': 0, 'dev': {'ids': ['68c63afae2f9'], 'cns': [['mac', '68:c6:3a:fa:e2:f9']], 'name': 'Shelly 1PM 68C63AFAE2F9', 'mdl': 'Shelly 1PM', 'sw': '20211109-130756/v1.11.7-g682a0db', 'mf': 'Allterco Robotics', 'cu': 'http://192.168.4.34/'}, '~': 'shellies/shelly1pm-68C63AFAE2F9/', 'entity_category': 'diagnostic', 'val_tpl': '{{value_json[^wifi_sta^].ssid}}', 'icon': 'mdi:wifi', 'avty_t': '~online', 'pl_avail': 'true', 'pl_not_avail': 'false'}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-68C63AFAE2F9-uptime/config', 'payload': '{"name": "Shelly 1PM 68C63AFAE2F9 Uptime", "stat_t": "~info", "frc_upd": "False", "en": "False", "uniq_id": "shelly1pm-68c63afae2f9-uptime", "qos": 0, "dev": {"ids": ["68c63afae2f9"], "cns": [["mac", "68:c6:3a:fa:e2:f9"]], "name": "Shelly 1PM 68C63AFAE2F9", "mdl": "Shelly 1PM", "sw": "20211109-130756/v1.11.7-g682a0db", "mf": "Allterco Robotics", "cu": "http://192.168.4.34/"}, "~": "shellies/shelly1pm-68C63AFAE2F9/", "entity_category": "diagnostic", "dev_cla": "timestamp", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}', 'retain': True, 'qos': 0}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-68C63AFAE2F9-uptime/config {'name': 'Shelly 1PM 68C63AFAE2F9 Uptime', 'stat_t': '~info', 'frc_upd': 'False', 'en': 'False', 'uniq_id': 'shelly1pm-68c63afae2f9-uptime', 'qos': 0, 'dev': {'ids': ['68c63afae2f9'], 'cns': [['mac', '68:c6:3a:fa:e2:f9']], 'name': 'Shelly 1PM 68C63AFAE2F9', 'mdl': 'Shelly 1PM', 'sw': '20211109-130756/v1.11.7-g682a0db', 'mf': 'Allterco Robotics', 'cu': 'http://192.168.4.34/'}, '~': 'shellies/shelly1pm-68C63AFAE2F9/', 'entity_category': 'diagnostic', 'dev_cla': 'timestamp', 'val_tpl': '{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}', 'avty_t': '~online', 'pl_avail': 'true', 'pl_not_avail': 'false'}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-68C63AFAE2F9-ip/config', 'payload': '{"name": "Shelly 1PM 68C63AFAE2F9 IP", "stat_t": "~announce", "frc_upd": "False", "en": "False", "uniq_id": "shelly1pm-68c63afae2f9-ip", "qos": 0, "dev": {"ids": ["68c63afae2f9"], "cns": [["mac", "68:c6:3a:fa:e2:f9"]], "name": "Shelly 1PM 68C63AFAE2F9", "mdl": "Shelly 1PM", "sw": "20211109-130756/v1.11.7-g682a0db", "mf": "Allterco Robotics", "cu": "http://192.168.4.34/"}, "~": "shellies/shelly1pm-68C63AFAE2F9/", "entity_category": "diagnostic", "val_tpl": "{{value_json.ip}}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}', 'retain': True, 'qos': 0}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-68C63AFAE2F9-ip/config {'name': 'Shelly 1PM 68C63AFAE2F9 IP', 'stat_t': '~announce', 'frc_upd': 'False', 'en': 'False', 'uniq_id': 'shelly1pm-68c63afae2f9-ip', 'qos': 0, 'dev': {'ids': ['68c63afae2f9'], 'cns': [['mac', '68:c6:3a:fa:e2:f9']], 'name': 'Shelly 1PM 68C63AFAE2F9', 'mdl': 'Shelly 1PM', 'sw': '20211109-130756/v1.11.7-g682a0db', 'mf': 'Allterco Robotics', 'cu': 'http://192.168.4.34/'}, '~': 'shellies/shelly1pm-68C63AFAE2F9/', 'entity_category': 'diagnostic', 'val_tpl': '{{value_json.ip}}', 'avty_t': '~online', 'pl_avail': 'true', 'pl_not_avail': 'false'}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-68C63AFAE2F9-temperature_status/config', 'payload': '{"name": "Shelly 1PM 68C63AFAE2F9 Temperature Status", "stat_t": "~temperature_status", "frc_upd": "False", "en": "True", "uniq_id": "shelly1pm-68c63afae2f9-temperature_status", "qos": 0, "dev": {"ids": ["68c63afae2f9"], "cns": [["mac", "68:c6:3a:fa:e2:f9"]], "name": "Shelly 1PM 68C63AFAE2F9", "mdl": "Shelly 1PM", "sw": "20211109-130756/v1.11.7-g682a0db", "mf": "Allterco Robotics", "cu": "http://192.168.4.34/"}, "~": "shellies/shelly1pm-68C63AFAE2F9/", "entity_category": "diagnostic", "val_tpl": "{{value|lower}}", "icon": "mdi:thermometer", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}', 'retain': True, 'qos': 0}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-68C63AFAE2F9-temperature_status/config {'name': 'Shelly 1PM 68C63AFAE2F9 Temperature Status', 'stat_t': '~temperature_status', 'frc_upd': 'False', 'en': 'True', 'uniq_id': 'shelly1pm-68c63afae2f9-temperature_status', 'qos': 0, 'dev': {'ids': ['68c63afae2f9'], 'cns': [['mac', '68:c6:3a:fa:e2:f9']], 'name': 'Shelly 1PM 68C63AFAE2F9', 'mdl': 'Shelly 1PM', 'sw': '20211109-130756/v1.11.7-g682a0db', 'mf': 'Allterco Robotics', 'cu': 'http://192.168.4.34/'}, '~': 'shellies/shelly1pm-68C63AFAE2F9/', 'entity_category': 'diagnostic', 'val_tpl': '{{value|lower}}', 'icon': 'mdi:thermometer', 'avty_t': '~online', 'pl_avail': 'true', 'pl_not_avail': 'false'}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shelly1pm-68C63AFAE2F9-input-0/button_release/config', 'payload': '{"atype": "trigger", "t": "shellies/shelly1pm-68C63AFAE2F9/input/0", "pl": "0", "qos": 0, "dev": {"ids": ["68c63afae2f9"], "cns": [["mac", "68:c6:3a:fa:e2:f9"]], "name": "Shelly 1PM 68C63AFAE2F9", "mdl": "Shelly 1PM", "sw": "20211109-130756/v1.11.7-g682a0db", "mf": "Allterco Robotics", "cu": "http://192.168.4.34/"}, "type": "button_short_release", "stype": "button_1"}', 'retain': True, 'qos': 0}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shelly1pm-68C63AFAE2F9-input-0/button_release/config {'atype': 'trigger', 't': 'shellies/shelly1pm-68C63AFAE2F9/input/0', 'pl': '0', 'qos': 0, 'dev': {'ids': ['68c63afae2f9'], 'cns': [['mac', '68:c6:3a:fa:e2:f9']], 'name': 'Shelly 1PM 68C63AFAE2F9', 'mdl': 'Shelly 1PM', 'sw': '20211109-130756/v1.11.7-g682a0db', 'mf': 'Allterco Robotics', 'cu': 'http://192.168.4.34/'}, 'type': 'button_short_release', 'stype': 'button_1'}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shelly1pm-68C63AFAE2F9-input-0/button_long_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shelly1pm-68C63AFAE2F9/input_event/0", "pl": "L", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"ids": ["68c63afae2f9"], "cns": [["mac", "68:c6:3a:fa:e2:f9"]], "name": "Shelly 1PM 68C63AFAE2F9", "mdl": "Shelly 1PM", "sw": "20211109-130756/v1.11.7-g682a0db", "mf": "Allterco Robotics", "cu": "http://192.168.4.34/"}, "type": "button_long_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shelly1pm-68C63AFAE2F9-input-0/button_long_press/config {'atype': 'trigger', 't': 'shellies/shelly1pm-68C63AFAE2F9/input_event/0', 'pl': 'L', 'val_tpl': '{{value_json.event}}', 'qos': 0, 'dev': {'ids': ['68c63afae2f9'], 'cns': [['mac', '68:c6:3a:fa:e2:f9']], 'name': 'Shelly 1PM 68C63AFAE2F9', 'mdl': 'Shelly 1PM', 'sw': '20211109-130756/v1.11.7-g682a0db', 'mf': 'Allterco Robotics', 'cu': 'http://192.168.4.34/'}, 'type': 'button_long_press', 'stype': 'button_1'}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/device_automation/shelly1pm-68C63AFAE2F9-input-0/button_short_press/config', 'payload': '{"atype": "trigger", "t": "shellies/shelly1pm-68C63AFAE2F9/input_event/0", "pl": "S", "val_tpl": "{{value_json.event}}", "qos": 0, "dev": {"ids": ["68c63afae2f9"], "cns": [["mac", "68:c6:3a:fa:e2:f9"]], "name": "Shelly 1PM 68C63AFAE2F9", "mdl": "Shelly 1PM", "sw": "20211109-130756/v1.11.7-g682a0db", "mf": "Allterco Robotics", "cu": "http://192.168.4.34/"}, "type": "button_short_press", "stype": "button_1"}', 'retain': True, 'qos': 0}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/device_automation/shelly1pm-68C63AFAE2F9-input-0/button_short_press/config {'atype': 'trigger', 't': 'shellies/shelly1pm-68C63AFAE2F9/input_event/0', 'pl': 'S', 'val_tpl': '{{value_json.event}}', 'qos': 0, 'dev': {'ids': ['68c63afae2f9'], 'cns': [['mac', '68:c6:3a:fa:e2:f9']], 'name': 'Shelly 1PM 68C63AFAE2F9', 'mdl': 'Shelly 1PM', 'sw': '20211109-130756/v1.11.7-g682a0db', 'mf': 'Allterco Robotics', 'cu': 'http://192.168.4.34/'}, 'type': 'button_short_press', 'stype': 'button_1'}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-68C63AFAE2F9-ext-temperature-0/config', 'payload': '', 'retain': True, 'qos': 0}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-68C63AFAE2F9-ext-temperature-0/config
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-68C63AFAE2F9-ext-temperature-1/config', 'payload': '', 'retain': True, 'qos': 0}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-68C63AFAE2F9-ext-temperature-1/config
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-68C63AFAE2F9-ext-temperature-2/config', 'payload': '', 'retain': True, 'qos': 0}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-68C63AFAE2F9-ext-temperature-2/config
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/sensor/shelly1pm-68C63AFAE2F9-ext-humidity-0/config', 'payload': '', 'retain': True, 'qos': 0}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1pm-68C63AFAE2F9-ext-humidity-0/config
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shelly1pm-68C63AFAE2F9-overtemperature/config', 'payload': '{"name": "Shelly 1PM 68C63AFAE2F9 Overtemperature", "stat_t": "~overtemperature", "en": "True", "uniq_id": "shelly1pm-68c63afae2f9-overtemperature", "qos": 0, "dev": {"ids": ["68c63afae2f9"], "cns": [["mac", "68:c6:3a:fa:e2:f9"]], "name": "Shelly 1PM 68C63AFAE2F9", "mdl": "Shelly 1PM", "sw": "20211109-130756/v1.11.7-g682a0db", "mf": "Allterco Robotics", "cu": "http://192.168.4.34/"}, "~": "shellies/shelly1pm-68C63AFAE2F9/", "entity_category": "diagnostic", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "dev_cla": "problem"}', 'retain': True, 'qos': 0}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-68C63AFAE2F9-overtemperature/config {'name': 'Shelly 1PM 68C63AFAE2F9 Overtemperature', 'stat_t': '~overtemperature', 'en': 'True', 'uniq_id': 'shelly1pm-68c63afae2f9-overtemperature', 'qos': 0, 'dev': {'ids': ['68c63afae2f9'], 'cns': [['mac', '68:c6:3a:fa:e2:f9']], 'name': 'Shelly 1PM 68C63AFAE2F9', 'mdl': 'Shelly 1PM', 'sw': '20211109-130756/v1.11.7-g682a0db', 'mf': 'Allterco Robotics', 'cu': 'http://192.168.4.34/'}, '~': 'shellies/shelly1pm-68C63AFAE2F9/', 'entity_category': 'diagnostic', 'pl_on': '1', 'pl_off': '0', 'avty_t': '~online', 'pl_avail': 'true', 'pl_not_avail': 'false', 'dev_cla': 'problem'}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] {'topic': 'homeassistant/binary_sensor/shelly1pm-68C63AFAE2F9-firmware-update/config', 'payload': '{"name": "Shelly 1PM 68C63AFAE2F9 Firmware Update", "stat_t": "~info", "en": "True", "uniq_id": "shelly1pm-68c63afae2f9-firmware-update", "qos": 0, "dev": {"ids": ["68c63afae2f9"], "cns": [["mac", "68:c6:3a:fa:e2:f9"]], "name": "Shelly 1PM 68C63AFAE2F9", "mdl": "Shelly 1PM", "sw": "20211109-130756/v1.11.7-g682a0db", "mf": "Allterco Robotics", "cu": "http://192.168.4.34/"}, "~": "shellies/shelly1pm-68C63AFAE2F9/", "entity_category": "diagnostic", "val_tpl": "{%if value_json[\'update\'].has_update==true%}ON{%else%}OFF{%endif%}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "dev_cla": "update", "json_attr_t": "~info", "json_attr_tpl": "{{value_json[\'update\']|tojson}}"}', 'retain': True, 'qos': 0}
2021-11-30 13:32:04 DEBUG (SyncWorker_9) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1pm-68C63AFAE2F9-firmware-update/config {'name': 'Shelly 1PM 68C63AFAE2F9 Firmware Update', 'stat_t': '~info', 'en': 'True', 'uniq_id': 'shelly1pm-68c63afae2f9-firmware-update', 'qos': 0, 'dev': {'ids': ['68c63afae2f9'], 'cns': [['mac', '68:c6:3a:fa:e2:f9']], 'name': 'Shelly 1PM 68C63AFAE2F9', 'mdl': 'Shelly 1PM', 'sw': '20211109-130756/v1.11.7-g682a0db', 'mf': 'Allterco Robotics', 'cu': 'http://192.168.4.34/'}, '~': 'shellies/shelly1pm-68C63AFAE2F9/', 'entity_category': 'diagnostic', 'val_tpl': '{%if value_json[^update^].has_update==true%}ON{%else%}OFF{%endif%}', 'avty_t': '~online', 'pl_avail': 'true', 'pl_not_avail': 'false', 'dev_cla': 'update', 'json_attr_t': '~info', 'json_attr_tpl': '{{value_json[^update^]|tojson}}'}
2021-11-30 14:00:20 INFO (SyncWorker_8) [homeassistant.components.python_script] Executing shellies_discovery.py: {'id': 'shelly1pm-68C63AFAE2F9', 'mac': '68C63AFAE2F9', 'fw_ver': '20211109-130756/v1.11.7-g682a0db', 'model': 'SHSW-PM', 'mode': '', 'host': '192.168.4.34'}
2021-11-30 14:00:20 DEBUG (SyncWorker_8)