Are you sure this wasn't an OS issue? Do you use the USB device id (by-id) to access it, because serial port assignments can change.
post
I had a weird issue recently, where after a few reboots all the radios seemed to fail with weird errors.
In a similar vein to your solution, replugging them all worked, and after restarting the services they all came back.
And this was an install which (at the time) was quite a few versions behind.
I wondered if it was something strange with the way the USB devices were passed through the hypervisor, maybe a weird race condition where HAOS was ready, but the USBs were not...Anyway, all sorted, same as you!
I’ve had to hard reset my controllers (both Zwave and Zigbee) a few times now, haven’t really found a cause but it’s usually been around times when updates were applied. It almost seemed to me like the device wasn’t released by the old container and that needed a hard disconnect to force it. IIRC logs just showed a generic can’t connect to device error but no sign of what had the device locked. First time I did some investigation, the few times it’s happened since then I just unplugged and reconnected the usb device, restarted the container and it worked after.
I haven’t had it happen for a while at least.
- Get logs. Always bring logs.
- Rollback if available
- Check GitHub for issues on affected projects to try and localize where the problem is
all 6 comments