ZWave network hangs - USB stick fluctuating?

I’m using ZWave-JS with a Sigma Designs USB Z-Wave dongle. Home Assistant is running in a Virtual Box VM on a Linux Mint PC, and the USB stick is passed through in Virtual Box.

I have an issue from time to time with the the Z-Wave network not responding and this is fixed by restarting the Z-Wave JS add-on. So I’ve created an automation to restart the add-on every hour.
I’ve noticed the following messages in the Supervisor Log, which I suspect could be the cause of this. Is this something that Home Assistant is doing itself (I’ve noticed the log also contains regular references to system checks, autofixes, information reloads, updating local network configurations etc that it must run on a scheduled basis) or does it look like a symptom of something going wrong with the connectivity to the USB dongle?

21-11-10 17:24:49 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.REMOVE hardware /dev/ttyACM0 - /dev/serial/by-id/usb-0658_0200-if00
21-11-10 17:24:49 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.REMOVE hardware /dev/bus/usb/002/003 - None
21-11-10 17:24:52 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.ADD hardware /dev/bus/usb/002/004 - None
21-11-10 17:24:52 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.ADD hardware /dev/ttyACM0 - /dev/serial/by-id/usb-0658_0200-if00
21-11-10 17:25:22 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.REMOVE hardware /dev/ttyACM0 - /dev/serial/by-id/usb-0658_0200-if00
21-11-10 17:25:22 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.REMOVE hardware /dev/bus/usb/002/004 - None
21-11-10 17:25:25 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.ADD hardware /dev/bus/usb/002/005 - None
21-11-10 17:25:25 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.ADD hardware /dev/ttyACM0 - /dev/serial/by-id/usb-0658_0200-if00

I have nearly an identical setup and don’t experience this problem. Do you use a usb extension cord that will get usb z-wave stick away from the computer. I have had very few problems once I did that. My extension is 3’ but I have had up to 12’ extension and it worked fine.

Yes I do, in fact it wouldn’t work at all when plugged directly into the computer. I think the cable is about 7’ Maybe I should try experimenting with different cables.

I am assuming you set up usb in VirtualBox but just in case:

Any chance the port might be going bad?

Any chance there is an upgrade to the extension pack that you need?

Just trying to provide ideas.

Yes, it’s all set up correctly in VirtualBox and I’m pretty sure I’m up to date with the software. I’ve just swapped the USB cable out for a shorter one and I’ll see how that goes, then I can look further into the software and the USB port if there are still issues. Thank you for the suggestions. I think I can be confident though that it’s not something that HA could be causing by its regular housekeeping/maintenance routines as no-one’s homing in on that!

Though it is worth being aware, that the ZWaveJS server (both ZWaveJS and ZWaveJS2MQTT) now soft resets the stick when the addon is started (or crashes and restarts). Virtual Box (and indeed any Hypervisor) will see the soft reset as hardware being removed from the port and then inserted. The Home Assistant log may simply be evidence that you need to look closer as the ZWaveJS log to see if it is actually crashing. (You can turn the soft reset option off in ZWaveJS2MQTT - I’m not sure about ZWaveJS)

Oh, that’s interesting! However, the current latest release of ZWave-JS had a single entry in its change log:

0.1.47

Disable soft-reset if VM is detected

So it’s probably not the problem in this case, unless of course that fix isn’t working. I did wonder what it meant, so thanks for the explanation!

If the soft reset is still triggering and you’re using vbox, open an issue on the addon’s repo and report it please.

How do I know if the soft reset as triggered? Does it appear in the ZWave JS logs and if so how do I view past events there, there doesn’t appear to be a scrollbar?

Yes it shows up in the logs.

No idea I don’t use HAOS/Supervised.