zwave-js / zwave-js-ui

Full featured Z-Wave Control Panel UI and MQTT gateway. Built using Nodejs, and Vue/Vuetify
https://zwave-js.github.io/zwave-js-ui
MIT License
988 stars 206 forks source link

ERROR MQTT: Mqtt client error connect ECONNREFUSED 127.0.0.1:1883 #3287

Closed gkyprios closed 1 year ago

gkyprios commented 1 year ago

Hi guys,

I migrated from HASS OS running on a Pi4 to HASS Container running in Docker some time ago. I followed a support post about migrating ZwaveJS at the time and its all working fine. I have Mosquitto & Home Assistant setup in other containers.

However I see this error in the ZwaveJS Logs every 3 seconds, which makes log review very difficult:

2023-09-17 13:29:50.813 INFO MQTT: MQTT client reconnecting 2023-09-17 13:29:50.814 ERROR MQTT: Mqtt client error connect ECONNREFUSED 127.0.0.1:1883 Error: connect ECONNREFUSED 127.0.0.1:1883 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) 2023-09-17 13:29:50.824 INFO MQTT: MQTT client closed

Here is my MQTT config: image

My apologies in advance if I should have posted this elsewhere.

Can someone assist me please?

robertsLando commented 1 year ago

@gkyprios Are you using mqtt discovery? The best way to work with home assistant is to use official home assistant integration paired with zwave-js-ui.

See: https://zwave-js.github.io/zwave-js-ui/#/homeassistant/homeassistant-official

gkyprios commented 1 year ago

Thanks @robertsLando. I'm using the official HA integration and its working fine. I dont need MQTT discovery. I dont think I ever enabled this for the new docker install. What am I missing?

image

robertsLando commented 1 year ago

2023-09-18_11-10

Just turn on this and you are done so :)

Home assitant integration doesn't need mqtt at all.