Z2m with sonoff dongle issue

Hello

I’m trying and failing to get my ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2 to play with MQTT. I have:

  • used the firmware flasher
  • do not have ZHA installed
  • only have one dongle involved

Below is the error:

[2024-06-26 16:24:28] error: 	z2m: Exiting...
[2024-06-26 16:24:28] 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)

This is the YAML:

# 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
mqtt:
  base_topic: zigbee2mqtt
  server: mqtt://192.168.1.56:1883
  user: mqtt_user
  password: password
# serial 
port: >-
  /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231218114711-if00
serial:
  adapter: ember

Any feedback would be helpful.

Thank you.

Did you test using adapter: zstack?

I hadn’t but here’s the outcome replacing with that:

[17:58:54] INFO: Preparing to start...
[17:58:56] INFO: Socat not enabled
[17:59:01] INFO: Starting Zigbee2MQTT...
[2024-06-26 17:59:10] info: 	z2m: Logging to console, file (filename: log.log)
[2024-06-26 17:59:10] info: 	z2m: Starting Zigbee2MQTT version 1.38.0 (commit #unknown)
[2024-06-26 17:59:10] info: 	z2m: Starting zigbee-herdsman (0.49.2)
[2024-06-26 17:59:11] info: 	zh:zstack:znp: Opening SerialPort with {"path":"/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231218114711-if00","baudRate":115200,"rtscts":false,"autoOpen":false}
[2024-06-26 17:59:11] info: 	zh:zstack:znp: Serialport opened
[2024-06-26 17:59:11] info: 	zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload
[2024-06-26 17:59:13] info: 	zh:zstack:znp: Skip bootloader for CC2652/CC1352
[2024-06-26 17:59:31] error: 	z2m: Error while starting zigbee-herdsman
[2024-06-26 17:59:31] error: 	z2m: Failed to start zigbee
[2024-06-26 17:59:31] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-06-26 17:59:31] error: 	z2m: Exiting...
[2024-06-26 17:59:31] 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)

Port should be under serial

serial:
  port: >-
  /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231218114711-if00
  adapter:  ember
  

yaml:

serial:
  port: >-
    /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231218114711-if00
  adapter: ember

With zstack:

[18:17:54] INFO: Preparing to start...
[18:17:55] INFO: Socat not enabled
[18:17:59] INFO: Starting Zigbee2MQTT...
[2024-06-26 18:18:09] info: 	z2m: Logging to console, file (filename: log.log)
[2024-06-26 18:18:09] info: 	z2m: Starting Zigbee2MQTT version 1.38.0 (commit #unknown)
[2024-06-26 18:18:09] info: 	z2m: Starting zigbee-herdsman (0.49.2)
[2024-06-26 18:18:10] info: 	zh:zstack:znp: Opening SerialPort with {"path":"/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231218114711-if00","baudRate":115200,"rtscts":false,"autoOpen":false}
[2024-06-26 18:18:10] info: 	zh:zstack:znp: Serialport opened
[2024-06-26 18:18:10] info: 	zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload
[2024-06-26 18:18:11] info: 	zh:zstack:znp: Skip bootloader for CC2652/CC1352
[2024-06-26 18:18:30] error: 	z2m: Error while starting zigbee-herdsman
[2024-06-26 18:18:30] error: 	z2m: Failed to start zigbee
[2024-06-26 18:18:30] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-06-26 18:18:30] error: 	z2m: Exiting...
[2024-06-26 18:18:30] 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)

with ember:

18:22:16] INFO: Preparing to start...
[18:22:17] INFO: Socat not enabled
[18:22:22] INFO: Starting Zigbee2MQTT...
[2024-06-26 18:22:32] info: 	z2m: Logging to console, file (filename: log.log)
[2024-06-26 18:22:32] info: 	z2m: Starting Zigbee2MQTT version 1.38.0 (commit #unknown)
[2024-06-26 18:22:32] info: 	z2m: Starting zigbee-herdsman (0.49.2)
[2024-06-26 18:22:32] info: 	zh:zstack:znp: Opening SerialPort with {"path":"/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231218114711-if00","baudRate":115200,"rtscts":false,"autoOpen":false}
[2024-06-26 18:22:32] info: 	zh:zstack:znp: Serialport opened
[2024-06-26 18:22:33] info: 	zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload
[2024-06-26 18:22:34] info: 	zh:zstack:znp: Skip bootloader for CC2652/CC1352
[2024-06-26 18:22:52] error: 	z2m: Error while starting zigbee-herdsman
[2024-06-26 18:22:52] error: 	z2m: Failed to start zigbee
[2024-06-26 18:22:52] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-06-26 18:22:52] error: 	z2m: Exiting...
[2024-06-26 18:22:53] 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 appreciate your time with this, thank you.

try

serial:
  port: >-
    /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231218114711-if00
  adapter: ezsp

Strange with

  adapter: ember

Zigbee2MQTT stills complains about

So double check both the add-on configuration and the zigbee2mqtt/configuration.yaml

1 Like

I received a SLZB-06M (EFR32MG21) in error yesterday so I have been playing with for a better understanding of the chipset differences. I tried adding it as a second Z2M for multiple coordinators. Not exactly this situation, but I 'm assuming he has an E (same chipset). I tried so many variations and nothing is allowing a connection.

I have two SLZB-06s (CC2652P) and one is flashed as a router. As a test, I switched the router back to a coordinator and the second Z2M activated instantly.

This feels like a Firmware/Z2M issue to me.

Additional info:
I only get the ZStackAdapter.start error when set to z-stack. ezsp and ember produce different errors.

2024-06-26 23:16:25] 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)

Any advice would be appreciated. I have learned so much from your Zigbee resolutions!

ember errors

[2024-06-26 23:39:06] 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:850:19)
    at EmberAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/ember/adapter/emberAdapter.ts:2683:24)
    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)

eszp errors

[2024-06-26 23:40:06] error: 	zh:ezsp:uart: --> Error: Error: {"sequence":-1} after 10000ms
Error: Failure to connect
    at SerialDriver.resetForReconnect (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:347: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 Socket.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:154:17)

This error indicates a mismatch in the baud rate of the firmware version. Ensure you are using the correct firmware with the appropriate baud rate.

1 Like

So many recent issues on Github with this chipset with no clear answer. The coordinator does not want to connect to HA. I tested and compared the baud rate via the SLZBs UI.

Happy I took your advice on the CC2652P chipset a few months back.

Same error when adding ezsp instead of ember or zstack.

Where else can I ask this question?