Error while starting zigbee-herdsman Failed to start zigbee

Also having problems with Zigbee2MQTT, what could be wrong? Using HA on a Raspberry Pi 5.

The YAML-code in the Zigbee2MQTT add-on:

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.0.***:1883
  user: ****
  password: ***
serial:
  port: >-
    /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_60a9c654bd8ded11804a02f6b86ce6f8-if00-port-0d
  adapter: zstack
zigbee_herdsman_debug: true

The YAML-code in the HA System:

What does the Zigbee2mqtt log say?

Its up and running now. Just how to find out how to add devices

I am getting a very similar issue as a lot of people, but it is getting past the initial loading of the zigbee-herdsman that most were having and then failing after opening the serial port, while starting the zigbee-herdsman

I’m running HA on a NUC and have the Sonoff plus dongle
error log and configuration shown below,

[19:13:25] INFO: Preparing to start...
[19:13:25] INFO: Socat not enabled
[19:13:26] INFO: Starting Zigbee2MQTT...
[2024-07-01 19:13:29] info: 	z2m: Logging to console, file (filename: log.log)
[2024-07-01 19:13:29] info: 	z2m: Starting Zigbee2MQTT version 1.38.0 (commit #unknown)
[2024-07-01 19:13:29] info: 	z2m: Starting zigbee-herdsman (0.49.2)
[2024-07-01 19:13:30] info: 	zh:zstack:znp: Opening SerialPort with {"path":"/dev/ttyACM0","baudRate":115200,"rtscts":false,"autoOpen":false}
[2024-07-01 19:13:30] info: 	zh:zstack:znp: Serialport opened
[2024-07-01 19:13:30] info: 	zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload
[2024-07-01 19:13:31] info: 	zh:zstack:znp: Skip bootloader for CC2652/CC1352
[2024-07-01 19:13:50] error: 	z2m: Error while starting zigbee-herdsman
[2024-07-01 19:13:50] error: 	z2m: Failed to start zigbee
[2024-07-01 19:13:50] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-07-01 19:13:50] error: 	z2m: Exiting...
[2024-07-01 19:13:50] 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:101:27)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:127:29)
    at Zigbee.start (/app/lib/zigbee.ts:62:27)
    at Controller.start (/app/lib/controller.ts:109:27)
    at start (/app/index.js:107:5)

Your problem is that you need to add

adapter: ezsp

in the serial box

Though you probably instead want to update the firmware to 7.4.x so you can use ember: EmberZNet adapters (Silicon Labs) | Zigbee2MQTT

thanks for your reply Tinkerer,
I have already tried having adapter: ezsp, which returns a different error

I’ll have a look at updating the firmware

I followed the recommended firmware for the Sonoff ZBDongle-E (V2 model, EFR32MG21), which is: ncp-uart-hw-v7.4.1.0-zbdonglee-115200. I installed it using the Silabs Firmware Flasher, and everything was fine up to this point. I connected it to the Raspberry Pi, and initially, it updated the data for the two Aqara humidity sensors twice, but then it stopped. This keeps happening repeatedly; it loses communication and is not stable at all.

Here are the logs:

[16:38:50] INFO: Preparing to start...
[16:38:50] INFO: Socat not enabled
[16:38:52] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-07-18 16:38:59] error: 	zh:ember:uart:ash: Failed to init port with error Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20230324194158-if00
[2024-07-18 16:38:59] error: 	z2m: Error while starting zigbee-herdsman
[2024-07-18 16:38:59] error: 	z2m: Failed to start zigbee
[2024-07-18 16:38:59] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-07-18 16:38:59] error: 	z2m: Exiting...
[2024-07-18 16:38:59] error: 	z2m: Error: Failed to start EZSP layer with status=HOST_FATAL_ERROR.
    at EmberAdapter.initEzsp (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:889:19)
    at EmberAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:2722:24)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:129: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)
[16:39:00] INFO: Preparing to start...
[16:39:01] INFO: Socat not enabled
[16:39:03] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-07-18 16:39:09] error: 	zh:ember:uart:ash: Failed to init port with error Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20230324194158-if00
[2024-07-18 16:39:09] error: 	z2m: Error while starting zigbee-herdsman
[2024-07-18 16:39:09] error: 	z2m: Failed to start zigbee
[2024-07-18 16:39:09] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-07-18 16:39:09] error: 	z2m: Exiting...
[2024-07-18 16:39:09] error: 	z2m: Error: Failed to start EZSP layer with status=HOST_FATAL_ERROR.
    at EmberAdapter.initEzsp (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:889:19)
    at EmberAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:2722:24)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:129: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)
[16:49:15] INFO: Preparing to start...
[16:49:15] INFO: Socat not enabled
[16:49:17] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-07-18 16:50:14] error: 	z2m: MQTT error: connect ECONNREFUSED 172.30.33.0:1883
[2024-07-18 16:50:15] error: 	z2m: MQTT error: connect ECONNREFUSED 172.30.33.0:1883
[2024-07-18 16:50:16] error: 	z2m: Not connected to MQTT server!
[2024-07-18 16:50:16] error: 	z2m: MQTT error: connect ECONNREFUSED 172.30.33.0:1883
[2024-07-18 16:50:18] error: 	z2m: MQTT error: connect ECONNREFUSED 172.30.33.0:1883
[2024-07-18 16:50:19] error: 	z2m: MQTT error: connect ECONNREFUSED 172.30.33.0:1883
[2024-07-18 16:50:20] error: 	z2m: MQTT error: connect ECONNREFUSED 172.30.33.0:1883
[16:51:19] INFO: Preparing to start...
[16:51:20] INFO: Socat not enabled
[16:51:22] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[17:04:34] INFO: Preparing to start...
[17:04:35] INFO: Socat not enabled
[17:04:37] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.

setup:

See in comparison with a Xiaomi Bluetooth sensor how unstable the two Aqara Zigbee sensors are. They only refreshed 3 times.

I should mention that I was getting these errors when the server was set to mqtt://core-mosquitto:1883. Despite the errors, it had updated the sensors’ data twice before stopping. When I used my IP address, it just stayed at “Starting Zigbee2MQTT without watchdog,” but it only updated the sensors’ data once and then did nothing more.

All I want is to get the temperature data every 3 minutes. Is it that difficult?

Specs:
Home Assistant

  • Core2024.7.0
  • Supervisor2024.06.2
  • Operating System12.4
  • Frontend20240703.0

Raspberry pi 4 64 bit

Didn’t scroll through the whole topic now, but I had the exact same problem. After pluging in the stick I installed the zha device. That was my problem. I deleted it again and then the error was gone and it started.

logged in just to say i love you

I have a working ZHA instance using a USB dongle, silicon chpset, version E (not the most recent one, the P).
I got a skyconnect and added it on the same system, it is recognised as hardware.
I want to run M2Q on it. However I am stuck at the same place

