Open CV-Private opened 4 months ago
There's plans to make some sort of a heartbeat functionality to poll whether a device is still there, but for now it doesn't have a priority. A way to work around this issue is having the CoV heartbeat shorter, like 120 seconds for example. This is a similar way to how Yabe does it.
Hmm.. can I configure the heartbeat in the current Add-On? I didn't find anything in your documentation about that option...
Even a complete HA restart didn't force the Add-On to re-subscribe. I had to manually delete and restore the old CoV subscription in order to get the system back to the operational state.
There currently is no heartbeat, just something I want to implement later.
As for resubscribing, restarting Home Assistant does nothing to the add-on. Only rebooting the host device will also restart the add-on. Instead, you can decrease the lifetime of a CoV subscription from 28800 to 120 seconds. This should resubscribe. If it doesn't, feel free to leave some logs so I can take a look at what's happening.
I had to turn the GTW-21 off and on, and I found that the Add-On did not re-subscribe to CoV after the BACnet device was power-cycled.
CoV subscriptions and polling were active before the power-cycle, but not thereafter. I see in Yabe that there are no active subscriptions, even though the Add-On has subscriptions in the list.
I'd propose to add a recovery mechanism that restores the previous operating state if the connections to the BACnet device was interrupted.