Bouke / HAP

Swift implementation of the Homekit Accessory Protocol

Home Page:https://boukehaarsma.nl/HAP/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot set a Lock Mechanism to "Locked"

valentindusollier opened this issue · comments

Hi,

A Lock Mechanism have 4 valid values : ”Unsecured”, ”Secured”, ”Jammed” and ”Unknown”.
I thought ”Secured” means the lock is locked, but when I set my Lock Mechanism to "Secured" with
myLock.lockMechanism.lockCurrentState.value = .secured
The accessory on the Home app displays "Unlocking..."
When I set to "Unsecured", it displays "Unlocked"

How am I suppose to set my Lock to the Locked state ?
Thank in advance :D

Sorry, juste a misunderstanding with HomeKit specification