node-zwave-js icon indicating copy to clipboard operation
node-zwave-js copied to clipboard

Startup crash when controller node ID is not in the list of existing ones

Open AlCalzone opened this issue 4 months ago • 0 comments

2025-09-17 12:49:34.473 DRIVER « [RES] [GetSerialApiInitData]
2025-09-17 12:49:34.474 CNTRLR   received additional controller information:
                                   Z-Wave API version:         1 (official)
                                   Z-Wave chip type:           EFR32ZG23 / ZGM230S
                                   node type                   Controller
                                   controller role:            primary
                                   controller is the SIS:      true
                                   controller supports timers: false
                                   Z-Wave Classic nodes:       5

2025-09-17 12:49:34.939 CNTRLR   received controller IDs:
                                   home ID:     0xf5e1afdc
                                   own node ID: 239

2025-09-17 12:49:34.975 DRIVER   Failed to initialize the driver: TypeError: Cannot read properties of undefine
                                 d (reading 'valueDB')
                                     at ZWaveController.get valueDB [as valueDB] (file:///usr/src/node_modules/
                                 zwave-js/src/lib/controller/Controller.ts:791:44)
                                     at ZWaveController.initNodes (file:///usr/src/node_modules/zwave-js/src/li
                                 b/controller/Controller.ts:1827:34)
                                     at Driver.initializeControllerAndNodes (file:///usr/src/node_modules/zwave
                                 -js/src/lib/driver/Driver.ts:2040:4)
                                     at Immediate.<anonymous> (file:///usr/src/node_modules/zwave-js/src/lib/dr
                                 iver/Driver.ts:1717:5)
Error in driver ZWaveError: Failed to initialize the driver: TypeError: Cannot read properties of undefined (reading 'valueDB')
    at ZWaveController.get valueDB [as valueDB] (file:///usr/src/node_modules/zwave-js/src/lib/controller/Controller.ts:791:44)
    at ZWaveController.initNodes (file:///usr/src/node_modules/zwave-js/src/lib/controller/Controller.ts:1827:34)
    at Driver.initializeControllerAndNodes (file:///usr/src/node_modules/zwave-js/src/lib/driver/Driver.ts:2040:4)
    at Immediate.<anonymous> (file:///usr/src/node_modules/zwave-js/src/lib/driver/Driver.ts:1717:5) (ZW0100)
    at Immediate.<anonymous> (file:///usr/src/node_modules/zwave-js/src/lib/driver/Driver.ts:1737:6) {
  code: 100,
  context: undefined,
  transactionSource: undefined
}

AlCalzone avatar Sep 17 '25 18:09 AlCalzone