Error while starting zigbee-herdsman Failed to start zigbee

You have a Sonoff Dongle P, but your configuration tells Zigbee2MQTT to use a Donge-E

Remove`` from serial

adapter: ezsp

or change it to

adapter: zstack
1 Like

Even if though this did not fix my situation, I am thankful you posted this site to make it easy to upgrade the firmware on my Zigbee controller. THANK YOU!

Still the same problem, though, with mine.

1 Like

maybe this is one of your problems:

or you can try:

port: /dev/ttyUSB0
adapter: zstack
baudrate: 115200

I do not have the Multiprotocol add-on. Nothing suggested has worked. Here is all the information as of this point.

Configuration:
port: >-
/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20220719084730-if00
adapter: ezsp <–This or deconz, no difference
baudrate: 115200 <–With or without this, no difference.

Log:

[09:03:48] INFO: Preparing to start…
[09:03:48] INFO: Socat not enabled
[09:03:50] INFO: Starting Zigbee2MQTT…
Zigbee2MQTT:info 2024-03-18 09:03:56: Logging to console and directory: ‘/config/zigbee2mqtt/log/2024-03-18.09-03-56’ filename: log.txt
Zigbee2MQTT:info 2024-03-18 09:03:56: Starting Zigbee2MQTT version 1.36.0 (commit #unknown)
Zigbee2MQTT:info 2024-03-18 09:03:56: Starting zigbee-herdsman (0.35.1)
Zigbee2MQTT:error 2024-03-18 09:05:07: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2024-03-18 09:05:07: Failed to start zigbee
Zigbee2MQTT:error 2024-03-18 09:05:07: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
Zigbee2MQTT:error 2024-03-18 09:05:07: Exiting…
Zigbee2MQTT:error 2024-03-18 09:05:07: Error: Failure to connect
at Ezsp.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:373:19)
at Driver.startup (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:163:13)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:132: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)

Adapter information:

ttyACM0
/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20220719084730-if00
Subsystem:
tty
Device path:
/dev/ttyACM0
ID:
/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20220719084730-if00
Attributes:
DEVLINKS: >-
/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20220719084730-if00
/dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.1:1.0
DEVNAME: /dev/ttyACM0
DEVPATH: >-
/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.0/tty/ttyACM0
ID_BUS: usb
ID_MODEL: SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2
ID_MODEL_ENC: SONOFF\x20Zigbee\x203.0\x20USB\x20Dongle\x20Plus\x20V2
ID_MODEL_ID: 55d4
ID_PATH: platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.1:1.0
ID_PATH_TAG: platform-fd500000_pcie-pci-0000_01_00_0-usb-0_1_1_1_0
ID_REVISION: ‘0442’
ID_SERIAL: ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20220719084730
ID_SERIAL_SHORT: ‘20220719084730’
ID_TYPE: generic
ID_USB_DRIVER: cdc_acm
ID_USB_INTERFACES: ‘:020201:0a0000:’
ID_USB_INTERFACE_NUM: ‘00’
ID_USB_MODEL: SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2
ID_USB_MODEL_ENC: SONOFF\x20Zigbee\x203.0\x20USB\x20Dongle\x20Plus\x20V2
ID_USB_MODEL_ID: 55d4
ID_USB_REVISION: ‘0442’
ID_USB_SERIAL: ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20220719084730
ID_USB_SERIAL_SHORT: ‘20220719084730’
ID_USB_TYPE: generic
ID_USB_VENDOR: ITEAD
ID_USB_VENDOR_ENC: ITEAD
ID_USB_VENDOR_ID: 1a86
ID_VENDOR: ITEAD
ID_VENDOR_ENC: ITEAD
ID_VENDOR_ID: 1a86
MAJOR: ‘166’
MINOR: ‘0’
SUBSYSTEM: tty
TAGS: ‘:systemd:’
USEC_INITIALIZED: ‘3892810’

Device info

EZSP

by Silicon Labs

Firmware: 7.3.1.0 build 176

Zigbee info

IEEE: 38:5b:44:ff:fe:00:36:5e

Nwk: 0x0000

Device Type: Coordinator

LQI: 255

RSSI: Unknown

Last seen: 2024-03-18T09:05:19

Power source: Mains

Where are you getting this info from? To me it might seem you are getting this info because you have ZHA enabled. “Last seen” and “LQI” indicates that it is already running a zigbee network?

2 Likes

That is what I was thinking. Seems not.

That was it! Is there any way I can import the devices from ZHA to the this or do I need to re-pair?

You will need to re-pair.

