stop lock from locking when a scene runs until 10 seconds after the door closes

I have three deadbolts that I have set to lock at 2230 every night. With the weather getting warmer the door may still be open at 2230 and if the deadbolt locks as it’s suppose to and the kids closed the door and are not paying attention the bolt will hit the door frame. Each of the three doors also have a hidden sensor. How can i stop the lock from locking when the scene runs until 10 seconds after the door is closed?

I hate to ask the next part, if it is a luup programming code that i need would someone be willing offer it up. I do not understand it one little bit.

Thank You

[quote=“kiethr, post:1, topic:181378”]I have three deadbolts that I have set to lock at 2230 every night. With the weather getting warmer the door may still be open at 2230 and if the deadbolt locks as it’s suppose to and the kids closed the door and are not paying attention the bolt will hit the door frame. Each of the three doors also have a hidden sensor. How can i stop the lock from locking when the scene runs until 10 seconds after the door is closed?

I hate to ask the next part, if it is a luup programming code that i need would someone be willing offer it up. I do not understand it one little bit.

Thank You[/quote]

What are you using now? I’m assuming you have a door sensor on the door to tell Vera it’s closed?

Even in a Scene you can have conditions (door is closed) that can be set before the scene will trigger.

PLEG app (Program Logic Event Generator) is a perfect way to do it to customize anything.

LUUP code I never used so seems to hard for me, but I’m sure can be done.

I would Search PLEG tho. If you can get what you need out of a scene that’s your easiest. PLEG can do anything but has a small learning curve, but since scenes are so limited this is what you should learn.

PLEG is a good approach as @integlikewhoa suggests. See PLEG Basics for an introduction.

Another approach would be to have a scene triggered when the door closes but only fire the lock action after 22:30. See Conditional Scene Execution: Time.

In PLEG (The bolded parts are names of inputs or condititons, what follows are the details.)

Create an Input Schedule with a name AutoLockPeriod
AutoLockPeriod On Mon-Sun at 22:30 Off Mon-Sun at 7:00

Create an Input Schedule for each door with a name of LockTimerN
LockTimer1 OnTime - Self ReTrigger OffTime is Interval 10 Seconds

Create an Input Trigger for each Door called DoorN
Door1 When Door 1 is Closed

Create two conditions for each DoorN
Door1Closed Door1 and AutoLockPeriod
Door1Locked Door1 and (Door1; !LockTimer1)

Actions for each of the Conditions:
Door1Closed Start Timer LockTimer1
Door1Locked Lock Door 1

Thanks everyone for the replies. I do have zwave sensors on all three doors. I’ll play around with your suggestion in the next day or so and get it all figured out. Thanks for the help!

Sent from my iPhone

Actions for each of the Conditions: Door1Closed Start Timer LockTimer1 Door1Locked Lock Door 1

Okay so i decided to give PLEG a try. I made to the actions but i cant figure out how to set them. When i go to the action tab i select c1 from the drop down box and it takes me back to the normal ui page in vera. What do I do from there?

Select the ADVANCED tab. Then select your PLEG device from the Pick a device drop-down and click Add. Now you should be able to select the StartTimer action.

Ah, that helped a lot! Do i need to add anything to the interval time field?

No. If you leave it blank it will use the interval time you defined in the Schedule.

Great, thank you for the help. Hopefully I did it right (i’ll find out in about an hour)!

Well after playing with this for a few weeks this is what I found out. I had the kitchen door and the front door open at the same time. After the “lock time” hit I closed the front door as expected the deadbolt locked shortly after. The kitchen door deadbolt activated even though the door was open. Any thoughts on solving the issue with the kitchen door?

Sent from my iPhone

Demonstrate the problem … then post the output of your Status command as PDF so we can see how you coded this up … as well as see the time stamps.