Setup Luup Scene

Hi… I have configured my porch light to turn on when my door is unlocked at night, but I have to turn it off manually. I want to make a scene that turns off the light automatically. So this is what I want to achieve: If the door is locked within 10 seconds after the door was unlocked, wait 5 seconds after the door was locked and turn off the light. How should the luup be for this scene?


Have a look at the attached file,13305.msg98962.html#msg98962

Also take a look at the Smart Switch plugin. Smallest amount of time is 30 seconds, but with the right setup, it will basically do what you want.,11246.0.html

Thanks for your help guys