Jump to content

Help Newbie with programming


Iceman68

Recommended Posts

Posted

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!

Posted

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!

Guest
This topic is now closed to further replies.

×
×
  • Create New...