Hi Everyone,
I’m new to Vera and home automation. I’ve setup a handful of devices around the house and like everything so far. I’m trying to figure out how to use a sensor on an external gate that when someone opens that gate between 11:00pm and 6:00am to turn on the lights in the house. Is there a specific plugin that I need to download that would allow me to accomplish this?
Another thing would be to have a ‘Get the Chill Off’ scene. I wake up at 6:00am each morning. I’d like something that at 5:30 am checks the current temperature of the Z-wave thermostat. If the temperature is below a certain degree then turn on the heater to a set point for about 20 minutes then turns off. I have a scene button now that I use that does just that but I think it would work better if at a specific time the system would do it automatically. This way the house a little warmer at the time I’m getting out of bed.
I appreciate any comments or feed back. Thanks in advance.
The Dawg
I have a scene button now that I use that does just that but I think it would work better if at a specific time the system would do it automatically.
[ol][li]Select Your Scene to edit (Where you created it)[/li]
[li]Select Schedules at the top[/li]
[li]Add schedules[/li]
[li]Day of week based[/li]
[li]Select Days[/li]
[li]Select Time[/li][/ol]
Vera does the rest 
Hi Richard,
Thanks for the reply. I have setup scenes with a schedule for turning lights on in the evening. I need to see if there is a way to only do something if the ‘sensor’ is tripped with a time window. Is that possible using schedules? Thanks!
Set up a trigger for the Scene based on the sensor tripping.
For the LUUP for THAT trigger add the following:
Before 7 AM and after 10 PM
local Hr = os.date("%I")
Hr = tonumber(Hr)
if ((Hr < 7) or (Hr >= 22) then
return true
end
return false
Or better yet; when Vera knows it’s night time:
return luup.is_night()
If you don’t want to use LUUP, you can do this with just scenes (although it requires several).
SceneA - sets sensor to “Armed” - run at 11 PM via Schedule
SceneB - sets sensor to “Bypassed” - run at 6 AM via Schedule
SceneC - turns on lights - runs via trigger for “An armed sensor is tripped”
You can change the times to be whatever you like:
- a certain time
- sunrise/set (although using “luup.is_night()” in SceneC and skipping SceneA/SceneB is easier)
- some delta before/after sunset