I’ve been stuck with my zigbee2mqtt module for a few days.
Mosquitto works fine and my zigbee key shows up in system information (CC2531).
Dialog is good when I test with MQTT explorer.
The zigbee2mqtt module logs are as follows:
[11:24:24] INFO: Preparing to start…
[11:24:27] INFO: Socat not enabled
[11:24:37] INFO: Starting Zigbee2MQTT…
Zigbee2MQTT:debug 2023-04-21 11:25:05: Loaded state from file /config/zigbee2mqtt/state.json
Zigbee2MQTT:info 2023-04-21 11:25:05: Logging to console and directory: ‘/config/zigbee2mqtt/log/2023-04-21.11-25-05’ filename: log.txt
Zigbee2MQTT:debug 2023-04-21 11:25:05: Removing old log directory ‘/config/zigbee2mqtt/log/2023-04-21.11-07-21’
Zigbee2MQTT:info 2023-04-21 11:25:05: Starting Zigbee2MQTT version 1.30.3 (commit #unknown)
Zigbee2MQTT:info 2023-04-21 11:25:05: Starting zigbee-herdsman (0.14.103)
Zigbee2MQTT:debug 2023-04-21 11:25:05: 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”:{“path”:“/dev/ttyACM0”}}’
Zigbee2MQTT:error 2023-04-21 11:25:07: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-04-21 11:25:07: Failed to start zigbee
Zigbee2MQTT:error 2023-04-21 11:25:07: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
Zigbee2MQTT:error 2023-04-21 11:25:07: Exiting…
Zigbee2MQTT:error 2023-04-21 11:25:08: Error: Error while opening serialport ‘Error: Error: No such file or directory, cannot open /dev/ttyACM0’
at SerialPort. (/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:76:22)
at /app/node_modules/@serialport/stream/dist/index.js:112:18
Yes I tried.
However, there is something I don’t understand…
Without touching anything, before restarting the command “ls -l /dev/serial/by-id” told me that the zigbee module was plugged into port ttyACM1
And after reboot the port becomes ttyACM0.
Is this normal?