Hey there,
I just installed Homeassistant on a raspberry pi 4 and tried to configure it. I installed the zigbee2mqtt addon and mosquito broker addon
I filled in my serial port number for the Conbee II that I am using, and tried to start the zigbee2mqtt addon, but it keeps giving me this error:
[23:30:46] INFO: Preparing to start...
[23:30:46] INFO: Socat not enabled
[23:30:48] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-10-02 23:30:54] info: z2m: Logging to console, file (filename: log.log)
[2024-10-02 23:30:54] info: z2m: Starting Zigbee2MQTT version 1.40.2 (commit #unknown)
[2024-10-02 23:30:54] info: z2m: Starting zigbee-herdsman (2.1.3)
[2024-10-02 23:30:55] error: zh:zstack:znp: Failed to determine if path is valid: 'Error: spawn udevadm ENOENT'
[2024-10-02 23:30:55] info: zh:zstack:znp: Opening SerialPort with {"path":"/dev/ttyACM0","baudRate":115200,"rtscts":false,"autoOpen":false}
[2024-10-02 23:30:55] info: zh:zstack:znp: Serialport opened
[2024-10-02 23:30:55] info: zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload
[2024-10-02 23:30:56] info: zh:zstack:znp: Skip bootloader for CC2652/CC1352
[2024-10-02 23:30:56] error: z2m: Error while starting zigbee-herdsman
[2024-10-02 23:30:56] error: z2m: Failed to start zigbee
[2024-10-02 23:30:56] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-10-02 23:30:56] error: z2m: Exiting...
[2024-10-02 23:30:56] 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)
Gemini says that it seems like udev is not installed, but I can not install that myself I think, as everything is running in containers and when a container restarts it’s gone agian, so there is probably something else that is going on here. I cannot imagine that something that is needed for this to work is not installed by default. I am probably doing something wrong.
Here’s my 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: {}
serial:
port: /dev/ttyACM0
4 posts - 2 participants