Iceman68 Posted October 14, 2012 Share Posted October 14, 2012 Hi there I have an ISY-99i and so far have just programmed a few timer programs (ie Lights on at sundown). I wanted to control my counter lights with very specific conditions: If 20 minutes before sunset comes before 6:00pm then turn counter lights on at 5:00pm weekdays But I am having difficulty visioning the program. I thought of this: Create a Variable EarlySundown=0, then these programs If On Mon, Tue, Wed, Thu, Fri From Sunset - 20 minutes To 6:00:00PM (same day) Then $EarlySundown = 1 Else $EarlySundown = 0 If On Mon, Tue, Wed, Thu, Fri Time is 5:00:00PM And $EarlySundown is 1 Then Set 'Counter Lights' On Else - No Actions - (To add one, press 'Action') But to me the first program would only run after the second if Sundown-20min came between 5pm and 6pm which fails my conditions, am I right? If so how would one write a program for this? Thanks very much for any help! Link to comment
ISYhbsh01 Posted October 14, 2012 Share Posted October 14, 2012 Hi Iceman68, I believe you can accomplish what you want with the following one program: If From Sunset - 1 hour and 20 minutes To 5:00:00PM (same day) And Time is 5:00:00PM Then Set 'Counter Lights' On Else - No Actions - (To add one, press 'Action') Good luck! Link to comment
Iceman68 Posted October 14, 2012 Author Share Posted October 14, 2012 Thanks for the reply Interesting solution, will give it a try And to everyone, sorry for the double post Link to comment
Iceman68 Posted October 20, 2012 Author Share Posted October 20, 2012 Solved! Thanks hbsh01! Tested it and worked perfectly Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.