本帖最后由 hcfong2020 于 2022-9-3 17:20 编辑
[16:34:45] INFO: Handing over control to Zigbee2MQTT Core ...
Zigbee2MQTT:info 2022-09-03 16:34:51: Logging to console and directory: '/config/zigbee2mqtt/log/2022-09-03.16-34-51' filename: log.txt
Zigbee2MQTT:info 2022-09-03 16:34:51: Starting Zigbee2MQTT version 1.27.2 (commit #unknown)
Zigbee2MQTT:info 2022-09-03 16:34:51: Starting zigbee-herdsman (0.14.53)
Zigbee2MQTT:error 2022-09-03 16:35:12: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-09-03 16:35:12: Failed to start zigbee
Zigbee2MQTT:error 2022-09-03 16:35:12: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-09-03 16:35:12: Exiting...
Zigbee2MQTT:error 2022-09-03 16:35:12: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:103:27)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29)
at Zigbee.start (/app/lib/zigbee.ts:58:27)
at Controller.start (/app/lib/controller.ts:101:27)
at start (/app/index.js:109:5)
[16:35:16] INFO: Handing over control to Zigbee2MQTT Core ...
Zigbee2MQTT:info 2022-09-03 16:35:22: Logging to console and directory: '/config/zigbee2mqtt/log/2022-09-03.16-35-21' filename: log.txt
Zigbee2MQTT:info 2022-09-03 16:35:22: Starting Zigbee2MQTT version 1.27.2 (commit #unknown)
Zigbee2MQTT:info 2022-09-03 16:35:22: Starting zigbee-herdsman (0.14.53)
复制代码
使用ZHA了可以识别到 usb设备为,/dev/ttyACM0禁用ZHA后重启Zigbe2Mqtt后还是报错配置文件
<span style="color: rgb(33, 33, 33); font-family: Roboto, Noto, sans-serif;">socat:</span>
复制代码
查看错误报告,好像是没有识别到适配器。有哪个大神能帮忙解决一下? 使用的适配器是 Sonoff的。 Zigbee2MQTT 无法启动|Zigbee2MQTT
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service z2m successfully started
s6-rc: info: service socat successfully started
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[17:17:47] INFO: Zigbee Herdsman debug logging enabled
[17:17:47] INFO: Socat not enabled
[17:17:50] INFO: Handing over control to Zigbee2MQTT Core ...
Zigbee2MQTT:debug 2022-09-03 17:17:56: Loaded state from file /config/zigbee2mqtt/state.json
Zigbee2MQTT:info 2022-09-03 17:17:56: Logging to console and directory: '/config/zigbee2mqtt/log/2022-09-03.17-17-56' filename: log.txt
Zigbee2MQTT:debug 2022-09-03 17:17:56: Removing old log directory '/config/zigbee2mqtt/log/2022-09-03.17-12-43'
Zigbee2MQTT:info 2022-09-03 17:17:56: Starting Zigbee2MQTT version 1.27.2 (commit #unknown)
Zigbee2MQTT:info 2022-09-03 17:17:56: Starting zigbee-herdsman (0.14.53)
Zigbee2MQTT:debug 2022-09-03 17:17:56: 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"}}'
2022-09-03T09:17:57.108Z zigbee-herdsman:adapter Failed to validate path: 'Error: spawn udevadm ENOENT'
2022-09-03T09:17:57.112Z 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/ttyACM0"},"databasePath":"/config/zigbee2mqtt/database.db","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","backupPath":"/config/zigbee2mqtt/coordinator_backup.json","adapter":{"disableLED":false,"concurrent":null,"delay":null}}'
2022-09-03T09:17:57.114Z zigbee-herdsman:adapter:zStack:znp:log Opening SerialPort with /dev/ttyACM0 and {"baudRate":115200,"rtscts":false,"autoOpen":false}
2022-09-03T09:17:57.133Z zigbee-herdsman:adapter:zStack:znp:log Serialport opened
2022-09-03T09:17:57.137Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2022-09-03T09:17:57.140Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2022-09-03T09:17:57.395Z zigbee-herdsman:adapter:zStack:znp:log Writing CC2530/CC2531 skip bootloader payload
2022-09-03T09:17:57.397Z zigbee-herdsman:adapter:zStack:unpi:writer --> buffer [239]
2022-09-03T09:17:58.399Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2022-09-03T09:17:58.400Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2022-09-03T09:17:58.653Z zigbee-herdsman:adapter:zStack:znp:log Skip bootloader for CC2652/CC1352
2022-09-03T09:17:59.111Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2022-09-03T09:17:59.112Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2022-09-03T09:18:05.116Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2022-09-03T09:18:05.117Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2022-09-03T09:18:11.122Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2022-09-03T09:18:11.124Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
Zigbee2MQTT:error 2022-09-03 17:18:17: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-09-03 17:18:17: Failed to start zigbee
Zigbee2MQTT:error 2022-09-03 17:18:17: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-09-03 17:18:17: Exiting...
Zigbee2MQTT:error 2022-09-03 17:18:17: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:103:27)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29)
at Zigbee.start (/app/lib/zigbee.ts:58:27)
at Controller.start (/app/lib/controller.ts:101:27)
at start (/app/index.js:109:5)
[17:18:18] INFO: Zigbee Herdsman debug logging enabled
[17:18:21] INFO: Handing over control to Zigbee2MQTT Core ...
Zigbee2MQTT:debug 2022-09-03 17:18:26: Loaded state from file /config/zigbee2mqtt/state.json
Zigbee2MQTT:info 2022-09-03 17:18:26: Logging to console and directory: '/config/zigbee2mqtt/log/2022-09-03.17-18-26' filename: log.txt
Zigbee2MQTT:debug 2022-09-03 17:18:26: Removing old log directory '/config/zigbee2mqtt/log/2022-09-03.17-13-14'
Zigbee2MQTT:info 2022-09-03 17:18:27: Starting Zigbee2MQTT version 1.27.2 (commit #unknown)
Zigbee2MQTT:info 2022-09-03 17:18:27: Starting zigbee-herdsman (0.14.53)
Zigbee2MQTT:debug 2022-09-03 17:18:27: 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"}}'
2022-09-03T09:18:27.514Z zigbee-herdsman:adapter Failed to validate path: 'Error: spawn udevadm ENOENT'
2022-09-03T09:18:27.518Z 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/ttyACM0"},"databasePath":"/config/zigbee2mqtt/database.db","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","backupPath":"/config/zigbee2mqtt/coordinator_backup.json","adapter":{"disableLED":false,"concurrent":null,"delay":null}}'
2022-09-03T09:18:27.520Z zigbee-herdsman:adapter:zStack:znp:log Opening SerialPort with /dev/ttyACM0 and {"baudRate":115200,"rtscts":false,"autoOpen":false}
2022-09-03T09:18:27.556Z zigbee-herdsman:adapter:zStack:znp:log Serialport opened
2022-09-03T09:18:27.560Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2022-09-03T09:18:27.565Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2022-09-03T09:18:27.819Z zigbee-herdsman:adapter:zStack:znp:log Writing CC2530/CC2531 skip bootloader payload
2022-09-03T09:18:27.821Z zigbee-herdsman:adapter:zStack:unpi:writer --> buffer [239]
2022-09-03T09:18:28.824Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2022-09-03T09:18:28.825Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2022-09-03T09:18:29.078Z zigbee-herdsman:adapter:zStack:znp:log Skip bootloader for CC2652/CC1352
2022-09-03T09:18:29.537Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2022-09-03T09:18:29.538Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2022-09-03T09:18:35.542Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2022-09-03T09:18:35.544Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
2022-09-03T09:18:41.549Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1}
2022-09-03T09:18:41.550Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]
Zigbee2MQTT:error 2022-09-03 17:18:47: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-09-03 17:18:47: Failed to start zigbee
Zigbee2MQTT:error 2022-09-03 17:18:47: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-09-03 17:18:47: Exiting...
Zigbee2MQTT:error 2022-09-03 17:18:47: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:103:27)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29)
at Zigbee.start (/app/lib/zigbee.ts:58:27)
at Controller.start (/app/lib/controller.ts:101:27)
at start (/app/index.js:109:5)
复制代码