Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adapter not connecting #54

Open
GFG-CHAOS opened this issue Nov 13, 2022 · 3 comments
Open

adapter not connecting #54

GFG-CHAOS opened this issue Nov 13, 2022 · 3 comments

Comments

@GFG-CHAOS
Copy link

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

@flatsiedatsie
Copy link
Collaborator

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

@TobiBu
Copy link

TobiBu commented Nov 14, 2022

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.

@flatsiedatsie
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants