Closed indubwestep closed 4 years ago
You need to look at node_modules/zigbee-herdsman-converters instead of zigbee-shepherd-converters.
But now with zigbee-herdsman I'm getting the error 'Error: SRSP - SYS - version after 6000ms'
Did a fresh install again but now I can't get rid of the error:
zigbee2mqtt:info 2019-10-15T16:04:45: Logging to directory: '/app/data/log/2019-10-15.10-04-44'
zigbee2mqtt:debug 2019-10-15T16:04:45: Removing old log directory '/app/data/log/2019-10-15.09-58-26'
zigbee2mqtt:debug 2019-10-15T16:04:45: Can't load state from file /app/data/state.json (doesn't exist)
zigbee2mqtt:info 2019-10-15T16:04:45: Starting zigbee2mqtt version 1.6.0 (commit #9ebb1b9)
zigbee2mqtt:info 2019-10-15T16:04:45: Starting zigbee-herdsman...
zigbee2mqtt:debug 2019-10-15T16:04:45: Using zigbee-herdsman with settings: '{"network":{"panID":6754,"extenedPanID":[221,221,221,221,221,221,221,221],"channelList":[11],"networkKey":"HIDDEN"},"databasePath":"/app/data/database.db","backupPath":"/app/data/coordinator_backup.json","serialPort":{"baudRate":115200,"rtscts":true,"path":"/dev/ttyACM0"}}'
zigbee2mqtt:error 2019-10-15T16:04:52: Error while starting zigbee-herdsman
zigbee2mqtt:error 2019-10-15T16:04:52: Error: SRSP - SYS - version after 6000ms
at Timeout.object.timer.setTimeout [as _onTimeout] (/app/node_modules/zigbee-herdsman/dist/utils/waitress.js:44:24)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)
zigbee2mqtt:error 2019-10-15T16:04:52: Failed to start zigbee
zigbee2mqtt:error 2019-10-15T16:04:52: Exiting...
zigbee2mqtt:error 2019-10-15T16:04:52: Error: SRSP - SYS - version after 6000ms
at Timeout.object.timer.setTimeout [as _onTimeout] (/app/node_modules/zigbee-herdsman/dist/utils/waitress.js:44:24)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zigbee2mqtt@1.6.0 start: `node index.js`
npm ERR! Exit status 1
npm ERR! Failed at the zigbee2mqtt@1.6.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/2019-10-15T16_04_52_216Z-debug.log
Using '/app/data' as data directory
Update: somehow my dev/tty device swapped to the second port of the CC2652 so changing to the other one fixed the above particular error. However, there is still the issue where adding entries to devices.js in zigbee2mqtt/node_modules/zigbee-herdsman-converters produces no change and I still receive errors of device unsupported for every device I try to add. Ive done npm install in that folder and permissions are correct. Hit a dead end..
Can you post the content of your devices.js
? (post it on pastebin.com and link it here)
@Koenkk here you go : https://pastebin.com/JgViBb1Y
This is a zigbee-shepherd-converts devices.js
.
I would recommand to
rm -rf node_modules && npm install
node_modules
you shouldn't see a zigbee-shepherd-converters
folder, only zigbee-herdsman-converters
folderdevices.js
inside zigbee-herdsman-converters
.Hey Koenkk, I am getting same issue and also not able to locate devices.js file. under node_module i can see below dir: zigbee-herdsman/ zigbee-shepherd-converters/
Please let me know if i am looking under correct path: /opt/zigbee2mqtt/node_modules
@ayushjain4484 first make sure you are on the latest zigbee2mqtt (1.7.1), after that do:
cd /opt/zigbee2mqtt
rm -rf node_modules && npm install
Now you will find the devices.js
in /opt/zigbee2mqtt/node_modules/zigbee-herdsman-converters/devices.js
.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
zigbee2mqtt version: 1.6.0 CC2652R firmware version: CC26X2R1_20191011
Previously the same devices.js, fromZigbee.js, and homeassistant.js was working and support for custom devices that was added was working properly. I understand the folder structure has changed and I am wondering whether I have the correct structure. In opt/zigbee2mqtt I ran "npm install zigbee-shepherd-converters" which added a "node_modules" folder which contains zigbee-shepherd converters. Permissions are correct.
In devices.js the following was added:
In fromZigbee.js the following was added:
In homeassistant.js the following was added (is this file supposed to be located in opt/zigbee2mqtt/data/lib/extension ?):
However the log is still showing lack of support:
I noticed that in the logs 'zigbee-herdsman started' replaced 'zigbee-shepherd-converters started' and I am wondering whether that could be the issue?
As a side note I am getting some npm warnings and wondering whether 'npm audit fix' should be run: