ZWaveError (ZW0202)

Over the last month, my Z-Wave network has been failing. When it fails I either have to restart my ZWavejs2Mqtt addon, or sometimes I have to restart my entire NUC to get my network to come back. It would then survive anywhere from a couple of days, to 20 minutes before the network would fail again.

I’ve been getting this error:

2021-11-19 14:02:32.557 ERROR ZWAVE-SERVER: Failed to send the message after 3 attempts (ZW0202)
ZWaveError: Failed to send the message after 3 attempts (ZW0202)
    at Driver.sendMessage (/opt/node_modules/zwave-js/src/lib/driver/Driver.ts:3274:23)
    at Driver.sendCommand (/opt/node_modules/zwave-js/src/lib/driver/Driver.ts:3419:28)
    at BinarySwitchCCAPI.set (/opt/node_modules/zwave-js/src/lib/commandclass/BinarySwitchCC.ts:114:21)
    at Proxy.BinarySwitchCCAPI.<computed> (/opt/node_modules/zwave-js/src/lib/commandclass/BinarySwitchCC.ts:129:14)
    at ZWaveNode.setValue (/opt/node_modules/zwave-js/src/lib/node/Node.ts:827:14)
    at Function.handle (/opt/node_modules/@zwave-js/server/dist/lib/node/message_handler.js:19:44)
    at Object.node (/opt/node_modules/@zwave-js/server/dist/lib/server.js:39:91)
    at Client.receiveMessage (/opt/node_modules/@zwave-js/server/dist/lib/server.js:95:99)
    at WebSocket.<anonymous> (/opt/node_modules/@zwave-js/server/dist/lib/server.js:48:45)
    at WebSocket.emit (node:events:390:28)

Does anyone have any suggestions? I’m not sure if my Aeotec Z-Wave gen 5 stick is failing, or what’s going on.

Where were those logs from? Zwavejs2mqtt actually produces logs in two different places - application logs and driver logs. Instructions to obtain both are below. You can generate both types of logs and try posting them to get additional info.

https://zwave-js.github.io/zwavejs2mqtt/#/troubleshooting/generating-logs

I’d suspect maybe interference? But would need more to tell. Is the zstick plugged in directly to the NUC? The zwavejs developers generally suggest an extension cord to minimize interference. Not your exact issue but some ideas from the developers for interference problems are on this link

Someone else may be able to decipher your logs and offer a solution better then I can though.

I was pulling that specific log from the addon log function. I’ve turned on the logs from inside of ZWavejs2Mqtt and will wait for the controller to fail again and see what it kicks out.

My ZStick is already attached to a two-foot USB extender to keep it away from the NUC, not sure if it needs to be longer or not. However, it’s been attached to that extender for over a year now and have not had problems with anything until the last month.

I would think two feet would be fine to stop interference from the NUC. We’ll see what the other logs say, also note turning on the debug logging sometimes slows things down a bit until you turn it back off. Any new zwave devices added in the last month or other configuration/hardware changes made?