PatchworkBoy / homebridge-edomoticz

Domoticz Homebridge-Plugin
Other
118 stars 44 forks source link

Status sync issue #233

Closed Chema-ES closed 2 years ago

Chema-ES commented 3 years ago

Any suggestion?

PatchworkBoy commented 3 years ago

Check your MQTT setup, monitor out channel with a client. Verify updates are being sent in real-time.

EddyGitH commented 3 years ago

Hi, I have the same issue, in config.json i have set MQTT set to 1 (was true but no change in speed). Domoticz is working properly, but homebridge is lagging multiple seconds.

Edit: Deactivated other plugins but no improvement of speed. Node red is receiving MQTT messages immediatly.

EddyGitH commented 3 years ago

Just found out I have an error in the homebridge log: Starting to advertise 'Homebridge 4264 E03C' using bonjour-hap backend! [3/7/2021, 10:18:38 PM] Homebridge v1.3.2 (Homebridge 4264) is running on port 52766. [3/7/2021, 10:18:38 PM] [Domoticz] There was an error while getting the MQTT Hardware Device from Domoticz. Please verify that you have added the MQTT Hardware Device and that the hardware device is enabled.

So it is not connecting over MQTT, then I read it gets the MQTT data from Domoticz were I had 127.0.0.1 as for the MQTT server, but changing that to the real IP didn't help. UserID / PW issues i do not see, anyone know how to debug this?

PatchworkBoy commented 3 years ago

Have you actually added the MQTT Hardware device in Domoticz Hardware Settings?

Sent from my iPhone

On 7 Mar 2021, at 21:22, EddyGitH notifications@github.com wrote:

 Just found out I have an error in the homebridge log: Starting to advertise 'Homebridge 4264 E03C' using bonjour-hap backend! [3/7/2021, 10:18:38 PM] Homebridge v1.3.2 (Homebridge 4264) is running on port 52766. [3/7/2021, 10:18:38 PM] [Domoticz] There was an error while getting the MQTT Hardware Device from Domoticz. Please verify that you have added the MQTT Hardware Device and that the hardware device is enabled.

So it is not connecting over MQTT, then I read it gets the MQTT data from Domoticz were I had 127.0.0.1 as for the MQTT server, but changing that to the real IP didn't help. UserID / PW issues i do not see, anyone know how to debug this?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

EddyGitH commented 3 years ago

Yes i have a zigbee2mqtt hardware in there, and that is working properly since domoticz has quick status updates. i tried the advanced MQTT settings, but no luck there :( : { "name": "Domoticz", "server": "192.168.2.39", "port": 8081, "roomid": 0, "mqtt": { "host": "192.168.2.39", "port": 1883, "topic": "zigbee2mqtt", "username": "XXXXXX", "password": "XXXXXXX" },

EddyGitH commented 3 years ago

Or do i need to add my Mosquitto server in there? Edit: Never mind, the IP is of Mosquitto, so that is not faulty.

PatchworkBoy commented 3 years ago

Never heard of it. Expects the Domoticz native mqtt client & topic structure. Anything else you’ll have to decide the mqtt libs in edomoticz source to work with whatever your specific mqtt setup is.

Sent from my iPhone

On 7 Mar 2021, at 21:44, EddyGitH notifications@github.com wrote:

 Yes i have a zigbee2mqtt hardware in there, and that is working properly since domoticz has quick status updates. i tried the advanced MQTT settings, but no luck there :( : { "name": "Domoticz", "server": "192.168.2.39", "port": 8081, "roomid": 0, "mqtt": { "host": "192.168.2.39", "port": 1883, "topic": "zigbee2mqtt", "username": "XXXXXX", "password": "XXXXXXX" },

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

EddyGitH commented 3 years ago

Your message urged me to add the specific MQTT type in Domoticz. Set MQTT config back to the simple 'true' option and it is connected now and homebridge is running fast!

Thanks!