I do not understand why Zwave is frequently not working

I do not understand why Zwave is frequently not working. Recently about once a day my Zwave (with 64 devices) stops working. After restarting HA it works again.
I am relatively not technical and do not understand the log. Can someone see something that indicates what the problem is ?

This is part of the log (which is too large to add to this post) :

e[90m2026-03-25 08:00:36.914e[39m e[31mERRORe[39m e[1mMQTTe[22m: Mqtt client error Connection refused: Not authorized
ErrorWithReasonCode: Connection refused: Not authorized
    at handleConnack (/opt/node_modules/mqtt/src/lib/handlers/connack.ts:47:15)
    at handle (/opt/node_modules/mqtt/src/lib/handlers/index.ts:49:17)
    at work (/opt/node_modules/mqtt/src/lib/client.ts:793:17)
    at Writable.writable._write (/opt/node_modules/mqtt/src/lib/client.ts:817:4)
    at writeOrBuffer (/opt/node_modules/readable-stream/lib/internal/streams/writable.js:336:12)
    at _write (/opt/node_modules/readable-stream/lib/internal/streams/writable.js:285:10)
    at Writable.write (/opt/node_modules/readable-stream/lib/internal/streams/writable.js:288:10)
    at Socket.ondata (node:internal/streams/readable:1008:24)
    at Socket.emit (node:events:508:28)
    at addChunk (node:internal/streams/readable:559:12)
e[90m2026-03-25 08:00:36.918e[39m e[32mINFOe[39m e[1mMQTTe[22m: MQTT client closed

Does this mean anything ? If not where should I look ?

HAOS?
What version zwave?

If you connect zwave with mqtt, try changing to websocket. This is done in zwavejs or zwavejsui integration settings.

Your logs show mqtt disconnect so if you are connect zwave with mqtt you will loss zwave connectivity when mqtt is down.

zwave-js-ui: 11.11.0
zwave-js: 15.20.1
home id: 4215020659
home hex: 0xfb3c1c73

Did you try enable websocket or verify if you using mqtt for zwave

I will try this weekend. Thanks

Where in Zwave JS do I see that it is either mqtt or websocket ?

In zwavejsui it is in settings >> Homeassitant

If you’re using zwavejs, pretty sure it’s in the addon settings.

I guess that I am lost…
In Apps Zwave JS shows as off and Zwave JS UI shows as on . I read in the forum that Zwave JS UI is not beinb maintained and I set the Zwave JS UI as off and Zwave JS as on. I then restarted HA and Zwave did not work. Then I did the reverse and rebooted my Yellow Box. It now works.
However I did not find the settings in either Zwave JS and Zwave JS UI.

Was it working before making any changes?

Zwavejsui replaced zwavejs as the addon in February. This would have happened when upgrading HAOS.

Zwavejsui web frontend is in the menu options of the hamburger menu in HA’s UI. There you should find settings options and in the setting Homeassitant options. Websocket should be there

I found it. THANKS. How do I change this to Websocket ?

I found how to change it and hope that it works.

Unfortunately, it’s not that simple to switch apps. See the steps here if you want to migrate:

Migration is not needed as he says it was already using zwave js ui.

Well, he said he turned ZWave JS UI off, and ZWave JS on. That doesn’t work - you need to migrate, not just turn off one app and turn on the other. Unless I’m missing something…

1 Like

I now understand that it is not that simple

Zwavejsui was turned back on and zwavejs off and all worked minus didn’t know how to enable websocket but that was resolved later. Now just waiting to see if it fails again

Not sure if zwavejs addon should be removed but not an issue for now. Normally I would say yes but best to wait for now

1 Like

Unfortunately this morning my Zwave is totally down.
In Zwave JS UI I get the following message:

ID Power Manufacturer Product P
Items per page: 0-0 of 0
CONTROLLER STATISTICS arrow_drop_down multiline_chart COMPACT
search Search COLUMNS table_chart
FILTER SELECTED RESET TABLE
check_box_outline_blank filter_list arrow_upward filter_list filter_list filter_list filter_list
10 arrow_drop_down first_page chevron_left chevron_right last_page menu
Driver: Failed to initializ… menu help swap_horizontal_circle info history troubleshoot refresh
Driver: Failed to initialize the driver: ZWaveError: Timeout while
waiting for an ACK from the controller (ZW0200) at
Driver.sendMessage (file:///opt/node_modules/zwavejs/
src/lib/driver/Driver.ts:7191:23) at
ZWaveController.queryCapabilities
(file:///opt/node_modules/zwavejs/
src/lib/controller/Controller.ts:1075:37) at
Driver.initializeControllerAndNodes
(file:///opt/node_modules/zwave-js/src/lib/driver/Driver.ts:2024:46)
at Immediate.<anonymous> (file:///opt/node_modules/zwavejs/
src/lib/driver/Driver.ts:1736:16) (ZW0100)
Error: Driver: Failed to initialize the driver: ZWaveError: Timeout
while waiting for an ACK from the controller (ZW0200) at
Driver.sendMessage (file:///opt/node_modules/zwavejs/
src/lib/driver/Driver.ts:7191:23) at
ZWaveController.queryCapabilities
(file:///opt/node_modules/zwavejs/
src/lib/controller/Controller.ts:1075:37) at
Driver.initializeControllerAndNodes
(file:///opt/node_modules/zwave-js/src/lib/driver/Driver.ts:2024:46)
at Immediate.<anonymous> (file:///opt/node_modules/zwavejs/
src/lib/driver/Driver.ts:1736:16) (ZW0100)

Try pasting your logs into ChatGPT or Gemini or whatever AI tool you use. I have found that I often get a quick answer as to what is going on and one or more options/suggestions as to how to fix it. Not every answer is perfect, but it sure beats poring over dozens or hundreds of lines in search of that one thing… at least as a starting point!

I have not resolved the issue yet but putting it in Gemini is indeed very helpful. I am working on it.

“Failed to initialize the driver” generally points to the software not connecting to the USB controller.

Since you have both zwave js and zwave js ui installed please uninstall zwave js. Backup HA before doing anything.

After that you can try things like verify usb power to controller is ok. Sometimes usb port id under powered. You can try anoth usb port or usb hub or it’s recommended to use usb extender because direct connect to usb port causes issues on some devices

Another cause could be communication issue with zwave devices. I had a device with high tx/rx true to distance from controller that would cause HA and zwave network to go down. If you suspect a device has comm issues you can check its stats when network comes back up.

What host machine are you using? Pi, PC, make , model ?

What controller you have?

Look where you enable/disable zwavejs and zwavejsui previously. Did that change?

Did your ha server reboot prior to this issue?