Error while starting zigbee-herdsman Failed to start zigbee

Nope…no dice with the baudrate entry.

Flash the latest firmware on your adapter:

You have to plug the dongle in the computer you browse on, and use Chrome or Edge.

Tried many things, but cant get it to work. Advise and suggestion are much appreciated. Not sure what I’m doing wrong.
Situation:

Sonf SBDongle Zigbee 3.0. Flashed with latest firmware from

Hardware: Raspberry PI 4
HomeAssistant: removed ZHA
Mosquito has been running as add-on. works fine for other devices
Installed Zigbee2MQTT

Config Yaml:

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.246:1883
  base_topic: zigbee2mqtt
  user: user-name
  password: password
serial:
  port: >-
    /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_f8219a3b62beed11bceda04838a92db5-if00-port0
  adapter: ezsp
zigbee_herdsman_debug: true
>

Configuration.yaml in zigbee2mqtt folder:

homeassistant: true
advanced:
  network_key:
    - 83
    - 181
    - 163
    - 44
    - 249
    - 109
    - 170
    - 53
    - 161
    - 28
    - 122
    - 61
    - 162
    - 212
    - 11
    - 42
  pan_id: 27118
  ext_pan_id:
    - 110
    - 105
    - 167
    - 37
    - 58
    - 211
    - 188
    - 35
mqtt:
  server: mqtt://192.168.0.246:1883
serial:
  port:  /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_f8219a3b62beed11bceda04838a92db5-if00-port0
  adapter: ezsp
frontend:
  port: 8099

data_path: /config/zigbee2mqtt

Logfile:

2024-03-16T12:36:50.938Z zigbee-herdsman:adapter:ezsp:uart --> Error: Error: {"sequence":-1} after 10000ms
2024-03-16T12:36:51.092Z zigbee-herdsman:adapter:ezsp:erro Connection attempt 1 error: Error: Failure to connect
    at SerialDriver.resetForReconnect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:350:19)
    at SerialDriver.emit (node:events:517:28)
    at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:348:22
    at Queue.execute (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:35:20)
    at SerialDriver.openSerialPort (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:108:13)
    at SerialDriver.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:63:13)
    at Ezsp.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:356:17)
    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)
2024-03-16T12:36:51.095Z zigbee-herdsman:adapter:ezsp:uart Port closed. Error? null
2024-03-16T12:36:51.096Z zigbee-herdsman:adapter:ezsp:ezsp onSerialClose()
2024-03-16T12:36:51.097Z zigbee-herdsman:adapter:ezsp:driv onEzspClose()
2024-03-16T12:36:51.097Z zigbee-herdsman:adapter:ezsp:debg onDriverClose()
2024-03-16T12:36:56.098Z zigbee-herdsman:adapter:ezsp:ezsp Next attempt 2
2024-03-16T12:36:56.099Z zigbee-herdsman:adapter:ezsp:uart RTS/CTS config is off, enabling software flow control.
2024-03-16T12:36:56.099Z zigbee-herdsman:adapter:ezsp:uart Opening SerialPort with {"path":"/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_f8219a3b62beed11bceda04838a92db5-if00-port0","baudRate":115200,"rtscts":false,"autoOpen":false,"parity":"none","stopBits":1,"xon":true,"xoff":true}
2024-03-16T12:36:56.111Z zigbee-herdsman:adapter:ezsp:uart Serialport opened
2024-03-16T12:36:56.112Z zigbee-herdsman:adapter:ezsp:uart Uart reseting
2024-03-16T12:36:56.112Z zigbee-herdsman:adapter:ezsp:uart --> Write reset
2024-03-16T12:36:56.113Z zigbee-herdsman:adapter:ezsp:uart --> [1ac038bc7e]
2024-03-16T12:36:56.114Z zigbee-herdsman:adapter:ezsp:uart -?- waiting reset
2024-03-16T12:37:06.122Z zigbee-herdsman:adapter:ezsp:uart --> Error: Error: {"sequence":-1} after 10000ms
2024-03-16T12:37:06.128Z zigbee-herdsman:adapter:ezsp:erro Connection attempt 2 error: Error: Failure to connect
    at SerialDriver.resetForReconnect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:350:19)
    at SerialDriver.emit (node:events:517:28)
    at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:348:22
    at Queue.execute (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:35:20)
    at SerialDriver.openSerialPort (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:108:13)
    at SerialDriver.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:63:13)
    at Ezsp.connect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:356:17)
    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)

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