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.

Best way to manage programs

Featured Replies

Posted

I want to use the ISY to control 5 landscape pumps.

 

So, for the Spring & Fall, I wrote a set of programs that will exercise the pumps periodically each day.

 

However, for the hottest of summer or to prevent freezing, I need a completely different set of programs.

 

The only way I can figure out so far is to create a set of programs for a time of year, then back them up to a file.  Clear the programs out, then start over with a new set for different conditions, then backing them up to a new name.

 

By restoring the correct backup, I get the set of programs that are right for those conditions.

 

1. Is there a more elegant way to do this?

 

2. I assume that all I need to do is do an "all stop" to all the pumps before I restore from the backup and everything will start over fresh with the new programs. Correct?

 

Thanks.

 

Have you considered putting each set of programs in its own folder and then disabling the folders you don't want to run?

 

Also, could you base each folder on outside temperature?

 

Gary Funk

Merry Christmas

Placing the seasonal programs in folder is a good idea. It's not possible to disable a program folder, but it's easy to created a condition that's true or false:

 

Folder Conditions for 'Spring'
If
        $iRun_Spring is 1
 
Then
   Allow the programs in this folder to run.
 
 

Thank you, Stu. I've never used folder programming.

 

Gary Funk

Merry Christmas

Even easier is to create one state variable for all seasons, then change only the variable:

 

Folder Conditions for 'Spring'
If
        $sRun_Season is 1
 
Then
   Allow the programs in this folder to run.

 

Folder Conditions for 'Fall'
If
        $sRun_Season is 2
 
Then
   Allow the programs in this folder to run.
 

etc.

 

then add a program to change the variable:

 

Spring
If
        From    Sunrise on date_to_start
        To      Sunrise on date_to_end
 
Then
        $sRun_Season  = 1
 
Else
   - No Actions - (To add one, press 'Action')
 
Fall
If
        From    Sunrise on date_to_start
        To      Sunrise on date_to_end
 
Then
        $sRun_Season  = 2
 
Else
   - No Actions - (To add one, press 'Action')

 

etc.

Edited by stusviews

Folder conditions, like program conditions, will not trigger on an Integer variable.

 

The variables must be state type variables or nothing will happen.

I just tested this to be true again.

Folder conditions, like program conditions, will not trigger on an Integer variable.

 

The variables must be state type variables or nothing will happen.

I just tested this to be true again.

 

Thanks for the reminder. I corrected my post to reflect the correction.

Archived

This topic is now archived and is 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.