kabbi / zigbee2mqtt-adapter

zigbee2mqtt adapter for WebThings gateway
Mozilla Public License 2.0
21 stars 13 forks source link

zigbee2mqtt not working #42

Closed TobiBu closed 2 years ago

TobiBu commented 2 years ago

Hi,

yesterday I installed the zigbee2mqtt adapter and it does not work for me. Logfile says some error messages:

2021-09-18 12:14:56.660 ERROR : zigbee2mqtt-adapter: (node:6080) UnhandledPromiseRejectionWarning: Error: Command failed: npm run build 2021-09-18 12:14:56.661 ERROR : zigbee2mqtt-adapter: sh: 1: tsc: not found 2021-09-18 12:14:56.662 ERROR : zigbee2mqtt-adapter: npm ERR! code ELIFECYCLE 2021-09-18 12:14:56.662 ERROR : zigbee2mqtt-adapter: npm ERR! syscall spawn 2021-09-18 12:14:56.663 ERROR : zigbee2mqtt-adapter: npm ERR! file sh 2021-09-18 12:14:56.664 ERROR : zigbee2mqtt-adapter: npm ERR! errno ENOENT 2021-09-18 12:14:56.665 ERROR : zigbee2mqtt-adapter: npm ERR! zigbee2mqtt@1.21.1 build:tsc && node index.js writehash 2021-09-18 12:14:56.665 ERROR : zigbee2mqtt-adapter: npm ERR! spawn ENOENT 2021-09-18 12:14:56.666 ERROR : zigbee2mqtt-adapter: npm ERR! 2021-09-18 12:14:56.667 ERROR : zigbee2mqtt-adapter: npm ERR! Failed at the zigbee2mqtt@1.21.1 build script. 2021-09-18 12:14:56.667 ERROR : zigbee2mqtt-adapter: npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 2021-09-18 12:14:56.668 ERROR : zigbee2mqtt-adapter: 2021-09-18 12:14:56.669 ERROR : zigbee2mqtt-adapter: npm ERR! A complete log of this run can be found in: 2021-09-18 12:14:56.684 ERROR : zigbee2mqtt-adapter: npm ERR! /home/pi/.npm/_logs/2021-09-18T10_14_56_614Z-debug.log 2021-09-18 12:14:56.685 ERROR : zigbee2mqtt-adapter: 2021-09-18 12:14:56.686 ERROR : zigbee2mqtt-adapter: at ChildProcess.exithandler (child_process.js:294:12) 2021-09-18 12:14:56.687 ERROR : zigbee2mqtt-adapter: at ChildProcess.emit (events.js:198:13) 2021-09-18 12:14:56.687 ERROR : zigbee2mqtt-adapter: at maybeClose (internal/child_process.js:982:16) 2021-09-18 12:14:56.689 ERROR : zigbee2mqtt-adapter: at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) 2021-09-18 12:14:56.697 ERROR : zigbee2mqtt-adapter: (node:6080) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) 2021-09-18 12:14:56.699 ERROR : zigbee2mqtt-adapter: (node:6080) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I had some issues with mosquiito when using voco and have to restart a mosquitto manually when rebooting the gateway. see voco issue 21

thanks a lot for helping out here.

Utopiah commented 2 years ago

Seeing tsc: not found you might want to try npm install -g typescript to get a TypeScript compiler working in your current environment (might be within nvm).

TobiBu commented 2 years ago

thanks for that advice.

now I only get this error message in the log 2021-09-19 19:37:29.343 INFO : Loading add-on: zigbee2mqtt-adapter 2021-09-19 19:37:30.604 INFO : zigbee2mqtt-adapter: Opening database: /home/pi/.webthings/config/db.sqlite3 2021-09-19 19:37:30.649 INFO : zigbee2mqtt-adapter: Ignoring https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/schema.json because it has no messageType 2021-09-19 19:37:31.854 INFO : zigbee2mqtt-adapter: Ignoring https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json because it has no messageType 2021-09-19 19:37:33.937 INFO : zigbee2mqtt-adapter: Loading add-on zigbee2mqtt-adapter from /home/pi/.webthings/addons/zigbee2mqtt-adapter 2021-09-19 19:37:34.126 INFO : zigbee2mqtt-adapter: Serial port is not defined in settings. Will attempt auto-detect. 2021-09-19 19:37:34.143 INFO : zigbee2mqtt-adapter: - USB stick spotted at: /dev/ttyACM0 2021-09-19 19:37:34.264 INFO : zigbee2mqtt-adapter: Auto-update is enabled. Checking if Zigbee2MQTT should be updated... 2021-09-19 19:38:05.242 ERROR : zigbee2mqtt-adapter: (node:19809) UnhandledPromiseRejectionWarning: Error: Command failed: npm run build 2021-09-19 19:38:05.243 ERROR : zigbee2mqtt-adapter: 2021-09-19 19:38:05.244 ERROR : zigbee2mqtt-adapter: at ChildProcess.exithandler (child_process.js:294:12) 2021-09-19 19:38:05.245 ERROR : zigbee2mqtt-adapter: at ChildProcess.emit (events.js:198:13) 2021-09-19 19:38:05.246 ERROR : zigbee2mqtt-adapter: at maybeClose (internal/child_process.js:982:16) 2021-09-19 19:38:05.247 ERROR : zigbee2mqtt-adapter: at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) 2021-09-19 19:38:05.249 ERROR : zigbee2mqtt-adapter: (node:19809) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) 2021-09-19 19:38:05.250 ERROR : zigbee2mqtt-adapter: (node:19809) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

flatsiedatsie commented 2 years ago

See the other thread for the solution