Shellies Discovery Script

Yes, sorry:

2020-12-02 23:56:10 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Running automation actions
2020-12-02 23:56:10 INFO (MainThread) [homeassistant.components.automation.shellies_discovery] Shellies Discovery: Executing step call service
2020-12-02 23:56:10 INFO (SyncWorker_8) [homeassistant.components.python_script] Executing shellies_discovery.py: {'id': 'shellybulb-791857', 'mac': 600194791857, 'fw_ver': '20200812-090503/v1.8.0@8acf41b0', 'model': 'SHBLB-1'}
2020-12-02 23:56:10 ERROR (SyncWorker_8) [homeassistant.components.python_script.shellies_discovery.py] Error executing script: 'NoneType' object is not callable
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 448, in <module>
TypeError: 'NoneType' object is not callable

Fixed https://github.com/bieniu/ha-shellies-discovery/releases/tag/0.33.2

1 Like

New version: 0.34.0

Changelog:

  • firmware 1.9.0 is required BREAKING CHANGE
  • add overpower_value sensor for Shelly Dimmer / Dimmer 2
  • add shortpush , longpush and overpower sesnors for Shelly UNI
  • add support for external sensors for Shelly UNI
  • add event and event_cnt attributes to the input sensors
  • add position_template and set_posioton_template arguments for cover
1 Like

Thank you!

New version: 0.35.0

Changelog:

  • add support for Shelly Bulb RGBW
  • add force_update for opening sensors (Shelly DW/DW2)
  • change default expire_after values

I get this with 0.35.0:

Logger: homeassistant.components.python_script.shellies_discovery.py
Source: components/python_script/__init__.py:217
Integration: Python Scripts (documentation, issues)
First occurred: 11:56:32 (1 occurrences)
Last logged: 11:56:32

Error executing script: expire_after value 51839.99999999999 is not an integer
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 1920, in <module>
TypeError: expire_after value 51839.99999999999 is not an integer

Debug:

2020-12-07 12:05:31 INFO (SyncWorker_4) [homeassistant.components.python_script] Executing shellies_discovery.py: {'id': 'shellyht-9551AF', 'mac': 'E098069551AF', 'fw_ver': '20201124-091711/v1.9.0@57ac4ad8', 'model': 'SHHT-1'}
2020-12-07 12:05:31 DEBUG (SyncWorker_4) [homeassistant.components.python_script.shellies_discovery.py] id: shellyht-9551AF, mac: e098069551af, fw_ver: 20201124-091711/v1.9.0@57ac4ad8, model: SHHT-1
2020-12-07 12:05:31 ERROR (SyncWorker_4) [homeassistant.components.python_script.shellies_discovery.py] Error executing script: expire_after value 51839.99999999999 is not an integer
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 1920, in <module>
TypeError: expire_after value 51839.99999999999 is not an integer

Fixed via https://github.com/bieniu/ha-shellies-discovery/releases/tag/0.35.1

2 Likes

Awesome, you’re fast as always, good job & thanks!

1 Like

Not sure if I’m doing something wrong but I have shelly devices set up as QoS 2 from their interface

I’v also set up the script using the below:

- id: "shellies_discovery"
  alias: "Shellies Discovery"
  mode: queued
  max: 999
  trigger:
    platform: mqtt
    topic: shellies/announce
  action:
    service: python_script.shellies_discovery
    data_template:
      id: "{{ trigger.payload_json.id }}"
      mac: "{{ trigger.payload_json.mac }}"
      fw_ver: "{{ trigger.payload_json.fw_ver }}"
      model: "{{ trigger.payload_json.model }}"
      qos: 2

However when checking using MQTT Explorer all messages are marked as QoS 0

Would they show correctly on MQTT explorer? is there any other way I can check?

Thanks

I’ve been trying to get this to work, finally got my script executable and got python.scripts working, ran the automation. First I got a firmware version error, so I updated the shelly dimmer to 1.9. Now i get this:

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 2541, in
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

I’m using the latest push from the git repo as of the time of this post.

Please post debug log.

@Bieniu not sure if you asked me or @neothermic for the logs…

But I enabled debug logs anyway … and I actually got the same error in the logs as @neothermic

If you can reply my query on QoS and also the error it would be great

Couldn’t paste all the logs generated here as it was too long… see https://pastebin.pl/view/3a2ac2e8

Fixed https://github.com/bieniu/ha-shellies-discovery/releases/tag/0.35.3

Confirmed error is not thrown anymore.

Also ignore my QoS issue it seems I needed to setup MQTT explorer with QoS 2 as well to read correctly

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

I updated to your fixed release and it works! Leaving the log there in case it’s useful.
Thanks!

Hi! After upgrade my debian bullseye to python 3.9 shellies_discovery broke down… I used the script with great success all of this year. I have tried to reinstall the script from HACS, copied the latest Minimal configuration to automations.yaml.

Any idea what it could be?

Edit. There was a generic error in python_script

Please open issue here https://github.com/bieniu/ha-shellies-discovery/issues

@neothermic and @Raderarn please check the forum guidelines for how to format your posts better (format using ``` in text mode or use the code button in the toolbar). The way you’ve posted makes it hard to read the contents and creates a horrible experience for someone on a mobile device.

Sorry, edited now.

1 Like