Shellies Discovery Script

I have now tested the Button1 for a while. When I activate the push actions via web-ui and add url’s for a push action than it works and executes the url’s. However nothing happens via MQTT. I think the MQTT implementation is currently not support for the Button1 push events.

You should ask Shelly support for this. I think it’s a firmware problem. You can also ask about periodically send the topic “input_event”. In my opinion, this is also an issue. I asked about it on FB group, but no one answered. For a long time no one from Shelly Team answers me because I ask uncomfortable questions.

HI Bieniu, i have 4 Shelly 2.5 set as a cover, from some reason they get discovered as a switch and not as a cover.
i used the default automation script, BTW going to the device directly all is working fine
can you please assist

Without proper configuration the script doesn’t know that the device uses roller mode.

thank you , i got it

Look here https://github.com/bieniu/ha-shellies-discovery#device-arguments

just update the automation script and did a full reboot but still the 2.5 is configured only as a really not a roller
for each one i configure the name form MQTT like so am i missing anything ?
https://pastebin.com/RmkqV3Gc


i am on the latest fw for the 2.5 and latest HA

Show me please the debug log for python_script https://github.com/bieniu/ha-shellies-discovery#how-to-debug

2020-06-24 15:18:58 WARNING (MainThread) [homeassistant.components.http] The ‘base_url’ option is deprecated, please remove it from your configuration
2020-06-24 15:19:07 ERROR (SyncWorker_2) [homeassistant.components.python_script] Error loading script shellies_discovery.py: Line 6: SyntaxError: invalid syntax at statement: ‘’
2020-06-24 15:19:28 ERROR (SyncWorker_3) [homeassistant.components.python_script] Error loading script shellies_discovery.py: Line 6: SyntaxError: invalid syntax at statement: ‘’
2020-06-24 15:19:29 ERROR (SyncWorker_4) [homeassistant.components.python_script] Error loading script shellies_discovery.py: Line 6: SyntaxError: invalid syntax at statement: ‘’
2020-06-24 15:19:33 ERROR (SyncWorker_3) [homeassistant.components.python_script] Error loading script shellies_discovery.py: Line 6: SyntaxError: invalid syntax at statement: ‘’
2020-06-24 15:19:53 ERROR (Thread-9) [pychromecast.socket_client] [Bedroom TV(10.0.0.183):8009] Failed to connect to service MIBOX4-50eee887e2b342acd06cd8b61e416e04._googlecast._tcp.local., retrying in 5.0s
2020-06-24 15:20:25 WARNING (Thread-9) [pychromecast.socket_client] [Bedroom TV(10.0.0.183):8009] Heartbeat timeout, resetting connection
2020-06-24 15:21:08 WARNING (Thread-9) [pychromecast.socket_client] [Bedroom TV(10.0.0.183):8009] Heartbeat timeout, resetting connection

Are you sure the script is installed correctly?

i am not using hacs , i deployed manually base on the documentation
created the script directory copy the file and update configuration and automation file
can it be a permission issue ?for the script ?

but the script is ruining it discovered all 4 2.5 devices , the only issue is that they are not set a roller
just to check i configure one of the 2.5 back to really and then back to roller with no change

No, I suppose that you didn’t download the RAW version of the file.


copy by right click and save as then move it by SMB to the directory of my HA

The log doesn’t indicate that the script is working because HA can’t load it

This is not correct way!

EDIT:
You have to save the RAW version of the file https://raw.githubusercontent.com/bieniu/ha-shellies-discovery/master/python_scripts/shellies_discovery.py

OK just did it , no errors massage in the log but it still a relay not a roller

Debug log please.

Thanks you for your great script.
I have installed a EM3 and it only shows the following.


Is it possible to fix so it also shows Total consumtion, volt and current?