PatchworkBoy / homebridge-edomoticz

Domoticz Homebridge-Plugin
Other
118 stars 43 forks source link

Could not connect to Mqtt broker #267

Closed Tontonpat closed 1 year ago

Tontonpat commented 1 year ago

Hi, Since I’ve update the Mosquitto packet on my Synology, your plugin can’t connect to the Mqtt broker of domoticz. [7/25/2023, 10:30:33 AM] [eDomoticz] Retrying connection to MQTT broker.. [7/25/2023, 10:30:33 AM] [eDomoticz] Could not connect to MOTT broker! (localhost:1883) Retrying in 5 seconds...

Domoticz is connected to Mqtt. 2023-07-25 10:09:50.307 Status: MQTT: Connecting to localhost:1883 2023-07-25 10:09:50.557 Status: MQTT: connected to: localhost:1883

Here is my config: "name": "eDomoticz", "server": "127.0.0.1", "port": "8080", "roomid": 2, "mqtt": true, "ssl": false, "dimFix": 0, "legacyBlinds": 0, "_bridge": { "username": "0E:84:74:EE:6B:8B", "port": 49079 }, "platform": "eDomoticz"

What can I do?

Tontonpat commented 1 year ago

I think i've found the change. I've changed "localhost" by "127.0.0.1" in domoticz and your plugin config. { "name": "eDomoticz", "server": "127.0.0.1", "port": "8080", "roomid": 2, "mqtt": { "host": "127.0.0.1", "port": 1883, "topic": "domoticz/out", "username": "", "password": "" }, "ssl": false, "dimFix": 0, "legacyBlinds": 0, "_bridge": { "username": "0E:84:74:EE:6B:8B", "port": 49079 }, "platform": "eDomoticz" } In Domoticz : 2023-07-25 10:38:05.766 Status: MQTT: Connecting to 127.0.0.1:1883 2023-07-25 10:38:05.967 Status: MQTT: connected to: 127.0.0.1:1883

In you plugin : [7/25/2023, 10:45:08 AM] [eDomoticz] Successfully connected to MQTT broker.