[19:22:15] INFO: Preparing to start…
[19:22:15] INFO: Socat not enabled
[19:22:17] INFO: Starting Zigbee2MQTT…
Starting Zigbee2MQTT without watchdog.
[2024-10-07 19:22:23] info: z2m: Logging to console, file (filename: log.log)
[2024-10-07 19:22:23] info: z2m: Starting Zigbee2MQTT version 1.40.2 (commit #unknown)
[2024-10-07 19:22:23] info: z2m: Starting zigbee-herdsman (2.1.3)
[2024-10-07 19:22:23] error: zh:zstack:znp: Failed to determine if path is valid: ‘Error: ENOENT: no such file or directory, lstat ‘/dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_92d24785fce1ed11ba01f25162c613ac-if00-port0 rtscts: true’’
[2024-10-07 19:22:23] info: zh:zstack:znp: Opening SerialPort with {“path”:“/dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_92d24785fce1ed11ba01f25162c613ac-if00-port0 rtscts: true”,“baudRate”:115200,“rtscts”:false,“autoOpen”:false}
[2024-10-07 19:22:23] error: z2m: Error while starting zigbee-herdsman
[2024-10-07 19:22:23] error: z2m: Failed to start zigbee
[2024-10-07 19:22:23] error: z2m: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
[2024-10-07 19:22:23] error: z2m: Exiting…
[2024-10-07 19:22:23] error: z2m: Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_92d24785fce1ed11ba01f25162c613ac-if00-port0 rtscts: true

any ideas how to fix that in my specific case?
I tried generic advice I picked in fora as much as I could, to no result

You also need to add adapter: ember as shown at EmberZNet adapters (Silicon Labs) | Zigbee2MQTT

So, whoever had this issue, go and check the config file (/homeassistant/zigbee2mqtt/configuration.yaml) with file explorer/vscode extention.
It looks like for some reason, configuration entered in the plugin UI is not actually saved in config file, thus it keeps failing because it constantly starts with wrong/initial configuration.
At least thats what happened in my case.

Спасибо, помогло!

2 posts were split to a new topic: Z2m: Error while starting zigbee-herdsman

It works, only
[2024-11-03 10:20:30] warning: zh:ezsp: ‘ezsp’ driver is deprecated and will only remain to provide support for older firmware (pre 7.4.x). Migration to ‘ember’ is recommended. If using Zigbee2MQTT see Improved Ember (EZSP) driver (experimental) · Koenkk/zigbee2mqtt · Discussion #21462 · GitHub

Hi to all!

Let’s see if you can help me.

I was using a CC2531 flashed with a firmware of 2018. I mean, I never updated it since I started with Home Assistant. Some time ago I purchased a Sonoff Dongle Plus but until now I have never tried it, as everything were working fine.

However, I have purchased some new bulbs and, while they were detected by the CC2531 they were unsuported, so I have decided to upgrade to the Sonoff.

For that, I have updated it to the last firmware CC1352P2_CC2652P_launchpad_coordinator_20240710 by using Zigstar, and I wrote the IEEE number.

When I tried to use it, it gives me the following error:

[18:26:46] INFO: Handing over control to Zigbee2MQTT Core …

[email protected] start
node index.js
Zigbee2MQTT:error 2024-11-25 18:26:53: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2024-11-25 18:26:53: Failed to start zigbee
Zigbee2MQTT:error 2024-11-25 18:26:53: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
Zigbee2MQTT:error 2024-11-25 18:26:53: Exiting…
Zigbee2MQTT:error 2024-11-25 18:26:53: Error: Error while opening serialport ‘Error: Error: No such file or directory, cannot open /dev/ttyACM0’
at SerialPort. (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:146:28)
at SerialPort._error (/app/node_modules/@serialport/stream/lib/index.js:198:14)
at /app/node_modules/@serialport/stream/lib/index.js:242:12

My configuration.yaml is the following:

external_converters: []
devices:
  - devices.yaml
groups:
  - groups.yaml
homeassistant: true
permit_join: false
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://core-mosquitto
  user: mqtt
  password: mqtt
serial:
  port: /dev/ttyACM0
advanced:
  log_level: error
  pan_id: 6754
  channel: 11
  network_key:
    - 1
    - 3
    - 5
    - 7
    - 9
    - 11
    - 13
    - 15
    - 0
    - 2
    - 4
    - 6
    - 8
    - 10
    - 12
    - 13
  availability_blocklist: []
  availability_passlist: []
device_options: {}
blocklist: []
passlist: []
queue: {}
frontend:
  port: 8099
experimental: {}

Can you please help me? I am a bit afraid of modify too much, since we cannot live anymore without our automations and this is such a key part!

Thanks in advance!

Update:

  • Once configured Zigbee2Mqtt seem to start with no problems, BUT the Zigbee network does not react.

I had to go back to the original CC2531 to recover my devices!

What should I do?

Re-pair everything ?

@Meigl did you just delete zha from the integrations or did you have to do more than that somewhere else?

Hi,

I am new to Z2M and I’ve had the Hersman error message, it turns out the config from the Adds menu was not being written to the zigbee2mqtt/configuration.yaml file.

To solve this I copied my setting to the yaml file and it started first time (I also have ZHA running roo)

Regards
James