Bouke / HAP

Swift implementation of the Homekit Accessory Protocol
https://boukehaarsma.nl/HAP/
MIT License
364 stars 50 forks source link

Cannot set a Lock Mechanism to "Locked" #98

Closed valentindusollier closed 4 years ago

valentindusollier commented 4 years ago

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

valentindusollier commented 4 years ago

Sorry, juste a misunderstanding with HomeKit specification