Z2M doesnt start after 2.0 update

Hi all!

It looks like I carelessly update Z2M last night and since then the Addon doesnt start:
I really dont understand whats the problem. It seems to discover my adapter just fine starting ember, but then EZSP starts an ASH adapter reset. I dont know what it is or if it was running succesfully in the past I had no problem with Z2M before.
I use a RPi 5 with an SLZB-06 as a controller. I use the included brick with the RPI so I doubt its a stability or power issue.
Any tips? I tried to search for a few hours, but no success.

[20:14:43] INFO: Preparing to start...
[20:14:43] INFO: Socat not enabled
[20:14:43] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2025-01-04 20:14:45] debug: z2m: Removing old log directory '/config/zigbee2mqtt/log/2025-01-04.19-52-04'
[2025-01-04 20:14:45] info: z2m: Logging to console, file (filename: log.log)
[2025-01-04 20:14:45] debug: z2m: Loaded state from file /config/zigbee2mqtt/state.json
[2025-01-04 20:14:45] info: z2m: Starting Zigbee2MQTT version 2.0.0 (commit #unknown)
[2025-01-04 20:14:45] debug: z2m: sd-notify loaded
[2025-01-04 20:14:45] info: z2m: Starting zigbee-herdsman (3.2.1)
[2025-01-04 20:14:45] debug: z2m: Using zigbee-herdsman with settings: '"{\"network\":{\"panID\":41477,\"extendedPanID\":[187,1,228,55,90,118,192,32],\"channelList\":[25],\"networkKey\":\"HIDDEN\"},\"databasePath\":\"/config/zigbee2mqtt/database.db\",\"databaseBackupPath\":\"/config/zigbee2mqtt/database.db.backup\",\"backupPath\":\"/config/zigbee2mqtt/coordinator_backup.json\",\"serialPort\":{\"path\":\"/dev/ttyUSB0\"},\"adapter\":{\"disableLED\":false}}"'

[2025-01-04 20:14:45] debug: zh:adapter:discovery: Connected devices: [{"path":"/dev/ttyAMA10"},{"path":"/dev/ttyUSB0","manufacturer":"SMLIGHT","serialNumber":"b6d51e6da977ed11a3fef6fafdf7b791","pnpId":"usb-SMLIGHT_SMLIGHT_SLZB-06_b6d51e6da977ed11a3fef6fafdf7b791-if00-port0","vendorId":"10c4","productId":"ea60"}]

[2025-01-04 20:14:45] info: zh:adapter:discovery: Matched adapter: {"path":"/dev/ttyUSB0","manufacturer":"SMLIGHT","serialNumber":"b6d51e6da977ed11a3fef6fafdf7b791","pnpId":"usb-SMLIGHT_SMLIGHT_SLZB-06_b6d51e6da977ed11a3fef6fafdf7b791-if00-port0","vendorId":"10c4","productId":"ea60"} => ember: path=/dev/ttyUSB0, score=2
[2025-01-04 20:14:45] info: zh:ember: Using default stack config.
[2025-01-04 20:14:45] debug: zh:controller: Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":"HIDDEN","panID":41477,"extendedPanID":[187,1,228,55,90,118,192,32],"channelList":[25]},"serialPort":{"path":"/dev/ttyUSB0","adapter":"ember"},"adapter":{"disableLED":false},"databasePath":"/config/zigbee2mqtt/database.db","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","backupPath":"/config/zigbee2mqtt/coordinator_backup.json"}'
[2025-01-04 20:14:45] info: zh:ember: ======== Ember Adapter Starting ========
[2025-01-04 20:14:45] info: zh:ember:ezsp: ======== EZSP starting ========
[2025-01-04 20:14:45] info: zh:ember:uart:ash: ======== ASH Adapter reset ========
[2025-01-04 20:14:45] info: zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
[2025-01-04 20:14:45] debug: zh:ember:uart:ash: Opening serial port with {"path":"/dev/ttyUSB0","baudRate":115200,"rtscts":false,"autoOpen":false,"parity":"none","stopBits":1,"xon":true,"xoff":true}
[2025-01-04 20:14:45] info: zh:ember:uart:ash: Serial port opened
[2025-01-04 20:14:45] info: zh:ember:uart:ash: ======== ASH starting ========
[2025-01-04 20:14:45] debug: zh:ember:uart:ash: ---> [FRAME type=RST]
.....
[2025-01-04 20:27:46] debug: 	zh:ember:uart:ash: Waiting for RSTACK... 2400/2500
[2025-01-04 20:27:46] error: 	z2m: Error while starting zigbee-herdsman
[2025-01-04 20:27:46] error: 	z2m: Failed to start zigbee-herdsman
[2025-01-04 20:27:46] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions
[2025-01-04 20:27:46] error: 	z2m: Exiting...
[2025-01-04 20:27:46] error: 	z2m: Error: Failed to start EZSP layer with status=HOST_FATAL_ERROR.
    at EmberAdapter.initEzsp (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:670:19)
    at EmberAdapter.start (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1533:24)
    at Controller.start (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/controller.ts:136:29)
    at Zigbee.start (/app/lib/zigbee.ts:69:27)
    at Controller.start (/app/lib/controller.ts:142:13)
    at start (/app/index.js:161:5)

After zigbee2MQTT 2.0 upgrade it died.

zigbee2MQTT now states it cannot find the network address of smlight.

The smlight integration in Home Assistant is finding it fine.


13)
    at start (/app/index.js:161:5)
[19:21:53] INFO: Preparing to start...
[19:21:53] INFO: Socat not enabled
[19:21:54] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2025-01-04 19:21:55] error: 	z2m: Error while starting zigbee-herdsman
[2025-01-04 19:21:55] error: 	z2m: Failed to start zigbee-herdsman
[2025-01-04 19:21:55] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions
[2025-01-04 19:21:55] error: 	z2m: Exiting...
[2025-01-04 19:21:55] error: 	z2m: Error: Cannot discover TCP adapters at this time. Specify valid 'adapter' and 'port' in your configuration.
    at findTCPAdapter (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapterDiscovery.ts:470:15)
    at discoverAdapter (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapterDiscovery.ts:496:26)
    at Function.create (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapter.ts:68:54)
    at Controller.start (/app/node_modules/.pnpm/zigbee-herdsman@3

zigbee2MQTT config is right

Trying to figure it now.

Okay, just figured it out my issue… SLZB-06 should be set to zstack, not ember. For some reason the default config in 2.0 is trying to start ember.

Changed my config to:

port: /dev/ttyUSB0
adapter: zstack

Its all good now…

PS: SLZB-06M is using ember. There is a difference I had difficult time finding in the docs…

1 Like

Where did you find this difference? In what docs?