rstrouse / ESPSomfy-RTS

A controller for Somfy RTS shades and blinds
The Unlicense
442 stars 32 forks source link

MQTT Auto Discovery not available after restart of client #241

Closed xvisor16 closed 6 months ago

xvisor16 commented 6 months ago

After an MQTT-AD client is restarted the ESPSomfy-RTS stays uncontrollable until a reboot of ESPSomfy. This means that every time you need to completely restart ESPSomfy after an update of the MQTT client software. Other solutions like Zigbee2mqtt or ZwaveJSUImqtt don't need that they are available after just a few seconds after restart. Probably this has to do with those tools continuously sending data out to MQTT. Is at possible to have ESPSomfy send a discovery/status packet or something every minute when the Publish Discovery box is ticked?

rstrouse commented 6 months ago

I'll look at what I can do.

rstrouse commented 6 months ago

In v2.3.1 the software will persist the disco topics and drop them when the reference is removed. This should allow the subscriber to catch these whenever they subscribe.

xvisor16 commented 6 months ago

Hi @rstrouse, I've updated to 2.3.1-pre. But this didn't help. The same effect occurs.

rstrouse commented 6 months ago

Install Main. I haven't had time to rebuild the pre-release yet with the new commit.

xvisor16 commented 6 months ago

Installed Main and the problem is solved! Thanks 🎉