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.

How to program between calendar dates of A to B

Featured Replies

Posted

New user of an ISY-994i PRO. My first (of many, I'm sure) question... I would like program an Insteon action that occurs between November 15 and January 1, a sort of Christmas scene. How to, please?

If you are looking for something where the year is a wild card, then ISY doesn't have that built in. The above program by Lee works for this Christmas season only. If you want to add wild cards for all of the different date functions you need to download this set of programs and install as indicated. Otherwise you need to do what Lee did with multiple "if" statements for as many years into the future as you would like to have this program work connected by "or". (If from a to b date, or c to d date, or e to f date, etc)

 

http://wiki.universal-devices.com/index ... _Variables

  • Author

Thanks, guys! I have been using Indigo on my Mac desktop and wanted to migrate away from the "computer on all the time mode," and also integrate this into my new ELK M1 panel as well. I can see I've got a steep learning curve ahead of me, and the UDI Wiki is just so large I didn't know where to start. The link to the "calendar" variables is spot on.

Certainly the link above to ISY-99i Generic Calendar Using Programs and Variables is best. Here's a simple less precise solution I used to enable irrigation in the summer but it's effectiveness varies depending on your distance from the equator (North of the 49th parallel our summer days are much longer than our winter days). A holiday is probably a lot harder to pinpoint this way but works fine for a season - ha.

 

If

Time is Sunrise

And From 1:00:00AM

To 6:30:00AM (same day)

 

Then

Enable Program 'Backyard Irrigation'

 

Else

Disable Program 'Backyard Irrigation'

Certainly the link above to ISY-99i Generic Calendar Using Programs and Variables is best. Here's a simple less precise solution I used to enable irrigation in the summer but it's effectiveness varies depending on your distance from the equator (North of the 49th parallel our summer days are much longer than our winter days). A holiday is probably a lot harder to pinpoint this way but works fine for a season - ha.

 

If

Time is Sunrise

And From 1:00:00AM

To 6:30:00AM (same day)

 

Then

Enable Program 'Backyard Irrigation'

 

Else

Disable Program 'Backyard Irrigation'

 

Switches...

 

Nice! Really creative.

 

Pick a time of the year. Determine when sunrise is at that time of year. Use that sunrise time as the limit of your time condition.

 

I may steal this idea.

Certainly the link above to ISY-99i Generic Calendar Using Programs and Variables is best. Here's a simple less precise solution I used to enable irrigation in the summer but it's effectiveness varies depending on your distance from the equator (North of the 49th parallel our summer days are much longer than our winter days). A holiday is probably a lot harder to pinpoint this way but works fine for a season - ha.

 

If

Time is Sunrise

And From 1:00:00AM

To 6:30:00AM (same day)

 

Then

Enable Program 'Backyard Irrigation'

 

Else

Disable Program 'Backyard Irrigation'

 

Switches...

 

Nice! Really creative.

 

Pick a time of the year. Determine when sunrise is at that time of year. Use that sunrise time as the limit of your time condition.

 

I may steal this idea.

 

That is a clever solution. You might run into DST issues depending on the exact dates.

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.