Jump to content

'If' and Variables


Athlon
Go to solution Solved by larryllix,

Recommended Posts

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?

Link to comment

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
Link to comment
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.

Link to comment

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
Link to comment
Guest
This topic is now closed to further replies.

×
×
  • Create New...