I’m struggling with the discovery of my Shellies, ok I only have H&T and Smoke, yet.
I feel that I have done everything correctly (Mosquitto broker, MQTT, Python, and the YAMLs, but the devices won’t appear.
As they are battery driven (even USB connected) I woke them up and run Shellies Announce Gen2 manually, but still no device. I only see the MQTT integration itself
configuration.yaml
python_scrippt: added
Python scriptshellies_discovery_gen2.py is under config/python_scripts
automation.yaml
I even added my known three devices under device ids
device_ids: # enter the list of device IDs (MQTT prefixes) here
- shellyhtg3-e4b3232f910c
- shellyhtg3-e4b323309d20
- shellyplussmoke-2cbcbbf7568c
I see the Shellies in Mosquitto
With MQTT Explorer I see the correct values of the devices, connecting every 5 minutes (H&T) and delivering them
In the Automation I see both Shellies Announce Gen2 Shellies Discovery Gen2
but I only have traces for Announce, but none for Discovery.
It seems it won’t be triggered ?
The docs saying it cannot be run manually as it need the variables passed.
Shelly device must send the response to the shellies_discovery topic.
Remember that battery-powered devices (even if powered by USB) must be awake when the announce automation is triggered.