New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set retain flag on configuration messages? #240
Comments
This seems like a bad idea to me. Especially, given that these are supposed to be dynamic. |
As noted in the documentation, the script monitors for Home Assistant birth/last will messages which publish online/offline message to homeassistant/status topic so it knows to resend config and state data on Home Assistant restart. I'm sure you could make an automation to get OpenHAB to do the same (since you are using Home Assistant discovery I could argue that not providing compatible online/offline status is really an OpenHAB issue), or maybe OpenHAB also supports birth/last will messages although right now the script is hard coded to only look for them on the homeassistant/status topic and the legacy hass/status topic. In the past I used to allow the status topic to be configured but I removed that quite a long time ago as the vast majority of people just used the default and I don't like having tons of unused features. In general, the problem with setting the retain flag on discovery messages is two fold:
When I first started this project I used retain for a few things and it was just a nightmare and I learned to hate it from a support perspective, so I just don't have any desire change it at this point as this project is too widely used and generates very few issues. |
It could be helpful to set "retain" flag on homeassistant configuration messages.
Now they are not retained, which means that ring-mqtt needs to be restarted a couple of times for devices to be properly discovered and configured.
Running ring-mqtt with mosquitto and openhab mqtt broker (which natively supports homeassistant auto-discovery and configuration).
And thank you, awesome piece of software!!
The text was updated successfully, but these errors were encountered: