How to turn off a switch 3 hours after it has been turned on through a scene

Hi there,
I am an absolute newbie in creating scenes and coding on a Vera light…
I have created a scene that starts a switch when the temp on the sensor goes below 2?c , to start the eating system… And it works
So, in addition, I just want to turn the switch off 3 hours after the scene has started (and this to be triggered by the scene only…
Any help appreciated !!
Enjoy this challenge
Best regards
P

Easy as they come.

When open up the scene to the immediate right of the scene name is a pull down that says Immediate. That means everything on that pages happens when the scene is first invoked.

If you click on the down arrow beside immediate you’ll seen an option to manage delays. Now go to the bottom of the new screen where Add is a box beside it, enter “3” in the box and press the hours button to the left of the 3 you entered. That will create a new page in additional to the immediate page. Enter the things you want to happen at the 3 hr mark (ie turning off the stuff you previously turned on), save and you’re done.

You can add as many or as few of these time delays pages as you like.

The only downside of this is that if Vera restarts during that 3hr period … The second part of your scene will NOT run.

If this was something mission critical … like turning on a sprinkler for 3 hours … you would want to use PLEG. It does not suffer from this problem. (If you did this with a Scene and Vera happened to restart, and your scene ran every couple days … the water could be running during those couple of days if you were not there to notice!).