1 Like

I initially typed “port: /dev/ttyUSB0” with a capital p → “Port: …” which gave the same error. after changing the P to lower case p it worked fine for me.

I found this thread while trying to resolve my own demons with zigbee2mqtt not starting on HomeAssistant Yellow.

My problem was solved by following the guide here: [Flash Silicon Labs radio firmware manually · NabuCasa/silabs-firmware Wiki · GitHub] (Manually Flashing Silicon Labs radio firmware)

and flashing the firmware using:

universal-silabs-flasher --device /dev/ttyAMA1 flash --allow-cross-flashing --firmware EmberZNet/NabuCasa_Yellow_EZSP_v6.10.3.0_PA32_ncp-uart-hw_115200.gbl

Hope this helps someone else

Hello,

I seem to have the same issue, can anyone please suggest a solution?

Below is my log:

[14:13:00] INFO: Preparing to start…
[14:13:01] INFO: Socat not enabled
[14:13:02] INFO: Starting Zigbee2MQTT…
Zigbee2MQTT:info 2024-04-13 14:13:07: Logging to console and directory: ‘/config/zigbee2mqtt/log/2024-04-13.14-13-07’ filename: log.txt
Zigbee2MQTT:info 2024-04-13 14:13:07: Starting Zigbee2MQTT version 1.36.1 (commit #unknown)
Zigbee2MQTT:info 2024-04-13 14:13:07: Starting zigbee-herdsman (0.40.3)
Zigbee2MQTT:error 2024-04-13 14:13:27: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2024-04-13 14:13:27: Failed to start zigbee
Zigbee2MQTT:error 2024-04-13 14:13:27: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
Zigbee2MQTT:error 2024-04-13 14:13:27: Exiting…
Zigbee2MQTT:error 2024-04-13 14:13:27: 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:103:27)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:132: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)

The device I’m using is ZB-GW04 (easy iot EFR32MG21).

Device info:

Subsystem:
tty
Device path:
/dev/ttyUSB0
ID:
/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
Attributes:
DEVLINKS: >-
/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
/dev/serial/by-path/pci-0000:00:10.0-usb-0:2:1.0-port0
/dev/serial/by-path/pci-0000:00:10.0-usbv2-0:2:1.0-port0
DEVNAME: /dev/ttyUSB0
DEVPATH: /devices/pci0000:00/0000:00:10.0/usb2/2-2/2-2:1.0/ttyUSB0/tty/ttyUSB0
ID_BUS: usb
ID_MODEL: USB_Serial
ID_MODEL_ENC: USB\x20Serial
ID_MODEL_ID: ‘7523’
ID_PATH: pci-0000:00:10.0-usb-0:2:1.0
ID_PATH_TAG: pci-0000_00_10_0-usb-0_2_1_0
ID_PATH_WITH_USB_REVISION: pci-0000:00:10.0-usbv2-0:2:1.0
ID_REVISION: ‘0264’
ID_SERIAL: 1a86_USB_Serial
ID_TYPE: generic
ID_USB_DRIVER: ch341
ID_USB_INTERFACES: ‘:ff0102:’
ID_USB_INTERFACE_NUM: ‘00’
ID_USB_MODEL: USB_Serial
ID_USB_MODEL_ENC: USB\x20Serial
ID_USB_MODEL_ID: ‘7523’
ID_USB_REVISION: ‘0264’
ID_USB_SERIAL: 1a86_USB_Serial
ID_USB_TYPE: generic
ID_USB_VENDOR: 1a86
ID_USB_VENDOR_ENC: 1a86
ID_USB_VENDOR_ID: 1a86
ID_VENDOR: 1a86
ID_VENDOR_ENC: 1a86
ID_VENDOR_ID: 1a86
MAJOR: ‘188’
MINOR: ‘0’
SUBSYSTEM: tty
TAGS: ‘:systemd:’
USEC_INITIALIZED: ‘3530827124’

Below is my zigbee2mqtt config:

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.176:1883
user: mqtt-user
password:

serial
port: /dev/ttyUSB0
device: ezsp

configuration.yaml for zigbee2mqtt:

homeassistant: true
advanced:
network_key:
- 184
- 165
- 56
- 126
- 83
- 171
- 46
- 169
- 140
- 76
- 203
- 110
- 140
- 176
- 144
- 184
pan_id: 26495
ext_pan_id:
- 189
- 206
- 239
- 65
- 138
- 207
- 244
- 14
mqtt:
server: mqtt://192.168.0.176:1883
user: addons
password: cah9Ceezae9taeg9aiVi4aiC6queice2ahzaim5eexeiF5tuZ6ReenahngaNae3i
serial:
port: /dev/ttyUSB0
adepter: ezsp
frontend:
port: 8099

