benzman81 / homebridge-nukiio

Nuki.io support for Homebridge: https://github.com/nfarina/homebridge
GNU General Public License v3.0
42 stars 6 forks source link

Only unlatch if current state is unlocked #41

Closed tschortsch3711 closed 5 years ago

tschortsch3711 commented 5 years ago

Currently, if the door is locked and I hit the 'always unlatch' button, it unlocks AND unlatches the door. Is it possible to add an options to only unlatch the door if the current state is unlocked?

I am using the auto unlock feature of the Nuki App, however, sometimes I don't reach the door fast enough to open it while the latch is pulled (and I don't want to extend the time). Therefore it would be great to have a button in control center to just unlatch the door if it is already unlocked (and not unlock the door and then unlatch).

I want to avoid unlocking my door if I accidentally hit any unlock button from control center.

I hope it is clear what I'm trying to say, otherwise let me know. Cheers

benzman81 commented 5 years ago

Hitting a lock button which state is already open will trigger a close of the door since home kit does not know door latches. This is why I added the three locks if you have a door with a door latch. For my case, I always pull the latch using Siri. Telling it "Hey Siri, Open the FooDoor" it will always execute the open door action regardless of its current state.

benzman81 commented 5 years ago

@tschortsch3711 With v0.10.0 you can now use automations/scenes to dis-/allow unlatching.