Hey All, I know there are TONS of threads out there on this and I assure you I have read and tried dozens of Methods. What I can’t figure out is why I can’t get this to work. I’m guessing and hoping one of you can solve this with a very quick reply.
I just want to program my door to lock after 5 minutes ONLY if the door is closed. I’m trying PLEG, but just don’t understand why it’s not working.
Here is my PLEG Setup:
Inputs:
DoorUnlocked = Deadbolt is Open
DoorClosed = DoorSensor is not Tripped
DoorOpen = DoorSensor is Tripped
Conditions:
DoorUnlocked AND (DoorClosed; Now > 00:05:00)
Actions:
Deadbolt to Lock
PLEG is armed and functions…but still locks the deadbolt when the door is open. I don’t get it. I’ve tried switching sensor to tripped or not tripped.
I’ve tried condition:
DoorUnlocked AND DoorClosed AND (DoorClosed; Now > 00:05:00) - thinking that would give me time.
I’ve tried Condition: DoorUnlocked AND !DoorOpen AND (DoorClosed; Now > 00:05:00) - Thinking it wouldn’t work with door open…but no joy.
What am I doing wrong? Thanks in advance.
Using Kwikset Deadbolt, and Wireless Zwave Door Sensor. I could use wired DSC if it would make difference.
This should work for you:
DoorClosed AND (DoorUnlocked AND (DoorUnlocked; Now > 00:05:00))
I tried that… no dice. I seriously have no idea what I’m doing wrong with PLEG, but I can’t even program it to “reliably”, reliably being the key word, function something as easily as turning a light on 10 seconds after the door opens. I’ve run through what feels like a billion times and still no luck to get PLEG setup properly. I’ve had results ranging from 26 seconds to over 3 minutes before the PLEG decides to turn on the light just when the sensor is tripped. Simple condition of DoorOpen and action of turning light on after 10 second delay. I don’t get it.
TO FIX MY LOCKS:
Because I beat my head on this for 2 days now, I’ll write a quick easy way to setup Door Sensor and AUTOlock if you’re having trouble.
-
Install App “Countdown Timer” (version 8.0 from me writing this)
-
Create a New Scene called “Start Timer” (or whatever you want) and have it Trigger for your door sensor closed (not tripped) - THEN, under that same scene (you may have to go back into it), select “Restart” on Countdown timer.
-
Again, ceate a New Scene this time called “Cancel Timer” and have it Trigger for your same door sensor open (tripped) - THEN, under that same scene (you may have to go back into it), select “Cancel” on Countdown timer.
-
Last one, Create a New Scene and have it Trigger Countdown Timber, select option “Timer Completes while not muted” - THEN, under that same scene (you may have to go back into it), select “Lock” on your Deadbolt or lock.
-
Press Save and enjoy a simple fix for not locking your door while open.
The beauty is it restarts the timer should you open the door again, and it appears to be very reliable…at least for my application.
You can program how long you want your door closed before locking by changing the “Duration” under the advanced tab in Countdown Timer settings.
I have the setup you want and it is currently working.
Add inputs for “door open” and “door unlocked”.
Here is the condition:
not door_open and door_unlocked and (door_closed; Now >5:00) and (door_unlocked; Now >5:00)
This confirms the door is currently open and unlocked and both of those changed more than 5 minutes ago.
If you read the PLEG getting started you will realize that the NOW only has 1 minute resolution.
If you want to do things measured in seconds you need to use INPUT timers … also described in the getting started.