So. I tried some other stuff.
- I reflashed the Stick on windows (instead on Linux like the first time)
- I added “rtscts: false” to Zigbee2MQTT like it’s recommended here https://electrolama.com/projects/zig-a-zig-ah/#configuration
- I used the path “/dev/ttyUSB0”
- I tested:
➜ ~ test -w /dev/ttyUSB0 && echo success || echo failure
success
➜ ~
Here is my Configuration:
data_path: /share/zigbee2mqtt
external_converters: []
devices: devices.yaml
groups: groups.yaml
homeassistant: true
permit_join: false
mqtt:
base_topic: zigbee2mqtt
server: 'mqtt://core-mosquitto'
user: zigbee2mqtt
password: password4zigbee2mqtt!
serial:
port: /dev/ttyUSB0
disable_led: true
advanced:
rtscts: false
availability_timeout: 0
report: true
log_level: info
pan_id: 6756
channel: 11
network_key:
- 1
- 3
- 5
- 7
- 9
- 11
- 11
- 12
- 1
- 4
- 4
- 6
- 8
- 10
- 12
- 13
availability_blocklist: []
availability_passlist: []
device_options: {}
blocklist: []
passlist: []
queue: {}
frontend:
port: 8099
experimental: {}
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
And here are my Errors:
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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-10-14T06_09_50_367Z-debug.log
2020-10-14T08:09:50: PM2 log: App [npm:0] exited with code [1] via signal [SIGINT]
2020-10-14T08:09:50: PM2 log: App [npm:0] starting in -fork mode-
2020-10-14T08:09:50: PM2 log: App [npm:0] online
> [email protected] start /zigbee2mqtt-1.15.0
> node index.js
Zigbee2MQTT:info 2020-10-14 08:09:56: Logging to console and directory: '/share/zigbee2mqtt/log/2020-10-14.08-09-55' filename: log.txt
Zigbee2MQTT:info 2020-10-14 08:09:57: Starting Zigbee2MQTT version 1.15.0 (commit #1.15.0)
Zigbee2MQTT:info 2020-10-14 08:09:57: Starting zigbee-herdsman...
Zigbee2MQTT:error 2020-10-14 08:10:12: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2020-10-14 08:10:12: Failed to start zigbee
Zigbee2MQTT:error 2020-10-14 08:10:12: Exiting...
Zigbee2MQTT:error 2020-10-14 08:10:12: Error: SRSP - ZDO - simpleDescReq after 6000ms
at Timeout._onTimeout (/zigbee2mqtt-1.15.0/node_modules/zigbee-herdsman/dist/utils/waitress.js:46:35)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7)
npm
ERR! code ELIFECYCLE
npm ERR! errno 1
npm
ERR! [email protected] start: `node index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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-10-14T06_10_12_409Z-debug.log
2020-10-14T08:10:12: PM2 log: App [npm:0] exited with code [1] via signal [SIGINT]
2020-10-14T08:10:12: PM2 log: App [npm:0] starting in -fork mode-
2020-10-14T08:10:12: PM2 log: App [npm:0] online
> [email protected] start /zigbee2mqtt-1.15.0
> node index.js
Zigbee2MQTT:info 2020-10-14 08:10:17: Logging to console and directory: '/share/zigbee2mqtt/log/2020-10-14.08-10-17' filename: log.txt
Zigbee2MQTT:info 2020-10-14 08:10:19: Starting Zigbee2MQTT version 1.15.0 (commit #1.15.0)
Zigbee2MQTT:info 2020-10-14 08:10:19: Starting zigbee-herdsman...
Zigbee2MQTT:error 2020-10-14 08:10:33: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2020-10-14 08:10:33: Failed to start zigbee
Zigbee2MQTT:error 2020-10-14 08:10:33: Exiting...
Zigbee2MQTT:error 2020-10-14 08:10:33: Error: SREQ '--> SYS - osalNvItemInit - {"id":33,"offset":0,"osal":true,"product":-1,"value":[173,5,2,51,20,51,0,30,0,0,0,1,5,1,143,0,20,0,2,5,30,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,100,26,8,0,0,8,0,0,15,15,4,0,1,0,0,0,1,0,0,0,0,167,20,46,102,54,18,135,167,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,3,0,1,120,10,1,0,0,0,0,0,0,0],"len":116,"initvalue":[173,5,2,51,20,51,0,30,0,0,0,1,5,1,143,0,20,0,2,5,30,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,100,26,8,0,0,8,0,0,15,15,4,0,1,0,0,0,1,0,0,0,0,167,20,46,102,54,18,135,167,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,3,0,1,120,10,1,0,0,0,0,0,0,0],"initlen":116}' failed with status '(0x00: SUCCESS)' (expected '(0x09: NV_ITEM_INITIALIZED)')
at Znp.<anonymous> (/zigbee2mqtt-1.15.0/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:291:27)
at Generator.next (<anonymous>)
at fulfilled (/zigbee2mqtt-1.15.0/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:24:58)
npm
ERR! code ELIFECYCLE
npm ERR!
errno 1
npm
ERR! [email protected] start: `node index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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-10-14T06_10_33_824Z-debug.log
2020-10-14T08:10:34: PM2 log: App [npm:0] exited with code [1] via signal [SIGINT]
2020-10-14T08:10:34: PM2 log: App [npm:0] starting in -fork mode-
2020-10-14T08:10:34: PM2 log: App [npm:0] online
> [email protected] start /zigbee2mqtt-1.15.0
> node index.js
Zigbee2MQTT:info 2020-10-14 08:10:39: Logging to console and directory: '/share/zigbee2mqtt/log/2020-10-14.08-10-39' filename: log.txt
Zigbee2MQTT:info 2020-10-14 08:10:41: Starting Zigbee2MQTT version 1.15.0 (commit #1.15.0)
Zigbee2MQTT:info 2020-10-14 08:10:41: Starting zigbee-herdsman...
Zigbee2MQTT:error 2020-10-14 08:10:55: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2020-10-14 08:10:55: Failed to start zigbee
Zigbee2MQTT:error 2020-10-14 08:10:55: Exiting...
Zigbee2MQTT:error 2020-10-14 08:10:55: Error: SRSP - SYS - osalNvRead after 6000ms
at Timeout._onTimeout (/zigbee2mqtt-1.15.0/node_modules/zigbee-herdsman/dist/utils/waitress.js:46:35)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7)
npm
ERR! code ELIFECYCLE
npm ERR! errno
1
npm
ERR! [email protected] start: `node index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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-10-14T06_10_55_637Z-debug.log
2020-10-14T08:10:55: PM2 log: App [npm:0] exited with code [1] via signal [SIGINT]
2020-10-14T08:10:55: PM2 log: App [npm:0] starting in -fork mode-
2020-10-14T08:10:55: PM2 log: App [npm:0] online
> [email protected] start /zigbee2mqtt-1.15.0
> node index.js
Zigbee2MQTT:info 2020-10-14 08:11:01: Logging to console and directory: '/share/zigbee2mqtt/log/2020-10-14.08-11-01' filename: log.txt
Zigbee2MQTT:info 2020-10-14 08:11:03: Starting Zigbee2MQTT version 1.15.0 (commit #1.15.0)
Zigbee2MQTT:info 2020-10-14 08:11:03: Starting zigbee-herdsman...
Any Idea would be appreciated. Also any Idea how to debug this.
Thanks for your help.
Jens