Closed sd8rdb closed 4 years ago
There is a door service (https://github.com/KhaosT/HAP-NodeJS/blob/master/lib/gen/HomeKitTypes.js#L1454)
you can add a TargetDoorState to the LockMechanism service. from get just return TargetDoorState.CLOSED and from the set you can send an open to the smart lock and create a timeout to push TargetDoorState.CLOSED back to homekit after 500ms or so. this will result in the open button in eve always be pressable.
or you can try to use the GarageDoor service. it offers a combination of DoorState and LockState and could be better suited for siri.
Hi,
for the lock accessoires, I can see UNSECURED (e.g. door is unlocked), SECURED (e.g. door is locked). But there there are models/doors available where you also can open the door. Means you have to use the key to enter the door.
Means the door can also not be entered while the lock is in unsecured mode.
So a another command is necessary: "open"
How can this be implemented? Is it available with Homekit?
BR