Jump to content

sunset to sunrise program


alfa

Recommended Posts

Hello forum-

 

I'm new to making my home smart and need a simple fix:

 

I need a program to turn carriage lights on 30 min after sunset and off 30 min before sunrise.

 

This is what I have but it only works to turn on but not off:

 

If

From Sunset +30min

To Sunrise -30 min (next day)

Then

Set Scene 'FRONT_LIGHTS' On

Else

- No Actions - (To add one, press 'Action')

 

Thanks in advance.

 

Alfa

Link to comment
  • 1 month later...

I'm also a newbie and am creating the same scene, but implemented it with 2 separate programs.

 

SunsetOn

If sunset+30

then porchlight on

 

SunriseOff

If sunrise - 30

then porchlight off

 

Is there a benefit to this coding style (e.g. less "off" commands over the network) over the single program

If sunset+30 to sunrise -30

then porchlight on

else porchlight off

 

Thanks.

Link to comment

timster

 

No difference in the Insteon commands executed whether one Program or two in this example.

 

Coding one Program that uses both Then and Else keeps related logic in the same Program and uses the least number of Programs. I prefer the single Program because it keeps related logic in one Program. There are times where two Programs (or more) are needed to avoid If reevaluation problems so having multiple Programs is fine when needed.

 

There is a 300 Max Programs limits for the non-Pro ISY versus a 1000 Max Programs for the Pro ISY.

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...