Closed mzac closed 3 years ago
Thinking about this... I don't think the info needs to be retained. Each mqtt config and state message needs to be retained. Still thinking.
@roopesh what are some ways you would like the availability tested?
This is how I tested:
I will confirm that it does work. Shutting down AD and the devices become unavailable, restarting HA the entities stay and show unavailable, and restarting AD they come back from unavailable.
@smwoodward I think you had some use cases with HomeKit and customizing entities as well.
@roopesh correct. The entities do stay passed into HomeKit and show as "no response" if AD is shut down.
I notice that when I restart Home Assistant all the entities disappear and I need to re-start AppDaemon to get them back.
Could the message that sends the info, ie the config of the entities be set with a retain flag in mqtt?