Problem with Zigbee2MQTT - "z2m: Failed to start zigbee"

Hello,

This is my first post on this forum, I am migrating after 7 years from another system (jeedom) to HA and encounter an issue with Zigbee2MQTT.

I have a conbee III key, and during installation of Zigbee2MQTT, I get the following error:

[12:52:43] INFO: Preparing to start...
[12:52:43] INFO: Socat not enabled
[12:52:44] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-08-03 12:52:45] info: 	z2m: Logging to console, file (filename: log.log)
[2024-08-03 12:52:45] info: 	z2m: Starting Zigbee2MQTT version 1.39.1 (commit #unknown)
[2024-08-03 12:52:45] info: 	z2m: Starting zigbee-herdsman (0.55.3)
[2024-08-03 12:52:55] error: 	z2m: Error while starting zigbee-herdsman
[2024-08-03 12:52:55] error: 	z2m: Failed to start zigbee
[2024-08-03 12:52:55] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-08-03 12:52:55] error: 	z2m: Exiting...
[2024-08-03 12:52:55] error: 	z2m: Error: get network parameters Error:TIMEOUT
    at DeconzAdapter.getNetworkParameters (/app/node_modules/zigbee-herdsman/src/adapter/deconz/adapter/deconzAdapter.ts:1153:35)
    at Controller.getNetworkParameters (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:394:44)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:135:31)
    at Zigbee.start (/app/lib/zigbee.ts:63:27)
    at Controller.start (/app/lib/controller.ts:139:27)
    at start (/app/index.js:154:5)

My configuration file for Zigbee2MQTT is the following:

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

server: mqtt://core-mosquitto
user: mqtt
password: “mqtt”

serial

port: /dev/ttyUSB0
adapter: deconz

I also tried with

server: mqtt://core-mosquitto:1883
server: mqtt://192.168.1.2:1883
path : /dev/serial/by-id/usb-dresden_elektronik_ConBee_III_DEXXXXXXX-XX00-port0

But always get the same mistake.

Also, my /homeassistant/zigbee2mqtt/configuration.yaml file is quite different, is that an issue ?

homeassistant: true
advanced:
  network_key:
    - 198
    - 236
    - 39
    - 42
    - 155
    - 33
    - 8
    - 70
    - 23
    - 87
    - 148
    - 162
    - 236
    - 246
    - 198
    - 207
  pan_id: 41540
  ext_pan_id:
    - 17
    - 86
    - 89
    - 212
    - 66
    - 205
    - 226
    - 213
mqtt:
  server: mqtt://core-mosquitto:1883
  user: addons
  password: eic6bae5kip7ooWied2eeJ8zoo5Cei2voMaitaehem3eiJohchie0aerak7saeci
frontend:
  port: 8099

Thanks for any support you can provide !

Have you installed an MQTT serever somewhere?

Hello,
I installed Zigbee2MQTT + Mosquitto broker, and found the problem! I will add the solution for me here should it be useful for anyone.
In the Mosquito broker, I added a username/login in the logins, but this information was not saved - hence the impossibility to launch the process.
For a reason I don’t understand, the logins must be in the following format, with a “-” in front of the username:

- username: mqtt_xxx
  password: mqtt_xxx

With this, everything was working…

Here are the config details for Zigbee2MQTT
mqtt:

server: mqtt://core-mosquitto:1883
user: mqtt_xxx
password: mqtt_xxx

serial:

port: /dev/serial/by-id/usb-dresden_elektronik_ConBee_III_DEXXXXXX-XXXX-port0
adapter: deconz
baudrate: 115200
1 Like

This is due the yaml file structure.
Glad YOU found your solution! It is the most satisfying way to solve a problem :clap:

1 Like

Hello
Fore some reason i can’t get zigbee2mqt to start. i am running my homeassistant and z2m on a raspberry pi,

It has worked earlier with another adapter but it was outdated so i changed it to a sonoff dongle-e.

I get following errors.
[16:47:48] INFO: Preparing to start…
[16:47:50] INFO: Socat not enabled
[16:47:55] INFO: Starting Zigbee2MQTT…
Starting Zigbee2MQTT without watchdog.
[2024-08-04 16:48:30] info: z2m: Logging to console, file (filename: log.log)
[2024-08-04 16:48:31] info: z2m: Starting Zigbee2MQTT version 1.39.1 (commit #unknown)
[2024-08-04 16:48:31] info: z2m: Starting zigbee-herdsman (0.55.3)
[2024-08-04 16:48:33] info: zh:zstack:znp: Opening SerialPort with {“path”:“/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20240123114213-if00”,“baudRate”:460800,“rtscts”:false,“autoOpen”:false}
[2024-08-04 16:48:33] info: zh:zstack:znp: Serialport opened
[2024-08-04 16:48:34] info: zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload
[2024-08-04 16:48:35] info: zh:zstack:znp: Skip bootloader for CC2652/CC1352
[2024-08-04 16:49:00] error: z2m: Error while starting zigbee-herdsman
[2024-08-04 16:49:01] error: z2m: Failed to start zigbee
[2024-08-04 16:49:01] error: z2m: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
[2024-08-04 16:49:01] error: z2m: Exiting…
[2024-08-04 16:49:04] error: z2m: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:119:27)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:127:29)
at Zigbee.start (/app/lib/zigbee.ts:63:27)
at Controller.start (/app/lib/controller.ts:139:27)
at start (/app/index.js:154:5)

my config is.

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:
  server: mqtt:/192.168.1.111:1883
  mqtt: mqtt
  password: MYPASSWORD
serial:
  port: >-
    /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20240123114213-if00
  device: ember
  baudrate: 230400
  zigbee_herdsman_debug: true

hope someone here can help me. I have tried a lot of the suggestions in the forum but nothing seems to work.

Ember is quite a new driver.
If I remember well, the first time you have to start with ezsp, connect a device, and then switch to ember. But it it is an info floating somewhere in the back of my memory… Try hope it helps

Your log output seems to reflect other settings than the one you have pasted. Check your configuration.yaml file (under the zigbee2mqtt folder, not under the regular /config folder) that the settings there are identical to the ones you pasted.

mqtt://192.168.1.111:1883