kabbi / zigbee2mqtt-adapter

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

0.5.0 cannot work with MQTT only #32

Closed supby closed 3 years ago

supby commented 3 years ago

I use the adapter only for receiving messages from MQTT but after version 0.4.* it tries to use serial adapter and throw error because i don't have any adapter connected(Only mqtt messages through network).

Loading add-on zigbee2mqtt-adapter from /home/pi/.webthings/addons/zigbee2mqtt-adapter 2021-02-06 13:13:06.191 INFO : zigbee2mqtt-adapter: Serial port is not defined in settings. Will attempt auto-detect. 2021-02-06 13:13:06.213 ERROR : zigbee2mqtt-adapter: ls: cannot access '/dev/serial/by-id': No such file or directory 2021-02-06 13:13:06.220 ERROR : zigbee2mqtt-adapter: { Error: Command failed: ls -l /dev/serial/by-id 2021-02-06 13:13:06.222 ERROR : zigbee2mqtt-adapter: ls: cannot access '/dev/serial/by-id': No such file or directory 2021-02-06 13:13:06.225 ERROR : zigbee2mqtt-adapter: 2021-02-06 13:13:06.227 ERROR : zigbee2mqtt-adapter: at checkExecSyncError (child_process.js:629:11) 2021-02-06 13:13:06.229 ERROR : zigbee2mqtt-adapter: at Object.execSync (child_process.js:666:13) 2021-02-06 13:13:06.231 ERROR : zigbee2mqtt-adapter: at new ZigbeeMqttAdapter (/home/pi/.webthings/addons/zigbee2mqtt-adapter/zigbee2mqtt-adapter.js:81:43) 2021-02-06 13:13:06.233 ERROR : zigbee2mqtt-adapter: at loadAdapter (/home/pi/.webthings/addons/zigbee2mqtt-adapter/zigbee2mqtt-adapter.js:988:2) 2021-02-06 13:13:06.235 ERROR : zigbee2mqtt-adapter: at pluginClient.register.catch.then (/home/pi/mozilla-iot/gateway/src/addon-loader.js:110:9) 2021-02-06 13:13:06.237 ERROR : zigbee2mqtt-adapter: at process._tickCallback (internal/process/next_tick.js:68:7)

flatsiedatsie commented 3 years ago

Have you disabled the local_zigbee2mqtt setting?

flatsiedatsie commented 3 years ago

Try setting that to true and click apply. Then set if to false and click apply.

createcandle commented 3 years ago

This should be fixed.