PatchworkBoy / homebridge-edomoticz

Domoticz Homebridge-Plugin
Other
118 stars 44 forks source link

Contact sensor doesn't update in Homebridge or Homekit #222

Closed jameschiffey closed 3 years ago

jameschiffey commented 3 years ago

I've just added a Z-Wave contact sensor to my setup.

When the sensor opens/closes, it updates correctly in Domoticz.

However, it doesn't update in Homekit (I use the iOS Home app) unless I re-open the app. It also doesn't update in the Homebridge UI unless I hit F5 on the accessories screen.

When I hit F5 on the accessories screen it will also update in the iOS Home app.

All of this makes me think that the contact sensor update is not being pushed to Homebridge correctly. Only when Homebridge is forced to pull the current status of all devices (with F5 or an app re-open) does it update.

This could be an issue with Homebridge itself, but the plugin seems like a better place to start.

I don't use MQTT, in case that's relevant.

PatchworkBoy commented 3 years ago

Sounds like you haven’t configured the plugin for MQTT... which enables real-time updates instead of pull-only updates.

Sent from my iPhone

On 8 Sep 2020, at 15:14, jameschiffey notifications@github.com wrote:

 I've just added a Z-Wave contact sensor to my setup.

When the sensor opens/closes, it updates correctly in Domoticz.

However, it doesn't update in Homekit (I use the iOS Home app) unless I restart the app. It also doesn't update in the Homebridge UI unless I hit F5 on the accessories screen.

When I hit F5 on the accessories screen it will also update in the iOS Home app.

All of this makes me think that the contact sensor update is not being pushed to Homebridge correctly. Only when Homebridge is forced to pull the current status of all devices (with F5 or an app restart) does it update.

This could be an issue with Homebridge itself, but the plugin seems like a better place to start.

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

jameschiffey commented 3 years ago

You're quite right, I haven't.

I just tried turning a light on/off in Domoticz, and it also doesn't update live in the Home app. Somehow I never noticed that before!

How do pull updates work then? Does it always require a "trigger" like opening/restarting the Home app?

PatchworkBoy commented 3 years ago

Pull down to refresh usually. If you want real-time updates install and setup MQTT as per README.md and you’ll get instant updates in both directions.

On 8 Sep 2020, at 18:51, jameschiffey notifications@github.com wrote:

 You're quite right, I haven't.

I just tried turning a light on/off in Domoticz, and it also doesn't update live in the Home app. Somehow I never noticed that before!

How do pull updates work then? Does it always require a "trigger" like opening/restarting the Home app?

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

PatchworkBoy commented 3 years ago

See ‘installing Mosquitto’ in Domoticz wiki, get it all setup in Domoticz, then enable in plugin.

https://www.domoticz.com/wiki/MQTT

On 8 Sep 2020, at 19:05, Marc Coyles marcacoyles@sky.com wrote:

Pull down to refresh usually. If you want real-time updates install and setup MQTT as per README.md and you’ll get instant updates in both directions.

On 8 Sep 2020, at 18:51, jameschiffey notifications@github.com wrote:

 You're quite right, I haven't.

I just tried turning a light on/off in Domoticz, and it also doesn't update live in the Home app. Somehow I never noticed that before!

How do pull updates work then? Does it always require a "trigger" like opening/restarting the Home app?

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

jameschiffey commented 3 years ago

Thank you, I'll try that!

Also, thanks for all your hard work on this plugin - it's very much appreciated.