JimV Posted May 11, 2009 Posted May 11, 2009 I have my outside lights go to 60% at sunset and off at 10PM. What I am trying to do is have them go to 100% for one minute if the motion sensor is activated, and then back to 60%. If the sensor is activated after 10PM until sunrise the lights should go to 100% and then go off. Any help?
markens Posted May 11, 2009 Posted May 11, 2009 This is an interesting problem to me. I've programmed my motion detector to do some different things depending on state, so I'll take a stab at this. Several assumptions: 1) Motion detector set for default operation (insteon ON when triggered, OFF after default timeout of 1 minute) 2) Scene "outside-lights" has ON level of each light set at 100%, and scene "outside-lights-60" has ON levels set to 60% This approach uses three programs, one for each light level. The motion detector is not linked to anything other than the ISY: 60% If Time is Sunset Or ( From Sunset To 10:00:00PM (same day) And Control 'motion-Sensor' is switched Off ) Then Set Scene 'outside-lights-60' On Else - No Actions - (To add one, press 'Action') ON If From Sunset To Sunrise (next day) And Control 'motion-Sensor' is switched On Then Set Scene 'outside-lights' On Else - No Actions - (To add one, press 'Action') OFF If From 10:00:00PM To Sunset (next day) And Control 'motion-Sensor' is switched Off Then Set Scene 'outside-lights' Off Else - No Actions - (To add one, press 'Action') I hope this helps triggers more ideas.
oberkc Posted May 12, 2009 Posted May 12, 2009 I can speak conceptually at this point, but my suggestion would be to create two program folders.... one to activate from sunset to 1000 and the other from 1000 to sunrise. In the first folder have two programs. One to turn it up to 60% at sunset (or a few seconds after), and the second to respond to the motion detector to full on, wait one minute, then back to 60%. In the second folder, start with a program to turn the light off at 1001 (to account for the possibility the the light was on the 1 minute full on condition. A second program would respond to the motion sensor like the other program, except turning if off after a minute. I can see a minor chance of issues during the change from one folder to the other, but a bit more thought about using some conditions would solve that. I will think more when I get some time.
markens Posted May 12, 2009 Posted May 12, 2009 Oops. I see I forgot a condition in the OFF program I posted above, to turn the lights off at 10pm. The conditions above should be ORed with the following, similar to the 60% program: Time is 10:00:00PM There is still a problem with the light being on less than one minute if motion is detected in the minute prior to 10pm.
oberkc Posted May 12, 2009 Posted May 12, 2009 I wanted to offer more thoughts and suggestions. I suggest two folders, the first like this: If From Sunset To 10:00:00PM (same day) Then Allow the programs in this folder to run. The second program folder like this: If From 10:00:00PM To Sunrise (next day) Then Allow the programs in this folder to run. In the first folder would be two programs: If Time is Sunset + 2 seconds Then Set "outside lights' 60% Else - No Actions - (To add one, press 'Action') The second program in the first folder would be: If Control 'motion sensor' is switched On Then Set 'outside lights' On Wait 1 minute Set 'outside light' 60% Else - No Actions - (To add one, press 'Action') I added a couple seconds to the on time, simply because I was not sure how the ISY handles the folder start time and program start time being the same. It may not be necessary. If this works as I believe it would, then between sunset and 10p, these two programs would produce the desired result. To the second folder, for the hours between 10p and sunrise, I would add the following two programs If Control ' motion sensor' is switched On Then Set 'outside lights' On Wait 1 minute Set 'outside lights' Off Else - No Actions - (To add one, press 'Action') and If Time is 10:01:00PM Then Set 'outside lights' Off Else - No Actions - (To add one, press 'Action') I make the turn-off time to be 1001, just in case the light was triggered on right at 1000. I figure this is close enough
JimV Posted May 15, 2009 Author Posted May 15, 2009 Thanks for you help. Your suggestions help me develop a solution. Thanks again
Recommended Posts