Jump to content

Program precedence over other


ewind

Recommended Posts

Posted (edited)

Can I have one program take precedence over others? If I have several weekday and weekend programs controlling 3 Insteon Thermostats, rather than editing these programs when I want to override them, can I have another program override?

Somewhat of a vacation mode, where the normal weekday and weekend programs calling for temperature and fan settings are ignored, in favor of a programs during certain dates or the next 7 days, set thermostat to one temp, then quit and end of time period? 

 

Am I making any sense during my morning snow storm need more caffeine tired of winter moment? ;)

 

I want to override the actions in the several programs below and set Main Thermo to 60 degrees for 5 days.

 

===================================================================================
Thermo Heat - [ID 0004][Parent 0001]

Folder Conditions for 'Thermo Heat'

If
   - No Conditions - (To add one, press 'Schedule' or 'Condition')
 
Then
   Allow the programs in this folder to run.
 

-----------------------------------------------------------------------------------
Thermo 60 - [ID 0003][Parent 0004]

If
        Status  'Main Thermo' is 60° (Temperature)
     Or Status  'Basement Thermo' is 60° (Temperature)
 
Then
        Send Notification to 'Gmail'
        Resource 'Pushover Temp'
        Repeat Every  10 minutes 
 
Else
   - No Actions - (To add one, press 'Action')
 
Main Thermo 60


-----------------------------------------------------------------------------------
Weekday Heat 10PM - [ID 0008][Parent 0004]

If
        Status  'Main Thermo' is Mode Heat
    And On Sun, Mon, Tue, Wed, Thu
        Time is 10:00:00PM
 
Then
        Set 'Main Thermo' 69° (Heat Setpoint)
        Set 'Basement Thermo' 69° (Heat Setpoint)
        Wait  5 seconds
        Set 'Basement Thermo' Fan On
        Set 'Main Thermo' Fan On
 
Else
   - No Actions - (To add one, press 'Action')
 

-----------------------------------------------------------------------------------
Weekday Heat 3PM - [ID 0022][Parent 0004]

If
        Status  'Main Thermo' is Mode Heat
    And On Mon, Tue, Wed, Thu, Fri
        Time is  3:00:00PM
 
Then
        Set 'Main Thermo' 72° (Heat Setpoint)
        Set 'Basement Thermo' 72° (Heat Setpoint)
 
Else
   - No Actions - (To add one, press 'Action')
 

-----------------------------------------------------------------------------------
Weekday Heat 4AM - [ID 001F][Parent 0004]

If
        Status  'Main Thermo' is Mode Heat
    And On Mon, Tue, Wed, Thu, Fri
        Time is  4:00:00AM
 
Then
        Set 'Basement Thermo' 72° (Heat Setpoint)
        Set 'Main Thermo' 72° (Heat Setpoint)
        Wait  10 seconds
        Set 'Basement Thermo' Fan Auto
        Set 'Main Thermo' Fan Auto
 
Else
   - No Actions - (To add one, press 'Action')
 

-----------------------------------------------------------------------------------
Weekday Heat 9AM - [ID 0021][Parent 0004]

If
        Status  'Main Thermo' is Mode Heat
    And On Mon, Tue, Wed, Thu, Fri
        Time is  9:00:00AM
 
Then
        Set 'Main Thermo' 69° (Heat Setpoint)
        Set 'Basement Thermo' 70° (Heat Setpoint)
        Set 'Main Thermo' Fan Auto
        Set 'Basement Thermo' Fan Auto
        Set 'Bonus Thermo - Main' 62° (Heat Setpoint)
 
Else
   - No Actions - (To add one, press 'Action')
 

-----------------------------------------------------------------------------------
Weekend Heat 10PM - [ID 0009][Parent 0004]

If
        Status  'Main Thermo' is Mode Heat
    And On Sat, Fri
        Time is 10:00:00PM
 
Then
        Set 'Main Thermo' 69° (Heat Setpoint)
        Set 'Basement Thermo' 69° (Heat Setpoint)
        Wait  5 seconds
        Set 'Main Thermo' Fan On
        Set 'Basement Thermo' Fan On
 
Else
   - No Actions - (To add one, press 'Action')
 

-----------------------------------------------------------------------------------
Weekend Heat 4PM - [ID 001E][Parent 0004]

If
        Status  'Main Thermo' is Mode Heat
    And On Sat, Sun
        Time is  4:00:00PM
 
Then
        Set 'Main Thermo' 72° (Heat Setpoint)
        Set 'Basement Thermo' 72° (Heat Setpoint)
 
Else
   - No Actions - (To add one, press 'Action')
 

-----------------------------------------------------------------------------------
Weekend Heat 6AM - [ID 001D][Parent 0004]

If
        Status  'Main Thermo' is Mode Heat
    And On Sat, Sun
        Time is  6:00:00AM
 
Then
        Set 'Main Thermo' 72° (Heat Setpoint)
        Set 'Basement Thermo' 72° (Heat Setpoint)
        Set 'Basement Thermo' Fan Auto
        Set 'Main Thermo' Fan Auto
 
Else
   - No Actions - (To add one, press 'Action')
 

-----------------------------------------------------------------------------------
Weekend Heat 9AM - [ID 0020][Parent 0004]

If
        Status  'Main Thermo' is Mode Heat
    And On Sat, Sun
        Time is  9:00:00AM
 
Then
        Set 'Main Thermo' 70° (Heat Setpoint)
        Set 'Basement Thermo' 70° (Heat Setpoint)
        Set 'Main Thermo' Fan Auto
        Set 'Basement Thermo' Fan Auto
 
Else
   - No Actions - (To add one, press 'Action')
 

-----------------------------------------------------------------------------------
Workshop Thermo On - [ID 0002][Parent 0004]

If
        Status  'Workshop' is Calling for Heat
 
Then
        Send Notification to 'Gmail'
 
Else
   - No Actions - (To add one, press 'Action')
 

Edited by ewind
Posted

You can have a program disable and enable any other program.

Programs can disable themselves but not enable themselves.

Folders with programs can be enabled and disabled but programs can stop in midstream unfortunately.

Sent from my SM-G930W8 using Tapatalk

Posted

You could create a program, let's call it "Override Thermo" above the "Thermo Heat" folder.  Put your override instructions in the THEN section of the "Override Thermo" program.  Next add the condition "If Program 'Override Thermo' is False" to the folder "Thermo Heat".

Now the programs in the "Thermo Heat" folder will only run if the ELSE clause of the "Override Thermo" program was the last thing that program ran.  If the last thing that program ran was the THEN clause then the programs in the "Thermo Heat" folder will not run.

So now if you manually run the THEN clause of the "Override Thermo" program all of your other thermo programs will stop and not run again until you run the ELSE clause of the "Override Thermo" program.  You could even add IF conditions to the "Override Thermo" program if you want automatic control of how long the override will be in effect (e.g. From 6:00:00PM on 2019/02/12 To 6:00:00PM on 2019/02/15).

As larryllix said, if the folder condition for the "Thermo Heat" folder causes the programs within to stop, there's no guarantee were they'll stop, though I believe it will be at a WAIT or REPEAT statement as UD has said program execution is atomic, but even if that's not the case, the chances of them stopping anywhere other than a WAIT or REPEAT would be very low.

  • Like 1
Guest
This topic is now closed to further replies.

×
×
  • Create New...