Foyer light on at 11pm if door left unlocked...

Would like to have my foyer light turn on and stay on as a reminder at 11pm if the Schlage Deadbolt is unlocked (meaning we forgot to lock the door from the inside once the last person entered the house that evening).

Created Scene and used the following Luup code in addition to the the 11pm daily timer and command to turn the light on:

– Find the status of the lock
local LockState=luup.variable_get(“urn:micasaverde-com:serviceId:DoorLock1”,“Status”,10)
if (LockState == “1”) then
return false
end

Does this look like it would work?

Thanks!

Why don’t you just send a lock command to it at 11PM. I do this with all my locks as a safety measure in case I forget.

It’s a Schlage Deadbolt- you need to turn the actual lever by hand to engage the deadbolt into the door frame.

You mean you have to actually get up from the couch and do this?! :slight_smile:

Just kidding! Good point though, I forgot that as I have the Kwickset ones.

The luup code works, set the timer to run the scene @ 8:30pm (left the door unlocked) and the light came on at 8:30. Locked the door- re-ran the scene and the light stayed off.