Zwave JS error


updated to ZWave JS UI 1.62 with HA 2023.2.2 and was getting an error that could connect to my Z-wave controller. Deleted the integration to start from fresh. HA does detect the integration but fails to set it up. Here the error I get:

2023-02-06 11:29:50.136 ERROR MQTT: Mqtt client error Connection refused: Not authorized
Error: Connection refused: Not authorized
at MqttClient._handleConnack (/opt/node_modules/mqtt/lib/client.js:1388:17)
at MqttClient._handlePacket (/opt/node_modules/mqtt/lib/client.js:549:12)
at work (/opt/node_modules/mqtt/lib/client.js:438:12)
at Writable.writable._write (/opt/node_modules/mqtt/lib/client.js:452:5)
at doWrite (/opt/node_modules/readable-stream/lib/_stream_writable.js:409:139)
at writeOrBuffer (/opt/node_modules/readable-stream/lib/_stream_writable.js:398:5)
at Writable.write (/opt/node_modules/readable-stream/lib/_stream_writable.js:307:11)
at Socket.ondata (node:internal/streams/readable:766:22)
at Socket.emit (node:events:513:28)
at Socket.emit (node:domain:489:12)

Anyone can help?

MQTT is not needed
Not authorized probably mean you need user/pass for your mqtt but since not needed should be no worry.

Turn OFF MQTT and turn ON websocket

Look under the homeassistant section of setup documentation

Thanks. Did that unfortunately still the same error.

Just realized that I needed to setup the Zwave JS integration again. It then detected the z-wave controller directly with no issues.

Are younusing the zwavejsui addon and zwavejs integration? You only need one of the 2.