ZwaveJS 0.7.0 breaking my Zwave

Hey,
Not sure the right place to be posting this, as its all a bit confusing.
So thought I’d start here.

Using a Aeotec Stick gen5, plugged into a VM and using ZwaveJS.

All has been running perfectly well, until I ran the 0.7.0 update yesterday and lost my zwave network. Seemed the USB stick stopped being recognised as the logs were showing that it couldn’t load the drivers.

After swapping USB ports, reboots, etc, nothing would get the zwave network back until I reverted back to 0.6.2 and rebooted and all was back up and running.

Not sure the right avenue to report this issue, or if anyone else has ran into the same problem.

Hoping to find a solution or at least report this as a bug.

2 Likes

Same here.

1 Like

Okay, comforting to know its not just me.

What hardware are you running?

Same here! Exactly the same setup as OP.


                                    · StopWatchdog (0xd3)
                                    · SetMaximumRoutingAttempts (0xd4)
                                    · undefined (0xee)
                                    · undefined (0xef)
2024-09-12T15:20:28.400Z CNTRLR   querying additional controller information...
2024-09-12T15:20:28.514Z CNTRLR   received additional controller information:
                                    Z-Wave API version:         8 (legacy)
                                    Z-Wave chip type:           ZW050x
                                    node type                   Controller
                                    controller role:            primary
                                    controller is the SIS:      true
                                    controller supports timers: false
                                    Z-Wave Classic nodes:       1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 15, 16, 17, 
                                  18, 19, 20, 21, 22, 24, 26, 28, 35, 39, 45, 47, 48, 49, 51, 53, 54, 55, 59, 60
                                  , 61, 62, 63, 64, 65, 66, 67, 70, 71, 73, 74, 75, 76, 78, 82, 83, 84, 89, 91, 
                                  94, 95, 99, 100, 101, 104, 105, 114, 115, 116, 120, 122, 123, 129, 130, 133, 1
                                  35, 136
2024-09-12T15:20:28.514Z CNTRLR   querying version info...
2024-09-12T15:20:28.524Z CNTRLR   received version info:
                                    controller type: Static Controller
                                    library version: Z-Wave 6.07
2024-09-12T15:20:28.524Z CNTRLR   querying protocol version info...
2024-09-12T15:20:28.531Z CNTRLR   received protocol version info:
                                    protocol type:             Z-Wave
                                    protocol version:          6.7.0
                                    appl. framework build no.: 97
2024-09-12T15:20:28.531Z CNTRLR   querying controller capabilities...
2024-09-12T15:20:28.541Z CNTRLR   received controller capabilities:
                                    controller role:      Primary
                                    is the SUC:           true
                                    started this network: true
                                    SIS is present:       true
                                    was real primary:     true
2024-09-12T15:20:28.541Z CNTRLR   querying serial API setup capabilities...
2024-09-12T15:20:28.547Z CNTRLR   supported serial API setup commands:
                                  · GetSupportedCommands
                                  · SetTxStatusReport
                                  · SetPowerlevel
                                  · GetPowerlevel
                                  · GetMaximumPayloadSize
2024-09-12T15:20:28.547Z CNTRLR   querying max. payload size...
2024-09-12T15:20:28.554Z CNTRLR   maximum payload size: 46 bytes
2024-09-12T15:20:28.554Z CNTRLR   supported Z-Wave features: 
                                    · SmartStart
2024-09-12T15:20:28.555Z CNTRLR   Performing soft reset...
2024-09-12T15:20:28.558Z CNTRLR   Waiting for the controller to reconnect...
2024-09-12T15:20:30.060Z CNTRLR   Waiting for the Serial API to start...
2024-09-12T15:20:35.064Z CNTRLR   Did not receive notification that Serial API has started, checking if it respo
                                  nds...
2024-09-12T15:20:35.066Z CNTRLR   Failed to execute controller command after 1/3 attempts. Scheduling next try i
                                  n 100 ms.
2024-09-12T15:20:35.168Z CNTRLR   Failed to execute controller command after 2/3 attempts. Scheduling next try i
                                  n 1100 ms.
2024-09-12T15:20:36.271Z CNTRLR   Serial API did not respond, trying again in 2 seconds...
2024-09-12T15:20:38.274Z CNTRLR   Failed to execute controller command after 1/3 attempts. Scheduling next try i
                                  n 100 ms.
2024-09-12T15:20:38.375Z CNTRLR   Failed to execute controller command after 2/3 attempts. Scheduling next try i
                                  n 1100 ms.
2024-09-12T15:20:39.477Z CNTRLR   Serial API did not respond, trying again in 5 seconds...
2024-09-12T15:20:44.482Z CNTRLR   Failed to execute controller command after 1/3 attempts. Scheduling next try i
                                  n 100 ms.
2024-09-12T15:20:44.583Z CNTRLR   Failed to execute controller command after 2/3 attempts. Scheduling next try i
                                  n 1100 ms.
