Door sensor to trigger light need urgent help!

Hi all.

I am new to the forum and also new to the Vera Edge Controller and need some assist as i need a function to work if possible.
I will try to explain as good as i can as English is not my native language but here we go.

Well what i need is when my front door opens and activate the door sensor i want it to activate a wall plug to turn on the light in my kitchen, this I think is no problem to manage but now to the tricky part i also want the light in the kitchen to turn of again with in 10 minutes after it was activated.
And if the door opens again it have to be a loop for this so it again activate the kitchen lights.

Well hope that i explained it so you understand what i seek!

Maybe this is a basic future in the Vera Edge but as i was writing in the beginning of the thread i am a rookie and need all the help i can get.

So i hope that some one can help me.

First, your English is very good.

You can create a scene that is triggered by the door opening. The scene would turn on the light. The scene can also have a delayed action that will turn the light back off after 10 minutes. But, once a scene runs, it cannot be stopped, so the light will turn off after 10 minutes, regardless of the door. For example, if the door opens and the light is turned on, but the door is opened again after 5 minutes, the light will turn off 5 minutes later. The light will have been on for 10 minutes.


What you really want is a resettable countdown timer. That will be reset to 10 minutes every time you open the door. This way, if the door is opened and the light turns on, but the door is opened again after 5 minutes, the light will turn off 10 minutes after the second opening. The light will have been on for 15 minutes.

To do that, you could write some code with LUA/LUUP. But you can more easily do it with the Program Logic Event Generator(PLEG) plugin.

An example of how to do exactly what you want using PLEG can be found in @RexBeckett’s PLEG Basics - An Introduction to the Program Logic Event Generator.