New to Home Assistant here and I am struggling with similar issues, I cannot get Z2M to start no matter what I do.
Here is my log, I am using a Sonoff Dongle-E.
[16:58:48] INFO: Preparing to start...
[16:58:48] INFO: Socat not enabled
[16:58:48] INFO: Zigbee Herdsman debug logging enabled
[16:58:49] INFO: Starting Zigbee2MQTT...
Zigbee2MQTT:debug 2023-11-08 16:58:50: Can't load state from file /config/zigbee2mqtt/state.json (doesn't exist)
Zigbee2MQTT:info 2023-11-08 16:58:50: Logging to console and directory: '/config/zigbee2mqtt/log/2023-11-08.16-58-50' filename: log.txt
Zigbee2MQTT:debug 2023-11-08 16:58:50: Removing old log directory '/config/zigbee2mqtt/log/2023-11-08.16-30-08'
Zigbee2MQTT:info 2023-11-08 16:58:50: Starting Zigbee2MQTT version 1.33.2 (commit #unknown)
Zigbee2MQTT:info 2023-11-08 16:58:50: Starting zigbee-herdsman (0.21.0)
Zigbee2MQTT:debug 2023-11-08 16:58:50: 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":[188,76,123,253,218,55,93,218],"networkKey":"HIDDEN","panID":40568},"serialPort":{"path":"/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20230221110315-if00 adapter: ezsp"}}'
2023-11-08T23:58:50.567Z zigbee-herdsman:adapter:zStack:znp:error Failed to determine if path is valid: 'Error: ENOENT: no such file or directory, lstat '/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20230221110315-if00 adapter: ezsp''
2023-11-08T23:58:50.573Z zigbee-herdsman:adapter Failed to validate path: 'Error: spawn udevadm ENOENT'
2023-11-08T23:58:50.574Z zigbee-herdsman:controller:log Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":[231,19,138,27,52,17,224,148,235,174,112,128,251,25,118,239],"panID":40568,"extendedPanID":[188,76,123,253,218,55,93,218],"channelList":[11]},"serialPort":{"path":"/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20230221110315-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-11-08T23:58:50.574Z zigbee-herdsman:adapter:zStack:znp:log Opening SerialPort with {"path":"/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20230221110315-if00 adapter: ezsp","baudRate":115200,"rtscts":false,"autoOpen":false}
Zigbee2MQTT:error 2023-11-08 16:58:50: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-11-08 16:58:50: Failed to start zigbee
Zigbee2MQTT:error 2023-11-08 16:58:50: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2023-11-08 16:58:50: Exiting...
Zigbee2MQTT:error 2023-11-08 16:58:50: Error: Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20230221110315-if00 adapter: ezsp'
at SerialPort.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:146:28)
at SerialPort._error (/app/node_modules/@serialport/stream/dist/index.js:82:22)
at /app/node_modules/@serialport/stream/dist/index.js:118:18
Here is my configuration…
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-user
password: my password
serial:
port: >-
/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20230221110315-if00
adapter: ezsp
zigbee_herdsman_debug: true
I would very much appreciate any help anyone could provide.