PatchworkBoy / homebridge-edomoticz

Domoticz Homebridge-Plugin
Other
118 stars 43 forks source link

mqtt not used to send messages to domoticz coming from Hue plug-in #109

Closed ooii closed 6 years ago

ooii commented 7 years ago

Hi, a week ago, I added mqtt to my domoticz. Since then, my homekit updates in realtime when something changes on domoticz and, vice versa, when I switch on or off a domoticz switch from my Home app, it reacts instantly. Really appreciated the upgrade brought by mqtt.

However, it seems mqtt is not used when the switch order comes from a Hue Dimmer (via the Hue Plug-in). In that case, it is still sent the old way, not via mqtt. This leads to slowdowns and sometimes no response at all.

I can't say if this is due to the Hue Plug-in or the eDomoticz one, I'm then posting this issue on both plug-in repositories.

ooii commented 7 years ago

According to discussion on the hue plug-in issues, it seems the issue concerns the edomoticz plug-in, since if I set the domoticz switch manually in HomeKit, the plugin updates domoticz over mqtt but it does not if I use the hue dimmer.

ooii commented 7 years ago

Hi @PatchworkBoy, any idea about that?

PatchworkBoy commented 6 years ago

Homebridge-eDomoticz was never designed to be (and doesn’t function as) a bridge between other Homebridge plugins and Domoticz itself. Any other plugins need to communicate directly with Domoticz via it’s JSON API, which then triggers relevant MQTT messages to be sent by Domoticz. Homebridge-eDomoticz will then reflect changes when told about them by Domoticz’s own MQTT stream.

ooii commented 6 years ago

I did not plan to use it as a bridge between another plug-in and domoticz. I just wanted to use a Hue dimmer to switch on/off, via HomeKit, a Fibaro switch, which is a domoticz device. I checked right now and it seems that when the problem does not occur anymore. So, you were right to close the issue.