-
Notifications
You must be signed in to change notification settings - Fork 23
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
Lamp delation #47
Comments
@dgomes ?? |
and how will you distinguish those ? I think we should move away from retained topics and publish the topics upon home assistant restart |
We can get list from mqtt server and compare records in topic.
I don't think that I understand what you mean |
discovery topics need to be there only during HA start, you don't need to "store" them in the MQTT broker using the retain flag. Each time HA starts it already publishes a message, dali2mqtt should subscribe to that message and publish all the lamps without retain flag, in this way there is no need to clear topics as they are never retained. |
fallows conversation from #39 (comment)
Will you to accept PR with code for deleting missing lamps(remove from device.yaml)? By deleting I'm mean cleaning mqtt on the broker by the dali2mqtt. I know it's hack but it will help mqtt entity in the HA to stay clean.
The text was updated successfully, but these errors were encountered: