I have updated to 0.29.2 and error was still occurring:
Logger: homeassistant.components.python_script.shellies_discovery.py
Source: components/python_script/__init__.py:205
Integration: Python Scripts (documentation, issues)
First occurred: 10:32:10 (1 occurrences)
Last logged: 10:32:10
Error executing script: is wrong id argument
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/python_script/__init__.py", line 205, in execute
exec(compiled.code, restricted_globals)
File "shellies_discovery.py", line 434, in <module>
ValueError: is wrong id argument
After enabling debugging, restarting HA and running automations I can’t reproduce the errors:
2020-09-10 10:46:43 INFO (MainThread) [homeassistant.components.automation.shellies_announce] Executing Shellies Announce
2020-09-10 10:46:43 INFO (MainThread) [homeassistant.components.automation.shellies_announce] Shellies Announce: Running script
2020-09-10 10:46:43 INFO (MainThread) [homeassistant.components.automation.shellies_announce] Shellies Announce: Executing step call service
2020-09-10 10:46:43 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Executing Shellies Discovery
2020-09-10 10:46:43 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Running script
2020-09-10 10:46:43 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Executing step call service
2020-09-10 10:46:43 INFO (SyncWorker_14) [homeassistant.components.python_script] Executing shellies_discovery.py: {'id': 'shelly1-garage', 'mac': 'E098069614C9', 'fw_ver': '20200827-065344/v1.8.3@4a8bc427', 'model': 'SHSW-1', 'shelly1-garage': {'relay-0': 'light', 'ext-temperature-0': True, 'force_update_sensors': True}}
2020-09-10 10:46:43 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] id: shelly1-garage, mac: e098069614c9, fw_ver: 20200827-065344/v1.8.3@4a8bc427, model: SHSW-1
2020-09-10 10:46:43 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/switch/shelly1-garage-relay-0/config
2020-09-10 10:46:43 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/light/shelly1-garage-relay-0/config {"name": "Shelly 1 garage 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": "shelly1-garage-relay-0", "qos": 0, "dev": {"ids": ["e098069614c9"], "name": "Shelly 1 garage", "mdl": "Shelly 1", "sw": "20200827-065344/v1.8.3@4a8bc427", "mf": "Allterco Robotics"}, "~": "shellies/shelly1-garage/"}
2020-09-10 10:46:43 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/fan/shelly1-garage-relay-0/config
2020-09-10 10:46:43 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1-garage-input-0/config {"name": "Shelly 1 garage Input 0", "stat_t": "~input/0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "shelly1-garage-input-0", "qos": 0, "dev": {"ids": ["e098069614c9"], "name": "Shelly 1 garage", "mdl": "Shelly 1", "sw": "20200827-065344/v1.8.3@4a8bc427", "mf": "Allterco Robotics"}, "~": "shellies/shelly1-garage/", "pl_on": "1", "pl_off": "0"}
2020-09-10 10:46:43 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1-garage-longpush-0/config {"name": "Shelly 1 garage Longpush 0", "stat_t": "~longpush/0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "shelly1-garage-longpush-0", "qos": 0, "dev": {"ids": ["e098069614c9"], "name": "Shelly 1 garage", "mdl": "Shelly 1", "sw": "20200827-065344/v1.8.3@4a8bc427", "mf": "Allterco Robotics"}, "~": "shellies/shelly1-garage/", "off_dly": 2, "pl_on": "1", "pl_off": "0"}
2020-09-10 10:46:43 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1-garage-shortpush-0/config {"name": "Shelly 1 garage Shortpush 0", "stat_t": "~longpush/0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "shelly1-garage-shortpush-0", "qos": 0, "dev": {"ids": ["e098069614c9"], "name": "Shelly 1 garage", "mdl": "Shelly 1", "sw": "20200827-065344/v1.8.3@4a8bc427", "mf": "Allterco Robotics"}, "~": "shellies/shelly1-garage/", "off_dly": 2, "pl_on": "0", "pl_off": "1"}
2020-09-10 10:46:43 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1-garage-rssi/config {"name": "Shelly 1 garage RSSI", "stat_t": "~info", "exp_aft": 43200, "frc_upd": "True", "uniq_id": "shelly1-garage-rssi", "qos": 0, "dev": {"ids": ["e098069614c9"], "name": "Shelly 1 garage", "mdl": "Shelly 1", "sw": "20200827-065344/v1.8.3@4a8bc427", "mf": "Allterco Robotics"}, "~": "shellies/shelly1-garage/", "unit_of_meas": "dB", "dev_cla": "signal_strength", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "val_tpl": "{{value_json['wifi_sta'].rssi}}"}
2020-09-10 10:46:43 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1-garage-ssid/config {"name": "Shelly 1 garage SSID", "stat_t": "~info", "exp_aft": 43200, "frc_upd": "True", "uniq_id": "shelly1-garage-ssid", "qos": 0, "dev": {"ids": ["e098069614c9"], "name": "Shelly 1 garage", "mdl": "Shelly 1", "sw": "20200827-065344/v1.8.3@4a8bc427", "mf": "Allterco Robotics"}, "~": "shellies/shelly1-garage/", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "val_tpl": "{{value_json['wifi_sta'].ssid}}", "icon": "mdi:wifi"}
2020-09-10 10:46:43 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1-garage-uptime/config {"name": "Shelly 1 garage Uptime", "stat_t": "~info", "exp_aft": 43200, "frc_upd": "True", "uniq_id": "shelly1-garage-uptime", "qos": 0, "dev": {"ids": ["e098069614c9"], "name": "Shelly 1 garage", "mdl": "Shelly 1", "sw": "20200827-065344/v1.8.3@4a8bc427", "mf": "Allterco Robotics"}, "~": "shellies/shelly1-garage/", "dev_cla": "timestamp", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "val_tpl": "{{(as_timestamp(now())-value_json.uptime)|timestamp_local}}", "icon": "mdi:timer-outline"}
2020-09-10 10:46:43 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1-garage-ext-0/config
2020-09-10 10:46:43 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1-garage-ext-1/config
2020-09-10 10:46:43 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1-garage-ext-2/config
2020-09-10 10:46:43 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1-garage-ext-temperature-0/config {"name": "Shelly 1 garage External Temperature 0", "stat_t": "~ext_temperature/0", "val_tpl": "{%if value != 999%}{{value|float|round(1)}}{%endif%}", "unit_of_meas": "°C", "dev_cla": "temperature", "exp_aft": 43200, "frc_upd": "True", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "shelly1-garage-ext-temperature-0", "qos": 0, "dev": {"ids": ["e098069614c9"], "name": "Shelly 1 garage", "mdl": "Shelly 1", "sw": "20200827-065344/v1.8.3@4a8bc427", "mf": "Allterco Robotics"}, "~": "shellies/shelly1-garage/"}
2020-09-10 10:46:43 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1-garage-ext-temperature-1/config
2020-09-10 10:46:43 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1-garage-ext-temperature-2/config
2020-09-10 10:46:43 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/sensor/shelly1-garage-ext-humidity-0/config {"name": "Shelly 1 garage External Humidity 0", "stat_t": "~ext_humidity/0", "val_tpl": "{%if value!=999%}{{value|float|round(1)}}{%endif%}", "unit_of_meas": "%", "dev_cla": "humidity", "exp_aft": 43200, "frc_upd": "True", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "shelly1-garage-ext-humidity-0", "qos": 0, "dev": {"ids": ["e098069614c9"], "name": "Shelly 1 garage", "mdl": "Shelly 1", "sw": "20200827-065344/v1.8.3@4a8bc427", "mf": "Allterco Robotics"}, "~": "shellies/shelly1-garage/"}
2020-09-10 10:46:43 DEBUG (SyncWorker_14) [homeassistant.components.python_script.shellies_discovery.py] Sending to MQTT broker: homeassistant/binary_sensor/shelly1-garage-firmware-update/config {"name": "Shelly 1 garage Firmware Update", "stat_t": "~info", "uniq_id": "shelly1-garage-firmware-update", "qos": 0, "dev": {"ids": ["e098069614c9"], "name": "Shelly 1 garage", "mdl": "Shelly 1", "sw": "20200827-065344/v1.8.3@4a8bc427", "mf": "Allterco Robotics"}, "~": "shellies/shelly1-garage/", "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}}"}
No idea what’s happened…