Unable to start zigbee2mqtt - Sonoff Zigbee 3.0 USB Dongle

Zigbee2MQTT seems to think you have a Dongle-E.

add adapter: zstack under serial, so

serial:
  port: >-
    /dev/serial/by-id/usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0
  rtscts: false
  disable_led: true
  adapter: zstack

@francisp It worked, thank you very much.

Is there somewhere I should have been able to read about this. I want to check the rest of the config is good.

I could use some help as well? I had a P dongle that I borrowed working, but ordered the E since I wanted the possibillity of thread down the road. I deleted all of the old config files and re-installed zigbee2mqtt, but I cannot get things to start up with the new dongle.

I have tried a few different configs but so far none have worked.

This is what the SSH is showing.


➜  ~ ls -l /dev/serial/by-id
total 0
lrwxrwxrwx    1 root     root            13 Mar 31 11:03 usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231219170914-if00 -> ../../ttyACM0

This is my current config

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://core-mosquitto:1883
serial:
  port: >-
    /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231219170914-if00-port0
  rtscts: false
  disable_led: true
  adapter: zstack
permit_join: true

You have a Dongle E, so

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://core-mosquitto:1883
serial:
  port: >-
    /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231219170914-if00-port0
  adapter: ezsp
permit_join: true

Tried that as well but no dice

Are you sure ZHA is not running ?

Yes, it is disabled, I tried it earlier just to make sure it could find the new dongle ok, but it is disabled now.

Show your Zigbee2MQTT logs

Looks like i didnt wait quit long enough, its working now that I removed the -port0 from the end of the port path.

Is there any specific coordinator firmware to run with this dongle that works better, or should I just stick with what it came with?

The ember stack, but you need 7.4.x firmware

https://github.com/Koenkk/zigbee2mqtt/discussions/21462

1 Like

Thanks for the help!

I assume I need to use the custom install file for this? Do I use the one under zbdonglee folder (ncp-uart-hw-v7.4.1.0-zbdonglee-115200.gbl) ?

I was able to flash the version above, and things seem to be ok.

I also tried using the edge version with the adapter set to ember, but things would not start in that enviroment. Should they?

[12:39:14] INFO: Preparing to start...
[12:39:14] INFO: Socat not enabled
[12:39:15] INFO: Starting Zigbee2MQTT...
Zigbee2MQTT:info  2024-03-31 12:39:17: Logging to console and directory: '/config/zigbee2mqtt/log/2024-03-31.12-39-17' filename: log.txt
Zigbee2MQTT:info  2024-03-31 12:39:17: Starting Zigbee2MQTT version 1.36.0-dev (commit #1e74b2f)
Zigbee2MQTT:info  2024-03-31 12:39:17: Starting zigbee-herdsman (0.40.3)
======== Ember Adapter Starting ========
======== EZSP starting ========
======== ASH NCP reset ========
======== ASH starting ========
======== ASH connected ========
======== ASH started ========
======== EZSP started ========
[STACK STATUS] Network up.
Zigbee2MQTT:error 2024-03-31 12:39:18: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2024-03-31 12:39:18: Failed to start zigbee
Zigbee2MQTT:error 2024-03-31 12:39:18: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2024-03-31 12:39:18: Exiting...
Zigbee2MQTT:error 2024-03-31 12:39:18: Error: [BACKUP] Current backup file is from an unsupported EZSP version (min: 12).
    at EmberAdapter.getStoredBackup (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1343:23)
    at EmberAdapter.initTrustCenter (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:1134:33)
    at EmberAdapter.initEzsp (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:820:19)
    at EmberAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:2661:24)
    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)

all good now, I just forgot to enter the rtscts: false

1 Like

I figured out that my Sonoff ZBDongle E came with the Router Firmware.
It must be flashed with the Coordinator Firmware (or maybe the ember one mentioned above, didn’t try that)
https://sonoff.tech/wp-content/uploads/2023/02/SONOFF-Zigbee-3.0-USB-dongle-plus-firmware-flashing.pdf
You must physically open up the Dongle. Then press the boot button on the pcb, plug it in and then release the button. Now you can flash the firmware.

My z2m settings are:

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: {}
serial:
  port: >-
    /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231215085617-if00
  adapter: ezsp

In case anyone gets this error after flashing firmware try this: first put adapter: ezsp under serial in the Z2MQTT configuration. Then reload all the devices by turning them off and on 1 by 1. Then i changed the adapter to adapter: ember and now i don’t get errors anymore.

1 Like

How? Physically on the unit itself?

Today, the default (and only) choice is still <v7.4.x : 7.3.x
Do you have a link to the correct FW?
Thank you!

I don’t see the 7.4.3 there, and don’t flash the 7.4.2

You can download 7.4.3 here: silabs-firmware-builder/firmware_builds/zbdonglee at 4.4.3 · darkxst/silabs-firmware-builder · GitHub