Issues with ZWave JS and Zigbee

Hi,

I’m new to the platform and started off on my raspberry pi 3 with an Aeon Z-wave stick and a Dresden Zigbee stick. All was working very well in the beginning but now both z-wave js and zigbee stops working daily and have to be manually restarted, just to work for a while and then die.

I thought my SD-card could be the issue so bought a new one (Sandisk A2 Extreme), worked great after restore for 2 days but now the issues are back.

The error I get is “Failed to setup, will retry”. The addon is up and running (green) but the integration(s) doesn’t work. If I hit ‘configure’ I get the following message: “Failed to connect: Cannot connect to host core-zwave-js:3000 ssl:default [Connect call failed (‘172.30.33.1’, 3000)]”.

Right now, reloading the integration doesn’t work.

Also I have noticed that often the UI says that home assistant is restarting, so I clearly have done something wrong.

I have some additional addons installed (Hacs, Google Drive backup, Cloudflared, Plejd).

Any ideas?

The log doesn’t always look like this, sometimes it starts up fine and later fail and integration can’t be restarted without a reboot.
---- Log Example —

                                · AssignReturnRoute (0x46)
                                · DeleteReturnRoute (0x47)
                                · RequestNodeNeighborUpdate (0x48)
                                · ApplicationUpdateRequest (0x49)
                                · AddNodeToNetwork (0x4a)
                                · RemoveNodeFromNetwork (0x4b)
                                · FUNC_ID_ZW_CREATE_NEW_PRIMARY (0x4c)
                                · FUNC_ID_ZW_CONTROLLER_CHANGE (0x4d)
                                · AssignPriorityReturnRoute (0x4f)
                                · FUNC_ID_ZW_SET_LEARN_MODE (0x50)
                                · AssignSUCReturnRoute (0x51)
                                · FUNC_ID_ZW_REQUEST_NETWORK_UPDATE (0x53)
                                · SetSUCNodeId (0x54)
                                · DeleteSUCReturnRoute (0x55)
                                · GetSUCNodeId (0x56)
                                · UNKNOWN_FUNC_SEND_SUC_ID (0x57)
                                · AssignPrioritySUCReturnRoute (0x58)
                                · FUNC_ID_ZW_EXPLORE_REQUEST_INCLUSION (0x5e)
                                · undefined (0x5f)
                                · RequestNodeInfo (0x60)
                                · RemoveFailedNode (0x61)
                                · IsFailedNode (0x62)
                                · ReplaceFailedNode (0x63)
                                · UNKNOWN_FUNC_UNKNOWN_0x66 (0x66)
                                · UNKNOWN_FUNC_UNKNOWN_0x67 (0x67)
                                · FirmwareUpdateNVM (0x78)
                                · GetRoutingInfo (0x80)
                                · UNKNOWN_FUNC_LOCK_ROUTE_RESPONSE (0x90)
                                · GetPriorityRoute (0x92)
                                · SetPriorityRoute (0x93)
                                · UNKNOWN_FUNC_UNKNOWN_0x98 (0x98)
                                · FUNC_ID_APPLICATION_SLAVE_COMMAND_HANDLER (0xa1)
                                · UNKNOWN_FUNC_UNKNOWN_0xB4 (0xb4)
                                · UNKNOWN_FUNC_WATCH_DOG_ENABLE (0xb6)
                                · UNKNOWN_FUNC_WATCH_DOG_DISABLE (0xb7)
                                · UNKNOWN_FUNC_WATCH_DOG_KICK (0xb8)
                                · UNKNOWN_FUNC_UNKNOWN_0xB9 (0xb9)
                                · UNKNOWN_FUNC_RF_POWERLEVEL_GET (0xba)
                                · UNKNOWN_FUNC_GET_LIBRARY_TYPE (0xbd)
                                · UNKNOWN_FUNC_SEND_TEST_FRAME (0xbe)
                                · UNKNOWN_FUNC_GET_PROTOCOL_STATUS (0xbf)
                                · FUNC_ID_ZW_SET_PROMISCUOUS_MODE (0xd0)
                                · FUNC_ID_PROMISCUOUS_APPLICATION_COMMAND_HANDLER (0xd1)
                                · UNKNOWN_FUNC_UNKNOWN_0xD2 (0xd2)
                                · UNKNOWN_FUNC_UNKNOWN_0xD3 (0xd3)
                                · UNKNOWN_FUNC_UNKNOWN_0xD4 (0xd4)
                                · undefined (0xee)
                                · UNKNOWN_FUNC_UNKNOWN_0xEF (0xef)

