ZIGBEE2MQTT Error with Sonoff USB plus E Dongle

goodevening,

I watched a tutorial on youtube to setup MQTT With my Sonoff USB dongle plus - E (Tutorial zigbee2mqtt) and it was very interesting but on 4:56 minuts i had to stop because i was running into an error. And after a while searching i couldn’t really found an answere so i thought maybe someone here can help me out.

When I start the Zigbee2Mqtt it starts, than crashes and closing automaticly.

I started the debugging tool and i found out this:

2023-08-01T20:58:40.798Z zigbee-herdsman:adapter:ezsp:uart -± waiting (1) success
2023-08-01T20:58:40.798Z zigbee-herdsman:adapter:ezsp:erro zdoRequest error
2023-08-01T20:58:40.799Z zigbee-herdsman:adapter:ezsp:debg Node descriptor request for ‘0’ failed (Error: ZdoRequest error), retry
Error: ZdoRequest error
at Driver.zdoRequest (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/driver.ts:573:19)
at EZSPAdapter.nodeDescriptorInternal (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/adapter/ezspAdapter.ts:373:28)
at Object.func (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/adapter/ezspAdapter.ts:363:32)
at Queue.executeNext (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:32:32)

My config file looks like this:

Socat (default)
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
User: user account i created
password: password

Port:

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

I had to flash my dongle to a much newer version to get mqtt working. it is now on version: 7.2.3.0

Please let me know if i need to give some more info.

edit: I also tried the Zigbee2mqtt Edge but that didnt make any diffrence

Is ZHA installed ?

Could you please post your config with proper indentation. See How to help us help you - or How to ask a good question

I had ZHA running. So I deleted everything that had to do with zigbee mqtt and ZHA. Just to have a clean start. At the end the error changed and i tried with and without the ZHA Just to see the diffrence but that didn’t matter

So now i running into a new problem:

(I know the password is very bad but just for testing it is ok)