2024-09-12T15:20:45.685Z CNTRLR   Serial API did not respond, trying again in 10 seconds...
2024-09-12T15:20:55.690Z CNTRLR   Failed to execute controller command after 1/3 attempts. Scheduling next try i
                                  n 100 ms.
2024-09-12T15:20:55.791Z CNTRLR   Failed to execute controller command after 2/3 attempts. Scheduling next try i
                                  n 1100 ms.
2024-09-12T15:20:56.894Z CNTRLR   Serial API did not respond, trying again in 15 seconds...
2024-09-12T15:21:11.910Z CNTRLR   Failed to execute controller command after 1/3 attempts. Scheduling next try i
                                  n 100 ms.
2024-09-12T15:21:12.010Z CNTRLR   Failed to execute controller command after 2/3 attempts. Scheduling next try i
                                  n 1100 ms.
2024-09-12T15:21:13.112Z CNTRLR   Serial API did not respond, giving up
2024-09-12T15:21:13.113Z 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:2900:11)
                                      at Driver.initializeControllerAndNodes (/usr/src/node_modules/zwave-js/src
                                  /lib/driver/Driver.ts:1539:5)
                                      at Immediate.<anonymous> (/usr/src/node_modules/zwave-js/src/lib/driver/Dr
                                  iver.ts:1322: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:2900:11)
    at Driver.initializeControllerAndNodes (/usr/src/node_modules/zwave-js/src/lib/driver/Driver.ts:1539:5)
    at Immediate.<anonymous> (/usr/src/node_modules/zwave-js/src/lib/driver/Driver.ts:1322:5) (ZW0100)
    at Immediate.<anonymous> (/usr/src/node_modules/zwave-js/src/lib/driver/Driver.ts:1342:6) {
  code: 100,
  context: undefined,
  transactionSource: undefined
}
Shutting down
[15:21:13] 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

Restore backup and reload integration solves it.

For VM + 500-series, make sure soft-reset is disabled or you have USB passthrough configured to support hotplug devices. That shouldn’t be new, but check that first.

More info please, what is that?

EDIT:

That is new for me…

https://github.com/home-assistant/addons/blob/216238efe25096e1e4d647956a9d937ef833b431/zwave_js/DOCS.md#option-soft_reset-optional

“Automatic” only works if you install some specific HAOS VM images.

Oh Wow, that is a breaking change … did not read that anywhere… I use VMware ESXi with HAOS.

Yeah, but it wasn’t a new change for this version of the add-on compared to the previous version.

and after upgrade to 0.7.0 still same error:


                                    · AddPrimaryController (0x4d)
                                    · AssignPriorityReturnRoute (0x4f)
                                    · SetLearnMode (0x50)
                                    · AssignSUCReturnRoute (0x51)
                                    · RequestNetworkUpdate (0x53)
                                    · SetSUCNodeId (0x54)
                                    · DeleteSUCReturnRoute (0x55)
                                    · GetSUCNodeId (0x56)
                                    · SendSUCNodeId (0x57)
                                    · AssignPrioritySUCReturnRoute (0x58)
                                    · ExploreRequestInclusion (0x5e)
                                    · ExploreRequestExclusion (0x5f)
                                    · RequestNodeInfo (0x60)
                                    · RemoveFailedNode (0x61)
                                    · IsFailedNode (0x62)
                                    · ReplaceFailedNode (0x63)
                                    · UNKNOWN_FUNC_UNKNOWN_0x66 (0x66)
                                    · UNKNOWN_FUNC_UNKNOWN_0x67 (0x67)
                                    · FirmwareUpdateNVM (0x78)
                                    · GetRoutingInfo (0x80)
                                    · LockUnlockLastRoute (0x90)
                                    · GetPriorityRoute (0x92)
                                    · SetPriorityRoute (0x93)
                                    · UNKNOWN_FUNC_UNKNOWN_0x98 (0x98)
                                    · FUNC_ID_APPLICATION_SLAVE_COMMAND_HANDLER (0xa1)
                                    · undefined (0xb4)
                                    · EnableWatchdog500 (0xb6)
                                    · DisableWatchdog500 (0xb7)
                                    · KickWatchdog500 (0xb8)
                                    · UNKNOWN_FUNC_UNKNOWN_0xB9 (0xb9)
                                    · UNKNOWN_FUNC_RF_POWERLEVEL_GET (0xba)
                                    · GetLibrary (0xbd)
                                    · SendTestFrame (0xbe)
                                    · GetProtocolStatus (0xbf)
                                    · FUNC_ID_ZW_SET_PROMISCUOUS_MODE (0xd0)
                                    · FUNC_ID_PROMISCUOUS_APPLICATION_COMMAND_HANDLER (0xd1)
                                    · StartWatchdog (0xd2)
                                    · StopWatchdog (0xd3)
                                    · SetMaximumRoutingAttempts (0xd4)
                                    · undefined (0xee)
                                    · undefined (0xef)