2023-10-24T06:40:12.262Z CNTRLR querying version info…
2023-10-24T06:40:12.375Z CNTRLR received version info:
controller type: Static Controller
library version: Z-Wave 6.07
2023-10-24T06:40:12.377Z CNTRLR querying protocol version info…
2023-10-24T06:40:12.434Z CNTRLR received protocol version info:
protocol type: Z-Wave
protocol version: 6.7.0
appl. framework build no.: 97
2023-10-24T06:40:12.438Z CNTRLR querying serial API setup capabilities…
2023-10-24T06:40:12.494Z CNTRLR supported serial API setup commands:
· GetSupportedCommands
· SetTxStatusReport
· SetPowerlevel
· GetPowerlevel
· GetMaximumPayloadSize
2023-10-24T06:40:12.497Z CNTRLR querying controller IDs…
2023-10-24T06:40:12.581Z CNTRLR received controller IDs:
home ID: 0xf84c07b5
own node ID: 1
2023-10-24T06:40:12.771Z CNTRLR Performing soft reset…
2023-10-24T06:40:12.801Z CNTRLR Waiting for the controller to reconnect…
2023-10-24T06:40:14.305Z CNTRLR Re-opening serial port…
2023-10-24T06:40:23.344Z DRIVER Failed to open the serial port: Error: No such file or directory, cannot open
/dev/ttyACM2
2023-10-24T06:40:23.351Z DRIVER Failed to initialize the driver: ZWaveError: The Serial API did not respond af
ter soft-reset (ZW0100)
at Driver.softResetInternal (/usr/src/node_modules/zwave-js/src/lib/driver
/Driver.ts:2567:11)
at Driver.initializeControllerAndNodes (/usr/src/node_modules/zwave-js/src
/lib/driver/Driver.ts:1427:5)
at Immediate. (/usr/src/node_modules/zwave-js/src/lib/driver/Dr
iver.ts:1208:5)
Error in driver ZWaveError: Failed to initialize the driver: ZWaveError: The Serial API did not respond after soft-reset (ZW0100)
at Driver.softResetInternal (/usr/src/node_modules/zwave-js/src/lib/driver/Driver.ts:2567:11)
at Driver.initializeControllerAndNodes (/usr/src/node_modules/zwave-js/src/lib/driver/Driver.ts:1427:5)
at Immediate. (/usr/src/node_modules/zwave-js/src/lib/driver/Driver.ts:1208:5) (ZW0100)
at Immediate. (/usr/src/node_modules/zwave-js/src/lib/driver/Driver.ts:1228:6) {
code: 100,
context: undefined,
transactionSource: undefined
}
Shutting down
[06:40:24] WARNING: Halt add-on
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

Hi there, lets start with the basics, have you got your two dongles on USB extension cables and running out of basic USB ports? If they are plugged directly into the Pi there can be a conflict.

Try using /dev/serial-by-id/

Hi,
thank you. Yes I have the two dongles attached to the USB ports on the raspberry. The z-wave is on a 1 meter extension cable and the zigbee dongle is attached directly to the pi.

Both addons are configured to use by-id so not sure why it is complaining about /dev/ttyACM2 (attaching screenshots).

You should disable soft-reset in the add-on configuration.

Thank you, trying this now. So far so good.

After a few days it looks like z-wave is doing better with this setting off. However I notice that it still fails, and when it does I go in and can see that the same setting has gone back to ‘automatic’ again. Changing i to ‘disabled’ and saving results in z-wave working again. But all in all a lot of manual work to get have it running continuously.

zigbee actually fails more than z-wave now and is always in a mode ‘failed to start, will retry’. I have moved the pi further from other equipment and tried to use max of my usb-extension so that the dongle is as far away as possible. Manually reloading works most of the time but not always.

I need to go and check the integrations several times per day and the overall feeling is that it is very unstable.

Any additional recommendations?