Jump to content

sunset to sunrise program


alfa

Recommended Posts

Posted

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

Posted

At Sunrise -30 min (next day) the If statement becomes false so you need to turn the Scene off in the Else Statement.

 

Else

Set Scene 'FRONT_LIGHTS' Off

 

~Mike

  • 1 month later...
Posted

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.

Posted

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.

Guest
This topic is now closed to further replies.

×
×
  • Create New...