Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

sunset to sunrise program

Featured Replies

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

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...

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.

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.