I have a scene that turns on the porch light, garage light, and walkway lights when either myself or my wife get home. Is there a way to run a scene to turn off the outside lights after a set amount of time that we are home? I use ping sensor to tell if my wife is home on here iphone and I use tasker. any suggestions would be greatly appreciated.
You could put a delayed action** in the TurnOn scene to turn the lights back off.
You could put a delayed action in the TurnOn scene to run another scene . Run scene with LUUP
If you’re going to go down the Lua/LUUP path, then you should definitely check out @RexBeckett’s Conditional Scene Execution: Some Examples.
Learning Lua isn’t as simple as many people would like. Fortunately for them there @RichardTSchaefer developed the Program Logic Event Generator(PLEG) plugin. It makes complex logic on Vera, such as you are attempting, possible and much simpler than Lua. @RexBeckett wrote a PLEG Basics guide as well.
** Edit: It is not a great idea to rely on delayed actions longer than several minutes. Should something happen to Vera(power failure, restart…) during the delay, the end action will not occur. PLEG is stateful enough to pick up where it left off prior to the restart.
You can consider using the countdown timer plugin. It is easy to use and like PLEG it will “survive” restarts. After the defined countdown time it can initiate switching off the lights.
Hmmm. The only thing is that you can’t have it easily “return” to previous state for switches, etc right?
You are right, reversing switches back to previous states is not part of this plugin. more information on [url=http://forum.micasaverde.com/index.php?topic=9425.0]http://forum.micasaverde.com/index.php?topic=9425.0[/url]