Impossible to get zigbee2mqtt to start properly on HA OS

Hello, i have trouble to get Z2M to start properly.

I followed several tutorials and can find anyone with the same errors that i have, and my hair are starting to fall.

Here is my setup:
Sonoff ZBDongle-E (V2 model, EFR32MG21)
HA.OS v2024.10.0 which is running on RPI4 4GB

I flashed my sonoff dongle with this firmware (available on silabs-firmware-builder/firmware_builds/zbdonglee at main · darkxst/silabs-firmware-builder · GitHub):
ncp-uart-hw-v7.4.4.0-zbdonglee-115200.gbl

My Z2M config

data_path: /config/zigbee2mqtt
socat:
  enabled: false
  master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: "-d -d"
  log: false
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://core-mosquitto:1883
  user: mqtt_adm
  password: ****
serial:
  port: >-
    /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20240218114344-if00
  adapter: ember
  baudrate: 115200
  rtscts: false

The error log i’m getting:

[14:53:55] INFO: Preparing to start...
[14:53:55] INFO: Socat not enabled
[14:53:58] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-10-04 14:54:04] info: 	z2m: Logging to console, file (filename: log.log)
[2024-10-04 14:54:04] info: 	z2m: Starting Zigbee2MQTT version 1.40.2 (commit #unknown)
[2024-10-04 14:54:04] info: 	z2m: Starting zigbee-herdsman (2.1.3)
[2024-10-04 14:54:05] info: 	zh:ember: Using default stack config.
[2024-10-04 14:54:05] info: 	zh:ember: ======== Ember Adapter Starting ========
[2024-10-04 14:54:05] info: 	zh:ember:ezsp: ======== EZSP starting ========
[2024-10-04 14:54:05] info: 	zh:ember:uart:ash: ======== ASH Adapter reset ========
[2024-10-04 14:54:05] info: 	zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
[2024-10-04 14:54:05] info: 	zh:ember:uart:ash: Serial port opened
[2024-10-04 14:54:05] info: 	zh:ember:uart:ash: ======== ASH starting ========
[2024-10-04 14:54:06] info: 	zh:ember:uart:ash: ======== ASH connected ========
[2024-10-04 14:54:06] info: 	zh:ember:uart:ash: ======== ASH started ========
[2024-10-04 14:54:06] info: 	zh:ember:ezsp: ======== EZSP started ========
[2024-10-04 14:54:06] info: 	zh:ember: Adapter EZSP protocol version (13) lower than Host. Switched.
[2024-10-04 14:54:06] info: 	zh:ember: Adapter version info: {"ezsp":13,"revision":"7.4.4 [GA]","build":0,"major":7,"minor":4,"patch":4,"special":0,"type":170}
[2024-10-04 14:54:06] info: 	zh:ember: [STACK STATUS] Network up.
[2024-10-04 14:54:06] info: 	zh:ember: [INIT TC] Adapter network matches config.
[2024-10-04 14:54:06] info: 	zh:ember: [CONCENTRATOR] Started source route discovery. 1248ms until next broadcast.
[2024-10-04 14:54:06] info: 	z2m: zigbee-herdsman started (resumed)
[2024-10-04 14:54:06] info: 	z2m: Coordinator firmware version: '{"meta":{"build":0,"ezsp":13,"major":7,"minor":4,"patch":4,"revision":"7.4.4 [GA]","special":0,"type":170},"type":"EmberZNet"}'
[2024-10-04 14:54:06] info: 	z2m: Currently 0 devices are joined.
[2024-10-04 14:54:06] info: 	z2m: Zigbee: disabling joining new devices.
[2024-10-04 14:54:07] info: 	z2m: Connecting to MQTT server at mqtt://core-mosquitto:1883
[2024-10-04 14:54:07] info: 	z2m: Connected to MQTT server
[2024-10-04 14:54:07] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
[2024-10-04 14:54:07] error: 	z2m: Failed to call 'Bridge' 'start' (TypeError: Cannot read properties of undefined (reading 'getDevice')
    at Bridge.publishInfo (/app/lib/extension/bridge.ts:746:69)
    at Bridge.start (/app/lib/extension/bridge.ts:174:20)
    at Controller.callExtensions (/app/lib/controller.ts:399:17)
    at Controller.start (/app/lib/controller.ts:218:9)
    at start (/app/index.js:154:5))
[2024-10-04 14:54:07] info: 	z2m: Started frontend on port 8099
[2024-10-04 14:54:07] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"commit":"unknown","coordinator":{"meta":{"build":0,"ezsp":13,"major":7,"minor":4,"patch":4,"revision":"7.4.4 [GA]","special":0,"type":170},"type":"EmberZNet"},"log_level":"info","network":{"channel":11,"extendedPanID":13368757625167469000,"panID":11483},"permit_join":false,"version":"1.40.2"}'
[2024-10-04 14:54:07] error: 	z2m: Failed to call 'HomeAssistant' 'start' (TypeError: Cannot read properties of undefined (reading 'deviceIeeeAddress')
    at HomeAssistant.getBridgeEntity (/app/lib/extension/homeassistant.ts:2016:78)
    at HomeAssistant.start (/app/lib/extension/homeassistant.ts:476:28)
    at Controller.callExtensions (/app/lib/controller.ts:399:17)
    at Controller.start (/app/lib/controller.ts:218:9)
    at start (/app/index.js:154:5))
[2024-10-04 14:54:07] info: 	z2m: Zigbee2MQTT started!

With this i can go to the web gui of z2m but i cant start pairing procedure, i tried many variations of configurations but none worked.
Am i missing something?
Thanks

1 Like

I was struggling with the same issue on rpi 4, but I have Conbee 2. My solution was to install older version of OS (11.5). Everything works now.

Thanks for your answer.

Downgrade is not really an option for me, i made a fresh install in version 13 so i have no restore possibilities on older version i guess.

I can’t pinpoint for sure what the origin of the problem is, i’ll try creating an issue ticket on z2m github and see what comes out of it.

That’s a shame because i bought this exact hardware following z2m recommendations and i got this kind of problems.

I’ll keep you posted

It was also a fresh install for me. I got an older image for rpi from releases page on github.

Still works fine. :slight_smile:

I finally got it to work.

For reference i posted this issue on z2m github:

Removing the content of /config/zigbee2mqtt/ directory via the ssh/terminal plugin was enough.