it is adapter, not adepter

try switching to

serial:
  /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
  adapter: ezsp

That EFR zigbee chip is listed as Experimental in Z2MQTT and has an explicit warning not to use it if you want a stable setup.

Even more worrying, your specific model comes with this warning:

“Warning! Before buying understand that the “SM-011 V1.0” module/board used in this is missing electromagnetic interference shielding and have relatively low-quality circuit board antenna with less than optimal hardware tuning so it has been reported signal reception with these is very sensitive to all types of interference unless connect it via a very long USB extension cable that is properly shielded to get it away from any sources of EMF/EMI/RMI.”

If you’re just starting out, I’d buy a different (supported) coordinator and avoid any future headaches.

Wow, thanks for pointing out the typo, this actually solved the issue, everything seems to work now.

I actually only read this after starting troubleshooting the device as it was not working.

Would you advice to change the dongle and buy the sonoff zbdongle-e?

It was naive of me trying to save 10 bucks on something and thinking the quality would be the same :frowning:

They make decent routers (if flashed with router firmware), but I would not use them as coordinator.

Personally, If I were choosing a coordinator, I’d stay away from usb dongles like the Sonoff.

Have a look at any of the Hybrid or Network coordinators in the Z2MQTT page I linked to earlier. Tube’s coordinators are rock solid, but if you’re on a budget, the SMlight are quite popular around here (though they still cost roughly twice what the Sonoffs cost).

All it took was that extra line, thanks!

After updating my Sonoff ZigBee bridge to Tasmota 13.4.0 Z2M failed to start with the well known Error while starting zigbee-herdsman message.
Downgrading Tasmota solved the issue.
I have no idea what’s wrong with Tasmota 13.4.0 but it sure did cause Z2M to fail.

Conbee 3
I had this error
[2024-05-03 12:48:20] error: z2m: Error while starting zigbee-herdsman
[2024-05-03 12:48:20] error: z2m: Failed to start zigbee
[2024-05-03 12:48:20] error: z2m: Check www.zigbee2mqtt.io/guide/installation/20…-fails-to-start.html for possible solutions
[2024-05-03 12:48:20] error: z2m: Exiting…
[2024-05-03 12:48:21] error: z2m: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)

serial
port: /dev/serial/by-id/usb-dresden_elektronik_ConBee_III_DE03218663-if00-port0

I added it
adapter: deconz
baudrate: 115200

now is

[23:56:50] INFO: Preparing to start…
[23:56:51] INFO: Socat not enabled
[23:56:52] INFO: Starting Zigbee2MQTT…
[2024-05-03 23:56:53] info: z2m: Logging to console, file (filename: log.log)
[2024-05-03 23:56:55] info: z2m: Starting Zigbee2MQTT version 1.37.0 (commit #unknown)
[2024-05-03 23:56:55] info: z2m: Starting zigbee-herdsman (0.45.0)
[2024-05-03 23:56:56] info: z2m: zigbee-herdsman started (resumed)
[2024-05-03 23:56:56] info: z2m: Coordinator firmware version: ‘{“meta”:{“maintrel”:0,“majorrel”:38,“minorrel”:81,“product”:0,“revision”:“0x26510900”,“transportrev”:0},“type”:“ConBee3”}’
[2024-05-03 23:56:56] info: z2m: Currently 0 devices are joined:
[2024-05-03 23:56:56] info: z2m: Zigbee: disabling joining new devices.
[2024-05-03 23:56:58] info: z2m: Connecting to MQTT server at mqtt://192.168.1.45:1883
[2024-05-03 23:56:58] error: z2m: MQTT error: Connection refused: Not authorized
[2024-05-03 23:56:58] error: z2m: MQTT failed to connect, exiting…
[2024-05-03 23:56:58] info: z2m: Stopping zigbee-herdsman…
[2024-05-03 23:56:59] error: z2m: MQTT error: Connection refused: Not authorized
[2024-05-03 23:57:00] error: z2m: MQTT error: Connection refused: Not authorized
[2024-05-03 23:57:00] info: z2m: Stopped zigbee-herdsman

I did it, it works

/homeassistant/zigbee2mqtt/configuration.yaml

mqtt:
base_topic: zigbee2mqtt
user: “mqtt-user”
password: “mqtt-pass”
server: mqtt://core-mosquitto:1883

that worked for me.

1 Like