zigbee2mqtt-adapter icon indicating copy to clipboard operation
zigbee2mqtt-adapter copied to clipboard

adapter not connecting

Open GFG-CHAOS opened this issue 2 years ago • 3 comments

Hi, I recently restarted my gateway and now my things are not connecting anymore. The log output says the following:

2022-11-13 22:35:37.981 INFO : Plugin: date-time-adapter died, code = 0 restarting after 4000 2022-11-13 22:35:40.176 INFO : zigbee2mqtt-adapter: attempting to latch onto MQTT 2022-11-13 22:35:40.277 INFO : zigbee2mqtt-adapter: starting zigbee2MQTT using: node /home/pi/.webthings/data/zigbee2mqtt-adapter/zigbee2mqtt/index.js 2022-11-13 22:35:40.279 INFO : zigbee2mqtt-adapter: initial this.config.serial_port = /dev/ttyACM0 2022-11-13 22:35:40.281 INFO : zigbee2mqtt-adapter: this.zigbee2mqtt_configuration_devices_file_path = /home/pi/.webthings/data/zigbee2mqtt-adapter/devices.yaml 2022-11-13 22:35:40.282 INFO : zigbee2mqtt-adapter: this.zigbee2mqtt_configuration_log_path = /home/pi/.webthings/data/zigbee2mqtt-adapter/log 2022-11-13 22:35:40.284 INFO : zigbee2mqtt-adapter: Using IKEA test server for firmware updates? true 2022-11-13 22:35:40.308 ERROR : zigbee2mqtt-adapter: mqtt error: { Error: connect ECONNREFUSED 127.0.0.1:1883 2022-11-13 22:35:40.309 ERROR : zigbee2mqtt-adapter: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14) 2022-11-13 22:35:40.311 ERROR : zigbee2mqtt-adapter: errno: 'ECONNREFUSED', 2022-11-13 22:35:40.312 ERROR : zigbee2mqtt-adapter: code: 'ECONNREFUSED', 2022-11-13 22:35:40.313 ERROR : zigbee2mqtt-adapter: syscall: 'connect', 2022-11-13 22:35:40.315 ERROR : zigbee2mqtt-adapter: address: '127.0.0.1', 2022-11-13 22:35:40.316 ERROR : zigbee2mqtt-adapter: port: 1883 } 2022-11-13 22:35:41.267 INFO : zigbee2mqtt-adapter: ola running stdout: Zigbee2MQTT requires node version ^14 || ^16 || ^18, you are running v10.24.1!

I tried to manually update the node version but somehow the gateway doesn't recognise it. Any help would be appreciated.

cheers Tobias

GFG-CHAOS avatar Nov 13 '22 22:11 GFG-CHAOS

Is this on the Webthings Gateway or the Candle Controller? Please use the Candle controller if you want to use this addon.

I suspect you're still using the Webthings Gateway since

  • the Candle Controller is on a newer Node version already
  • it uses a different MQTT port for added security, and your logs indicate you're using port 1883.

But I just want to make sure.

https://www.candlesmarthome.com/download

flatsiedatsie avatar Nov 14 '22 20:11 flatsiedatsie

Thanks for the answer. I am using the webthings gateway. i assume I habe to flash a new image for the candle controller, right? Is there no way of getting the addon to work on the webthings gateway? Just asking as I don’t want to redo my entire setup.

TobiBu avatar Nov 14 '22 21:11 TobiBu

I'm not sure. In theory it's compatible. You could try to install the addon manually on your system. It has so many improvements that it would be worth it.

In the long run the issue is that Zigbee2MQTT really doesn't support Node 10 anymore, which the Webthings Gateway still uses. Even node 12, which Candle uses, is not officially supported anymore.

One cool thing about Candle: it has a backup system (and an update system), so once you use it, you will always be able to easily upgrade.

flatsiedatsie avatar Nov 17 '22 12:11 flatsiedatsie