I wrote an MQTT bridge to Kwikset Kevo Plus. It allows you to display lock status and lock / unlock the lock via OpenHAB. I’ve used this “binding” to make sure my door is locked when I go to bed.
Please find instructions at: https://github.com/salanki/kevo-mqtt.
I use the following rule to lock the door automatically after 20 minutes. The built in Kevo auto-lock locks after 15 seconds, which is too aggressive for me. I also can’t use the expire binding as the kevo integration updates the lock state every 3 minutes, which resets the expiry bindings timer.
val lockAfter = 20
var Timer lockTimer = null
rule "Lock Open"
when
Item DoorLock changed to OFF
then
if (lockTimer !== null) {
lockTimer.cancel()
}
lockTimer = createTimer(now.plusMinutes(20), [|
DoorLock.sendCommand(ON)
lockTimer = null
])
logInfo("lock", "Lock unlocked, locking in 20min")
end