[23:23:00] INFO: Preparing to start...
[23:23:01] INFO: Socat not enabled
[23:23:01] INFO: Zigbee Herdsman debug logging enabled
[23:23:03] INFO: Starting Zigbee2MQTT...
Zigbee2MQTT:debug 2023-08-02 23:23:10: Loaded state from file /config/zigbee2mqtt/state.json
Zigbee2MQTT:info  2023-08-02 23:23:10: Logging to console and directory: '/config/zigbee2mqtt/log/2023-08-02.23-23-10' filename: log.txt
Zigbee2MQTT:debug 2023-08-02 23:23:10: Removing old log directory '/config/zigbee2mqtt/log/2023-08-02.22-54-33'
Zigbee2MQTT:info  2023-08-02 23:23:10: Starting Zigbee2MQTT version 1.32.2 (commit #unknown)
Zigbee2MQTT:info  2023-08-02 23:23:10: Starting zigbee-herdsman (0.17.2)
Zigbee2MQTT:debug 2023-08-02 23:23:10: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/config/zigbee2mqtt/coordinator_backup.json","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","databasePath":"/config/zigbee2mqtt/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"adapter":"ezsp"}}'
2023-08-02T21:23:10.709Z zigbee-herdsman:adapter No path provided, auto detecting path
Zigbee2MQTT:error 2023-08-02 23:23:10: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-08-02 23:23:10: Failed to start zigbee
Zigbee2MQTT:error 2023-08-02 23:23:10: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2023-08-02 23:23:10: Exiting...
Zigbee2MQTT:error 2023-08-02 23:23:10: Error: spawn udevadm ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:285:19)
    at onErrorNT (node:internal/child_process:485:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

The config in the addon Zigbee2MQTT is:

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
  user: mqtt-home
  password: Test01!
serial:
  Port: >-
    /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20220816162525-if00
  adapter: ezsp

Other info:

I running HA on a raspberry pi 4
Home Assistant 2023.8.0 (today upgraded it from 7.3 to 8.0)
Supervisor 2023.07.1
Operating System 10.3
Frontend 20230802.0 - latest

Created a user that was not on administrator at first. But than i tried it as an admin but still no succes.

Port: should be port: (lower case)

I changed it but still got the error and some extra

[00:46:33] INFO: Preparing to start...
[00:46:34] INFO: Socat not enabled
[00:46:35] INFO: Zigbee Herdsman debug logging enabled
[00:46:37] INFO: Starting Zigbee2MQTT...
Zigbee2MQTT:debug 2023-08-04 00:46:45: Loaded state from file /config/zigbee2mqtt/state.json
Zigbee2MQTT:info  2023-08-04 00:46:45: Logging to console and directory: '/config/zigbee2mqtt/log/2023-08-04.00-46-45' filename: log.txt
Zigbee2MQTT:debug 2023-08-04 00:46:45: Removing old log directory '/config/zigbee2mqtt/log/2023-08-02.22-58-49'
Zigbee2MQTT:info  2023-08-04 00:46:45: Starting Zigbee2MQTT version 1.32.2 (commit #unknown)
Zigbee2MQTT:info  2023-08-04 00:46:45: Starting zigbee-herdsman (0.17.2)
Zigbee2MQTT:debug 2023-08-04 00:46:45: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/config/zigbee2mqtt/coordinator_backup.json","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","databasePath":"/config/zigbee2mqtt/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"adapter":"ezsp","path":"/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20220816162525-if00"}}'
2023-08-03T22:46:45.770Z zigbee-herdsman:adapter Failed to validate path: 'Error: spawn udevadm ENOENT'
2023-08-03T22:46:45.773Z zigbee-herdsman:controller:log Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":[1,3,5,7,9,11,13,15,0,2,4,6,8,10,12,13],"panID":6754,"extendedPanID":[221,221,221,221,221,221,221,221],"channelList":[11]},"serialPort":{"path":"/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20220816162525-if00","adapter":"ezsp"},"databasePath":"/config/zigbee2mqtt/database.db","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","backupPath":"/config/zigbee2mqtt/coordinator_backup.json","adapter":{"disableLED":false,"concurrent":null,"delay":null}}'
2023-08-03T22:46:45.778Z zigbee-herdsman:adapter:ezsp:uart Opening SerialPort with {"path":"/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20220816162525-if00","baudRate":115200,"rtscts":false,"autoOpen":false}
2023-08-03T22:46:45.800Z zigbee-herdsman:adapter:ezsp:uart Serialport opened
2023-08-03T22:46:45.801Z zigbee-herdsman:adapter:ezsp:uart Uart reseting
2023-08-03T22:46:45.803Z zigbee-herdsman:adapter:ezsp:uart --> Write reset
2023-08-03T22:46:45.806Z zigbee-herdsman:adapter:ezsp:uart --> [1ac038bc7e]
2023-08-03T22:46:45.810Z zigbee-herdsman:adapter:ezsp:uart -?- waiting reset
2023-08-03T22:46:55.808Z zigbee-herdsman:adapter:ezsp:uart --> Error: Error: {"sequence":-1} after 10000ms
2023-08-03T22:46:55.810Z zigbee-herdsman:adapter:ezsp:driv Reset connection. Try 0
2023-08-03T22:46:55.811Z zigbee-herdsman:adapter:ezsp:driv Stop driver
2023-08-03T22:46:55.815Z zigbee-herdsman:adapter:ezsp:ezsp Stop ezsp
2023-08-03T22:46:55.816Z zigbee-herdsman:adapter:ezsp:ezsp Close ezsp
2023-08-03T22:46:55.819Z zigbee-herdsman:adapter:ezsp:driv Close driver
Error: Reset error: Error: {"sequence":-1} after 10000ms
    at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/uart.ts:299:23
    at Queue.executeNext (/app/node_modules/zigbee-herdsman/src/utils/queue.ts:32:32)