Jump to content

'If' and Variables


Athlon
Go to solution Solved by larryllix,

Recommended Posts

Posted

Here's my program:

AC Upstairs Off - [ID 001E][Parent 0001]

If
        $Bedroom_Temperature is 0
     Or $Outside_Temperature is 0
 
Then
        Set 'Jen's Room Sensibo' Off
        Wait  10 seconds
        Set 'Guest Room Sensibo' Off
        Wait  10 seconds
        Set 'Bedroom Sensibo' Off
 
Else
   - No Actions - (To add one, press 'Action')

My issue:

When either variable changes to '0', the Sensibos do not turn off. If I right click on the program and chose 'Run (If)' the Sensibos do turn off (if either one is '0'}.

My question - why is my Policy not checking to see if those variables are changing?

Posted (edited)

The reason I don't have the program check the temperatures directly is because the Sensibo controllers beep with every 'on' and 'off' command. The program worked flawlessly when I used temperature from sensors directly, but the beeping every time a temperature inside or outside changed was driving us nuts 🤬.

I have a similar program to turn them On, by the way (also not working).

Each time a temperature changed, an 'on' or 'off' command was sent to them causing a beep. I even tried to have the program check the state of each Sensibo before sending the command, but it wasn't reliable.

The variables are working perfectly, and the program I listed above does as well if I run it manually.

Edited by Athlon
Posted
21 minutes ago, larryllix said:

It appears you used Integer variable instead of State variables. Only State variables will trigger programs to run.

Thank you for your quick response! Gonna make that change right now 😀.

Posted

How do you get the temperature in room then to fill the variables ?

You are keeing those rooms fairly cold unless I am misunderstanding the purpose of the programs. 

Posted
Just now, brians said:

How do you get the temperature in room then to fill the variables ?

You are keeing those rooms fairly cold unless I am misunderstanding the purpose of the programs. 

The 0's and 1's are just to trigger On or Off.  I don't have the house temp at 0 - 🤣

Here's an example of how I'm changing a 'State Variable' (instead of an Integer Variable thanks to @larryllix):

Temperature - Outside Greater than 20 - [ID 000F][Parent 0001]

If
        'WeatherBit Weather' Temperature >= 20.0°F
 
Then
        $Outside_Temp  = 1
 
Else
   - No Actions - (To add one, press 'Action')

I have six of these, two for upstairs using a sensor in the master bedroom, two for outside using Weatherbit and two for the family room downstairs.

The inside sensors are Ecobees.

Posted

The other one for Outside:

Temperature - Outside Less than 20 - [ID 001A][Parent 0001]

If
        'WeatherBit Weather' Temperature < 20.0°F
 
Then
        $Outside_Temp  = 0
 
Else
   - No Actions - (To add one, press 'Action')
 

 

Posted (edited)

The Sensibos control my Mitsubishi Mini Splits. They are heat pumps, so I have the programs set to turn them off if the outside temp falls below 20F.

I have 4 indoor units coupled to 2 outdoor compressors. They are reducing my oil consumption considerably.

 

Edited by Athlon
Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.4k
×
×
  • Create New...