GlueHome / homebridge-plugin

Homebrige plugin to integrate with Glue ecosystem.
Apache License 2.0
10 stars 4 forks source link

Long time needed for state change detection when using manual opening/locking prevents from using plugin in automations. #25

Closed acidkill closed 1 year ago

acidkill commented 1 year ago

Describe The Bug: Plugin works almost perfectly. When you are controlling lock via Eve or home app - changing state of the lock is instant. The issue is when you are trying to automate "automatic locking of the lock". Like I have a door sensor and did a flow "when door contact sensor changes to contact detected UNDER_CONDISION door lock status is unlocked THEN close door lock". It works like a charm when you open the door via app as change of state is instant. The problem is when you manually open door lock. Changing of state is detected in most cases few seconds after I close the door - so automation is not working.

To Reproduce: Make a similar flow and try to manually open the lock then close the door. Compare with opening door using app and closing the door.

Expected behavior: Lowering time needed to detect change of state caused by manual lock open/close as I can't expect that all my clients before leaving my office will install and use the app.

Environment:

arnonfarn commented 1 year ago

Maybe my feature request is something that will help things go faster? So we don't need the outside world to make a reliable automation. A local api basically, I think that would speed things up. I'm using home assistant. Here's a link to the feature request.

https://github.com/GlueHome/homebridge-plugin/issues/29

andycb commented 1 year ago

Hi, a delay of a few seconds for remote operations is expected in the current system, we're not really going to be able to improve on that unfortunately. So I'm going to close this ticket as such, but I'll keep the local control request open as a suggestion (its not really on the radar at the moment, though)