Could someone help point me in the right direction? First time setting up homeassistant/supervisor and now trying to get the USB device working. I’ve updated the config as suggested, e.g. user name, password, also updated the server and its device ID, confirmed permission. Still cannot get this to start…the FAQ suggested enabling zibgee-herdsman debugging (DEBUG=zigbee-herdsman* npm start) however could not find what config to include this in. Thank you ahead of time.
Log from supervisor:
zigbee2mqtt:info 2020-05-03 14:54:30: Starting zigbee2mqtt version 1.13.0 (commit #unknown)
zigbee2mqtt:info 2020-05-03 14:54:30: Starting zigbee-herdsman…
zigbee2mqtt:debug 2020-05-03 14:54:30: Using zigbee-herdsman with settings: ‘{“network”:{“panID”:6754,“extendedPanID”:[221,221,221,221,221,221,221,221],“channelList”:[11],“networkKey”:“HIDDEN”},“databasePath”:"/share/zigbee2mqtt/database.db",“databaseBackupPath”:"/share/zigbee2mqtt/database.db.backup",“backupPath”:"/share/zigbee2mqtt/coordinator_backup.json",“serialPort”:{“baudRate”:115200,“rtscts”:true,“path”:"/dev/ttyUSB1"},“adapter”:{“concurrent”:null}}’
zigbee2mqtt:error 2020-05-03 14:54:37: Error while starting zigbee-herdsman
zigbee2mqtt:error 2020-05-03 14:54:37: Failed to start zigbee
zigbee2mqtt:error 2020-05-03 14:54:37: Exiting…
zigbee2mqtt:error 2020-05-03 14:54:37: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
at ZStackAdapter. (/zigbee2mqtt-1.13.0/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:71:23)
at Generator.throw ()
at rejected (/zigbee2mqtt-1.13.0/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:6:65)
npm
ERR! code ELIFECYCLE
npm ERR!
errno 1
npm
ERR! zigbee2mqtt@1.13.0 start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zigbee2mqtt@1.13.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm
ERR! /root/.npm/_logs/2020-05-03T18_54_37_337Z-debug.log
Debug log file:
bash-5.0# cat 2020-05-03T18_44_17_550Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli ‘/usr/bin/node’,
1 verbose cli ‘/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js’,
1 verbose cli ‘start’
1 verbose cli ]
2 info using npm@6.13.4
3 info using node@v12.15.0
4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
5 info lifecycle zigbee2mqtt@1.13.0~prestart: zigbee2mqtt@1.13.0
6 info lifecycle zigbee2mqtt@1.13.0~start: zigbee2mqtt@1.13.0
7 verbose lifecycle zigbee2mqtt@1.13.0~start: unsafe-perm in lifecycle true
8 verbose lifecycle zigbee2mqtt@1.13.0~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/zigbee2mqtt-1.13.0/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
9 verbose lifecycle zigbee2mqtt@1.13.0~start: CWD: /zigbee2mqtt-1.13.0
10 silly lifecycle zigbee2mqtt@1.13.0~start: Args: [ ‘-c’, ‘node index.js’ ]
11 silly lifecycle zigbee2mqtt@1.13.0~start: Returned: code: 1 signal: null
12 info lifecycle zigbee2mqtt@1.13.0~start: Failed to exec start script
13 verbose stack Error: zigbee2mqtt@1.13.0 start: node index.js
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:223:5)
13 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:223:5)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
14 verbose pkgid zigbee2mqtt@1.13.0
15 verbose cwd /zigbee2mqtt-1.13.0
16 verbose Linux 4.15.0-96-generic
17 verbose argv “/usr/bin/node” “/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js” “start”
18 verbose node v12.15.0
19 verbose npm v6.13.4
20 error code ELIFECYCLE
21 error errno 1
22 error zigbee2mqtt@1.13.0 start: node index.js
22 error Exit status 1
23 error Failed at the zigbee2mqtt@1.13.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
Configuration:
data_path: /share/zigbee2mqtt
devices: devices.yaml
groups: groups.yaml
homeassistant: true
permit_join: true
mqtt:
base_topic: zigbee2mqtt
server: ‘mqtt://localhost’
user:
password:
serial:
port: /dev/ttyUSB1
advanced:
log_level: debug
pan_id: 6754
channel: 11
network_key:
- 1
- 3
- 5
- 7
- 9
- 11
- 13
- 15
- 0
- 2
- 4
- 6
- 8
- 10
- 12
- 13
availability_blacklist: []
ban: []
whitelist: []
queue: {}
socat:
enabled: false
master: ‘pty,raw,echo=0,link=/dev/ttyZ2M,mode=777’
slave: ‘tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5’
restartdelay: 1
initialdelay: 1
options: ‘-d -d’
log: false