I’m trying to setup zigbee2mqtt for the first time and I’m running into problems. Here’s my log file and my configuration.yaml file:
[18:39:06] INFO: Preparing to start...
[18:39:06] INFO: Socat not enabled
[18:39:07] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-10-15 18:39:09] info: z2m: Logging to console, file (filename: log.log)
[2024-10-15 18:39:09] info: z2m: Starting Zigbee2MQTT version 1.40.2 (commit #unknown)
[2024-10-15 18:39:09] info: z2m: Starting zigbee-herdsman (2.1.3)
[2024-10-15 18:39:10] error: zh:zstack:znp: Failed to determine if path is valid: 'Error: spawn udevadm ENOENT'
[2024-10-15 18:39:10] info: zh:zstack:znp: Opening SerialPort with {"path":"/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231219140307-if00","baudRate":115200,"rtscts":false,"autoOpen":false}
[2024-10-15 18:39:10] info: zh:zstack:znp: Serialport opened
[2024-10-15 18:39:10] info: zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload
[2024-10-15 18:39:11] info: zh:zstack:znp: Skip bootloader for CC2652/CC1352
[2024-10-15 18:39:11] error: z2m: Error while starting zigbee-herdsman
[2024-10-15 18:39:11] error: z2m: Failed to start zigbee
[2024-10-15 18:39:11] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-10-15 18:39:11] error: z2m: Exiting...
[2024-10-15 18:39:11] error: z2m: Error: Error: Not supported, cannot set
/app/node_modules/winston/node_modules/readable-stream/lib/_stream_writable.js:264
var er = new ERR_STREAM_WRITE_AFTER_END();
^
Error: write after end
at writeAfterEnd (/app/node_modules/winston/node_modules/readable-stream/lib/_stream_writable.js:264:12)
at DerivedLogger.Writable.write (/app/node_modules/winston/node_modules/readable-stream/lib/_stream_writable.js:300:21)
at DerivedLogger.log (/app/node_modules/winston/lib/winston/logger.js:231:12)
at Logger.log (/app/lib/util/logger.ts:198:25)
at Logger.info (/app/lib/util/logger.ts:211:14)
at Znp.onPortClose (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:96:16)
at Object.onceWrapper (node:events:632:26)
at SerialPort.emit (node:events:529:35)
at port.close.then.closing (/app/node_modules/@serialport/stream/dist/index.js:242:18)
Configuration.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://localhost:1883
serial:
port: >-
/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20231219140307-if00
I also tried using port: /dev/ttyACM0 as that is the device path but I’m getting the same error.
Thanks for any help