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!