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)
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.
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?
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.
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
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.
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
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)