MQTT cant connect in MQTT Explorer

For devices supporting the Auto Discovery feature. Like ZWaveJS2MQTT, Zigbee2MQTT.

Moderator: leecollings

Post Reply
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

MQTT cant connect in MQTT Explorer

Post by Dave47 »

I can not connect in MQTT Explorer with mij Rasberry ip adres where MQTT is installed.

Also i can not connect with localhost port 1883

It gives also problems in zwave-js-ui
2023-03-22 10:13:15.177 INFO MQTT: MQTT client reconnecting
2023-03-22 10:13:15.181 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:net16)
2023-03-22 10:13:15.183 INFO MQTT: MQTT client closed

In domoticz i have also Node-red with MQTT and thats ok. It works fine.
For node-red i setup in Domoticz MQTT with lan interface localhost en port 1883.

Dont understand why i can not connect in MQTT Explorer
Kedi
Posts: 575
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: MQTT cant connect in MQTT Explorer

Post by Kedi »

Perhaps use the IP-address of the Raspberry instead of 127.0.0.1
Logic will get you from A to B. Imagination will take you everywhere.
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: MQTT cant connect in MQTT Explorer

Post by Dave47 »

Is not working.
Kedi
Posts: 575
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: MQTT cant connect in MQTT Explorer

Post by Kedi »

What is in the logging of mosquitto?
If you put "log_type debug" in the mosquitto configuration, you will be able to find the cause.
Logic will get you from A to B. Imagination will take you everywhere.
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: MQTT cant connect in MQTT Explorer

Post by Dave47 »

The problem has been solved.
Kedi
Posts: 575
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: MQTT cant connect in MQTT Explorer

Post by Kedi »

So what was the solution?
Logic will get you from A to B. Imagination will take you everywhere.
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: MQTT cant connect in MQTT Explorer

Post by Dave47 »

From Mosquitto 2 and higher its only possible to login with localhost on that device.
For another device you have to change some settings in mosquitto.conf. you can login than with raspberry ip
User avatar
waltervl
Posts: 5844
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: MQTT cant connect in MQTT Explorer

Post by waltervl »

Dave47 wrote: Saturday 25 March 2023 7:40 From Mosquitto 2 and higher its only possible to login with localhost on that device.
For another device you have to change some settings in mosquitto.conf. you can login than with raspberry ip
As warned for on our domoticz MQTT Wiki:
https://www.domoticz.com/wiki/MQTT#Installing_Mosquitto
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Dave47
Posts: 136
Joined: Thursday 19 July 2018 14:36
Target OS: -
Domoticz version: 2023.1
Contact:

Re: MQTT cant connect in MQTT Explorer

Post by Dave47 »

Ai. Yes i See it now.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest