2020-12-09 14:32:49 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Running automation actions
2020-12-09 14:32:49 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Executing step call service
2020-12-09 14:32:50 INFO (SyncWorker_2) [homeassistant.components.python_script] Executing shellies_discovery.py: {'id': 'shellydimmer2-D8BFC019D7EE', 'mac': 'D8BFC019D7EE', 'fw_ver': '20201124-092706/v1.9.0@57ac4ad8', 'model': 'SHDM-2'}
2020-12-09 14:32:50 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] id: shellydimmer2-D8BFC019D7EE, mac: d8bfc019d7ee, fw_ver: 20201124-092706/v1.9.0@57ac4ad8, model: SHDM-2
2020-12-09 14:32:50 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-D8BFC019D7EE-temperature/config {"name": "Shelly Dimmer 2 D8BFC019D7EE Temperature", "stat_t": "~temperature", "frc_upd": "False", "uniq_id": "shellydimmer2-d8bfc019d7ee-temperature", "qos": 0, "dev": {"ids": ["d8bfc019d7ee"], "name": "Shelly Dimmer 2 D8BFC019D7EE", "mdl": "Shelly Dimmer 2", "sw": "20201124-092706/v1.9.0@57ac4ad8", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-D8BFC019D7EE/", "unit_of_meas": "°C", "dev_cla": "temperature", "val_tpl": "{{value|float|round(1)}}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
2020-12-09 14:32:50 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-D8BFC019D7EE-rssi/config {"name": "Shelly Dimmer 2 D8BFC019D7EE RSSI", "stat_t": "~info", "frc_upd": "False", "uniq_id": "shellydimmer2-d8bfc019d7ee-rssi", "qos": 0, "dev": {"ids": ["d8bfc019d7ee"], "name": "Shelly Dimmer 2 D8BFC019D7EE", "mdl": "Shelly Dimmer 2", "sw": "20201124-092706/v1.9.0@57ac4ad8", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-D8BFC019D7EE/", "unit_of_meas": "dB", "dev_cla": "signal_strength", "val_tpl": "{{value_json['wifi_sta'].rssi}}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
2020-12-09 14:32:50 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-D8BFC019D7EE-ssid/config {"name": "Shelly Dimmer 2 D8BFC019D7EE SSID", "stat_t": "~info", "frc_upd": "False", "uniq_id": "shellydimmer2-d8bfc019d7ee-ssid", "qos": 0, "dev": {"ids": ["d8bfc019d7ee"], "name": "Shelly Dimmer 2 D8BFC019D7EE", "mdl": "Shelly Dimmer 2", "sw": "20201124-092706/v1.9.0@57ac4ad8", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-D8BFC019D7EE/", "val_tpl": "{{value_json['wifi_sta'].ssid}}", "icon": "mdi:wifi", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
2020-12-09 14:32:50 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-D8BFC019D7EE-uptime/config {"name": "Shelly Dimmer 2 D8BFC019D7EE Uptime", "stat_t": "~info", "frc_upd": "False", "uniq_id": "shellydimmer2-d8bfc019d7ee-uptime", "qos": 0, "dev": {"ids": ["d8bfc019d7ee"], "name": "Shelly Dimmer 2 D8BFC019D7EE", "mdl": "Shelly Dimmer 2", "sw": "20201124-092706/v1.9.0@57ac4ad8", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-D8BFC019D7EE/", "dev_cla": "timestamp", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "icon": "mdi:timer-outline", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
2020-12-09 14:32:50 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-D8BFC019D7EE-overtemperature/config {"name": "Shelly Dimmer 2 D8BFC019D7EE Overtemperature", "stat_t": "~overtemperature", "uniq_id": "shellydimmer2-d8bfc019d7ee-overtemperature", "qos": 0, "dev": {"ids": ["d8bfc019d7ee"], "name": "Shelly Dimmer 2 D8BFC019D7EE", "mdl": "Shelly Dimmer 2", "sw": "20201124-092706/v1.9.0@57ac4ad8", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-D8BFC019D7EE/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "dev_cla": "problem"}
2020-12-09 14:32:50 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-D8BFC019D7EE-overload/config {"name": "Shelly Dimmer 2 D8BFC019D7EE Overload", "stat_t": "~overload", "uniq_id": "shellydimmer2-d8bfc019d7ee-overload", "qos": 0, "dev": {"ids": ["d8bfc019d7ee"], "name": "Shelly Dimmer 2 D8BFC019D7EE", "mdl": "Shelly Dimmer 2", "sw": "20201124-092706/v1.9.0@57ac4ad8", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-D8BFC019D7EE/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "dev_cla": "problem"}
2020-12-09 14:32:50 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-D8BFC019D7EE-loaderror/config {"name": "Shelly Dimmer 2 D8BFC019D7EE Loaderror", "stat_t": "~loaderror", "uniq_id": "shellydimmer2-d8bfc019d7ee-loaderror", "qos": 0, "dev": {"ids": ["d8bfc019d7ee"], "name": "Shelly Dimmer 2 D8BFC019D7EE", "mdl": "Shelly Dimmer 2", "sw": "20201124-092706/v1.9.0@57ac4ad8", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-D8BFC019D7EE/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "dev_cla": "problem"}
2020-12-09 14:32:51 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-D8BFC019D7EE-input-0/config {"name": "Shelly Dimmer 2 D8BFC019D7EE Input 0", "stat_t": "~input/0", "uniq_id": "shellydimmer2-d8bfc019d7ee-input-0", "qos": 0, "dev": {"ids": ["d8bfc019d7ee"], "name": "Shelly Dimmer 2 D8BFC019D7EE", "mdl": "Shelly Dimmer 2", "sw": "20201124-092706/v1.9.0@57ac4ad8", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-D8BFC019D7EE/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "json_attr_t": "~input_event/0"}
2020-12-09 14:32:51 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-D8BFC019D7EE-input-1/config {"name": "Shelly Dimmer 2 D8BFC019D7EE Input 1", "stat_t": "~input/1", "uniq_id": "shellydimmer2-d8bfc019d7ee-input-1", "qos": 0, "dev": {"ids": ["d8bfc019d7ee"], "name": "Shelly Dimmer 2 D8BFC019D7EE", "mdl": "Shelly Dimmer 2", "sw": "20201124-092706/v1.9.0@57ac4ad8", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-D8BFC019D7EE/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "json_attr_t": "~input_event/1"}
2020-12-09 14:32:51 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-D8BFC019D7EE-longpush-0/config {"name": "Shelly Dimmer 2 D8BFC019D7EE Longpush 0", "stat_t": "~longpush/0", "uniq_id": "shellydimmer2-d8bfc019d7ee-longpush-0", "qos": 0, "dev": {"ids": ["d8bfc019d7ee"], "name": "Shelly Dimmer 2 D8BFC019D7EE", "mdl": "Shelly Dimmer 2", "sw": "20201124-092706/v1.9.0@57ac4ad8", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-D8BFC019D7EE/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "off_dly": 2}
2020-12-09 14:32:51 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-D8BFC019D7EE-longpush-1/config {"name": "Shelly Dimmer 2 D8BFC019D7EE Longpush 1", "stat_t": "~longpush/1", "uniq_id": "shellydimmer2-d8bfc019d7ee-longpush-1", "qos": 0, "dev": {"ids": ["d8bfc019d7ee"], "name": "Shelly Dimmer 2 D8BFC019D7EE", "mdl": "Shelly Dimmer 2", "sw": "20201124-092706/v1.9.0@57ac4ad8", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-D8BFC019D7EE/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "off_dly": 2}
2020-12-09 14:32:51 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-D8BFC019D7EE-shortpush-0/config {"name": "Shelly Dimmer 2 D8BFC019D7EE Shortpush 0", "stat_t": "~longpush/0", "uniq_id": "shellydimmer2-d8bfc019d7ee-shortpush-0", "qos": 0, "dev": {"ids": ["d8bfc019d7ee"], "name": "Shelly Dimmer 2 D8BFC019D7EE", "mdl": "Shelly Dimmer 2", "sw": "20201124-092706/v1.9.0@57ac4ad8", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-D8BFC019D7EE/", "pl_on": "0", "pl_off": "1", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "off_dly": 2}
2020-12-09 14:32:51 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-D8BFC019D7EE-shortpush-1/config {"name": "Shelly Dimmer 2 D8BFC019D7EE Shortpush 1", "stat_t": "~longpush/1", "uniq_id": "shellydimmer2-d8bfc019d7ee-shortpush-1", "qos": 0, "dev": {"ids": ["d8bfc019d7ee"], "name": "Shelly Dimmer 2 D8BFC019D7EE", "mdl": "Shelly Dimmer 2", "sw": "20201124-092706/v1.9.0@57ac4ad8", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-D8BFC019D7EE/", "pl_on": "0", "pl_off": "1", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "off_dly": 2}
2020-12-09 14:32:51 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shellydimmer2-D8BFC019D7EE-firmware-update/config {"name": "Shelly Dimmer 2 D8BFC019D7EE Firmware Update", "stat_t": "~info", "uniq_id": "shellydimmer2-d8bfc019d7ee-firmware-update", "qos": 0, "dev": {"ids": ["d8bfc019d7ee"], "name": "Shelly Dimmer 2 D8BFC019D7EE", "mdl": "Shelly Dimmer 2", "sw": "20201124-092706/v1.9.0@57ac4ad8", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-D8BFC019D7EE/", "val_tpl": "{%if value_json['update'].has_update==true%}ON{%else%}OFF{%endif%}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "json_attr_t": "~info", "json_attr_tpl": "{{value_json['update']|tojson}}"}
2020-12-09 14:32:51 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/light/shellydimmer2-D8BFC019D7EE-0/config {"schema":"template","name":"Shelly Dimmer 2 D8BFC019D7EE Light 0","cmd_t":"~light/0/set","stat_t":"~light/0/status","avty_t":"~online","pl_avail":"true","pl_not_avail":"false","cmd_on_tpl":"{\"turn\":\"on\"{%if brightness is defined%},\"brightness\":{{brightness|float|multiply(0.3922)|round}}{%endif%}}","cmd_off_tpl":"{\"turn\":\"off\"}","stat_tpl":"{%if value_json.ison%}on{%else%}off{%endif%}","bri_tpl":"{{value_json.brightness|float|multiply(2.55)|round}}","uniq_id":"shellydimmer2-d8bfc019d7ee-light-0","qos":"0","dev": {"ids": ["d8bfc019d7ee"],"name":"Shelly Dimmer 2 D8BFC019D7EE","mdl":"Shelly Dimmer 2","sw":"20201124-092706/v1.9.0@57ac4ad8","mf":"Allterco Robotics"},"~":"shellies/shellydimmer2-D8BFC019D7EE/"}
2020-12-09 14:32:51 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-D8BFC019D7EE-white-power-0/config {"name": "Shelly Dimmer 2 D8BFC019D7EE Power 0", "stat_t": "~light/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": "shellydimmer2-d8bfc019d7ee-white-power-0", "qos": 0, "dev": {"ids": ["d8bfc019d7ee"], "name": "Shelly Dimmer 2 D8BFC019D7EE", "mdl": "Shelly Dimmer 2", "sw": "20201124-092706/v1.9.0@57ac4ad8", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-D8BFC019D7EE/"}
2020-12-09 14:32:51 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-D8BFC019D7EE-white-energy-0/config {"name": "Shelly Dimmer 2 D8BFC019D7EE Energy 0", "stat_t": "~light/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": "shellydimmer2-d8bfc019d7ee-white-energy-0", "qos": 0, "dev": {"ids": ["d8bfc019d7ee"], "name": "Shelly Dimmer 2 D8BFC019D7EE", "mdl": "Shelly Dimmer 2", "sw": "20201124-092706/v1.9.0@57ac4ad8", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-D8BFC019D7EE/"}
2020-12-09 14:32:51 DEBUG (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shellydimmer2-D8BFC019D7EE-white-overpower-0/config {"name": "Shelly Dimmer 2 D8BFC019D7EE Overpower 0", "stat_t": "~light/0/overpower", "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": "shellydimmer2-d8bfc019d7ee-white-overpower-0", "qos": 0, "dev": {"ids": ["d8bfc019d7ee"], "name": "Shelly Dimmer 2 D8BFC019D7EE", "mdl": "Shelly Dimmer 2", "sw": "20201124-092706/v1.9.0@57ac4ad8", "mf": "Allterco Robotics"}, "~": "shellies/shellydimmer2-D8BFC019D7EE/"}
2020-12-09 14:32:51 ERROR (SyncWorker_2) [homeassistant.components.python_script.shellies_discovery.py] Error executing script: list index out of range
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/python_script/__init__.py", line 217, in execute
exec(compiled.code, restricted_globals)
File "shellies_discovery.py", line 2543, in <module>
File "/usr/local/lib/python3.8/site-packages/RestrictedPython/Eval.py", line 35, in default_guarded_getitem
return ob[index]
IndexError: list index out of range