I have HA running in a VirtualBox VM. I have a USB passthru on a Zigbee/Z-Wave combo dongle. I had to set it to USB 1.1 passthru or it was super unreliable. Even with all that, the USB passthru stops working like every 7-10 days and all Zigbee stops working. So my questions are as follows:
- What entity/trigger do I use to detect a ZHA add-on failure?
- How do I make HA self-reboot on that? And like a full hardware (container) reboot not just the standard restart but a reboot. The reason for this is that a standard restart doesn’t typically bring it back. Actually, even a reboot sometimes won’t but it’s at least something.
- I also need a way to detect when the last reboot was (or even a way to keep a count/history) so it doesn’t keep rebooting over and over if it doesn’t bring back ZHA
In the absence of all that not working, I’d love a way to get the container restarted from outside virtual box. I have some ideas like if the reboot doesn’t bring back ZHA I could do a full shutdown. Then using a script on the host I can then have it restart the VM.
I think if it keeps doing this I’ll eventually have to get that external IP-based Zigbee bridge but I’m afraid of losing all my device configs. I know there’s a way of keeping it but I don’t want the headache just yet unless I have to.