2024-09-12T15:28:51.882Z CNTRLR   querying additional controller information...
2024-09-12T15:28:51.990Z CNTRLR   received additional controller information:
                                    Z-Wave API version:         8 (legacy)
                                    Z-Wave chip type:           ZW050x
                                    node type                   Controller
                                    controller role:            primary
                                    controller is the SIS:      true
                                    controller supports timers: false
                                    Z-Wave Classic nodes:       1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 15, 16, 17, 
                                  18, 19, 20, 21, 22, 24, 26, 28, 35, 39, 45, 47, 48, 49, 51, 53, 54, 55, 59, 60
                                  , 61, 62, 63, 64, 65, 66, 67, 70, 71, 73, 74, 75, 76, 78, 82, 83, 84, 89, 91, 
                                  94, 95, 99, 100, 101, 104, 105, 114, 115, 116, 120, 122, 123, 129, 130, 133, 1
                                  35, 136
2024-09-12T15:28:51.990Z CNTRLR   querying version info...
2024-09-12T15:28:51.997Z CNTRLR   received version info:
                                    controller type: Static Controller
                                    library version: Z-Wave 6.07
2024-09-12T15:28:51.998Z CNTRLR   querying protocol version info...
2024-09-12T15:28:52.002Z CNTRLR   received protocol version info:
                                    protocol type:             Z-Wave
                                    protocol version:          6.7.0
                                    appl. framework build no.: 97
2024-09-12T15:28:52.003Z CNTRLR   querying controller capabilities...
2024-09-12T15:28:52.008Z CNTRLR   received controller capabilities:
                                    controller role:      Primary
                                    is the SUC:           true
                                    started this network: true
                                    SIS is present:       true
                                    was real primary:     true
2024-09-12T15:28:52.008Z CNTRLR   querying serial API setup capabilities...
2024-09-12T15:28:52.013Z CNTRLR   supported serial API setup commands:
                                  · GetSupportedCommands
                                  · SetTxStatusReport
                                  · SetPowerlevel
                                  · GetPowerlevel
                                  · GetMaximumPayloadSize
2024-09-12T15:28:52.013Z CNTRLR   querying max. payload size...
2024-09-12T15:28:52.016Z CNTRLR   maximum payload size: 46 bytes
2024-09-12T15:28:52.017Z CNTRLR   supported Z-Wave features: 
                                    · SmartStart
2024-09-12T15:28:52.017Z CNTRLR   Performing soft reset...
2024-09-12T15:28:52.021Z CNTRLR   Waiting for the controller to reconnect...
2024-09-12T15:28:53.523Z CNTRLR   Waiting for the Serial API to start...
2024-09-12T15:28:58.525Z CNTRLR   Did not receive notification that Serial API has started, checking if it respo
                                  nds...
2024-09-12T15:28:58.527Z CNTRLR   Failed to execute controller command after 1/3 attempts. Scheduling next try i
                                  n 100 ms.
2024-09-12T15:28:58.628Z CNTRLR   Failed to execute controller command after 2/3 attempts. Scheduling next try i
                                  n 1100 ms.
2024-09-12T15:28:59.731Z CNTRLR   Serial API did not respond, trying again in 2 seconds...
2024-09-12T15:29:01.734Z CNTRLR   Failed to execute controller command after 1/3 attempts. Scheduling next try i
                                  n 100 ms.
2024-09-12T15:29:01.835Z CNTRLR   Failed to execute controller command after 2/3 attempts. Scheduling next try i
                                  n 1100 ms.
2024-09-12T15:29:02.937Z CNTRLR   Serial API did not respond, trying again in 5 seconds...
2024-09-12T15:29:07.941Z CNTRLR   Failed to execute controller command after 1/3 attempts. Scheduling next try i
                                  n 100 ms.
2024-09-12T15:29:08.042Z CNTRLR   Failed to execute controller command after 2/3 attempts. Scheduling next try i
                                  n 1100 ms.
2024-09-12T15:29:09.144Z CNTRLR   Serial API did not respond, trying again in 10 seconds...

Either the setting did not apply, or it’s being ignored.

How to proceed then?

the same one as you

First, obvious answer is to rollback to the previous version assuming you have a backup.

Second, feel free to submit an issue because the add-on did not migrate the soft-reset configuration to the v13 configuration. https://zwave-js.github.io/node-zwave-js/#/getting-started/migrating/v13?id=removed-deprecated-things

FYI, the add-on is already being updated to fix this. https://github.com/home-assistant/addons/pull/3760

1 Like

Thank you!

I’m stuck in the same boat! :frowning:

Read the posts above your comment.

so according to this thread: Fix zwave_js soft reset option by MartinHjelmare · Pull Request #3760 · home-assistant/addons · GitHub the fix should be out there already or no?

Yes, the update is out.