AnthemAVM Posted December 31, 2007 Posted December 31, 2007 So I tried this, what am I doing wrong as it is not working. If: From Sunset For 30 Minutes Then Set 'Outside - Family Room Door' On Am I missing something? Thanks for my newbie questions. Quote
gfrnd Posted December 31, 2007 Posted December 31, 2007 I'm not an expert here but here is what will work if you want the lights to go on at sunset then off after 30 minues If time is sunset then Set 'whatever you want' on wait 30 minutes Set 'whatever you want' off else this should work if I understand what you are trying to do Quote
Sub-Routine Posted January 1, 2008 Posted January 1, 2008 There are no experts here We are all new to this ISY. Maybe some more experienced AnthemAVM, I believe what you are thinking is If From Sunset For 30 minutes Then Set 'Backyard' On Else Set 'Backyard' Off Which would work, but it will be turning off the Backyard any time you are outside of the 30 minute window. We don't want that, do we? If you know you will only ever want it on for 30 minutes at a time the Wait example from gfrnd is the way to go. For lights I would use two programs. Backyard On If Time is Sunset Then Set 'Backyard' On Else - No Actions - (To add one, press 'Action') Backyard Off If Time is Sunset + 30 minutes Then Set 'Backyard' Off Else - No Actions - (To add one, press 'Action') Then if you need to modify either the On or Off time it will not affect the other. Rand Quote
MikeB Posted January 1, 2008 Posted January 1, 2008 Which would work, but it will be turning off the Backyard any time you are outside of the 30 minute window. We don't want that, do we? Hey Rand - That's what I had thought too, but it's not the case. I run the following code for my front door lights: If From Sunset + 20 minutes To 9:30:00PM (same day) Then Set Scene 'FrontDoor' On Else Set Scene 'FrontDoor' Off I can turn them on any time of the day, and they will stay on. I believe the conditions are evaluated only twice (at the start time, and at the end time) - not continuously. Quote
Sub-Routine Posted January 2, 2008 Posted January 2, 2008 Cool Mike, That is good to know! Rand Quote
Chris Jahn Posted January 2, 2008 Posted January 2, 2008 MikeB, You are absolutely right, when entering a time range that time range becomes True, when leaving a time range it becomes False. Entering and leaving a time range are events that cause the program to run (either Then or Else path depending on all the If conditions). Check out this post if you want to keep something on (or off) during a time range: http://forum.universal-devices.com/viewtopic.php?t=394 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.