Jump to content

Controlling Pool Temperature program


pyrorobert

Recommended Posts

Posted

So I have a Wireless thermostat monitoring the pool temperature and I wrote a few programs to control 2 different temperatures for the pool or the spa. The first one seems to work to turn on, but it didn't turn off when I released the button on the keypad. Also if I turn on the spa pump after the heater is on, it shuts off the pool heater. Any assistance is greatly appreciated.

 

I have two buttons at a 8 button keypad, one is for the heater and the other is for the spa pump. These are the programs that were added.

 

 
Pool Heater 
 
If
        Control 'Backyard Light / Pool Heater- H' is switched On
    And Control 'Backyard Light / Spa Pump - G' is not switched On
 
Then
   - No Actions - (To add one, press 'Action')
 
Else
   - No Actions - (To add one, press 'Action')
 
 
 
Pool Temperature 
 
If
        Program 'Pool Heater' is True
    And Status  'Pool Temperature - Main' < 87° (Temperature)
 
Then
        Set 'Pool Heater' On
 
Else
        Set 'Pool Heater' Off
 
 
 
Pool N Spa Heater 
 
If
        Control 'Backyard Light / Pool Heater- H' is switched On
    And Control 'Backyard Light / Spa Pump - G' is switched On
 
Then
        Set 'Pool Spa Pump' On
 
Else
   - No Actions - (To add one, press 'Action')
 
 
Spa Temperature 
 
If
        Program 'Pool N Spa Heater' is True
    And Status  'Pool Temperature - Main' < 95° (Temperature)
 
Then
        Set 'Pool Heater' On
 
Else
        Set 'Pool Heater' Off
 
 
 
Regards,
 
Robert
 
Posted

You have two programs that require the two buttons send a signal simultaneously (Pool Heater and Pool N Spa Heater). Try using 'status' for the button that's not pushed.

Posted

There is nothing in the Pool Heater program that causes it to evaluate as false. Pressing the H button sends an On. Releasing the button sends nothing. Also, I don't see a need for two programs.

 
Pool Heater 
If
        Control 'Backyard Light / Pool Heater- H' is switched On
    And Status 'Backyard Light / Spa Pump - G' is Off
    And Status  'Pool Temperature - Main' < 87° (Temperature)
 
Then
        Set 'Pool Heater' On
 
Else
        Set 'Pool Heater' Off
Posted

I can consolidate the two programs, but I was assuming that if one of the IF statements was not true, then it would shut off the heater. I would like it to constantly change status so if the pool temperature reaches its peak, it would shut off the heater, but if it drops, to turn the heater back on. Should I redo the programs a different way to be able to accomplish this?

Posted (edited)

The program I rewrote will turn the heater on if the temperature is below 87º and turn it off when the temperature reaches 87º (depending on the thermometer), but only if you manually turn on button H and button G is off.

 

The heater should turn off if the temperature reaches 87º or button G changes state from off to on or button H is turned off.

Edited by stusviews
Posted

Alright, I will give that a try.  Doing the similar program for the Spa should work the same, correct? 

 

Thank you and I appreciate your help.

 

 

Robert

Posted

Yes, use the same logic for the Spa.

Posted

Ok, so this is the program I have now, but when i switched off the keypad button it did not shut off the heater. 

 

 

Pool Heater 
 
If
        Control 'Backyard Light / Pool Heater- H' is switched On
    And Status  'Backyard Light / Spa Pump - G' is Off
    And Status  'Pool Temperature - Main' < 87° (Temperature)
 
Then
        Set 'Pool Heater' On
 
Else
        Set 'Pool Heater' Off
Posted
The Else statements will be executed if G is switched on or if the temperature reaches the stated level. To execute the Else statements when H is switched off, add the statement in blue.

 

If

        Control 'Backyard Light / Pool Heater- H' is switched On

    And Control 'Backyard Light / Pool Heater- H' is not switched Off

    And Status  'Backyard Light / Spa Pump - G' is Off

    And Status  'Pool Temperature - Main' < 87° (Temperature)

 

Then

        Set 'Pool Heater' On

 

Else

        Set 'Pool Heater' Off

Posted (edited)

Ok, great! That actually worked. But now it somehow doesn't allow my spa setting to work. 

 

This is the program to the spa as I modified it to match the pool settings.

 

 

 

Pool N Spa Heater 
 
If
        Control 'Backyard Light / Pool Heater- H' is switched On
    And Control 'Backyard Light / Pool Heater- H' is not switched Off
    And Control 'Backyard Light / Spa Pump - G' is switched On
    And Status  'Pool Temperature - Main' < 95° (Temperature)
 
Then
        Set 'Pool Spa Pump' On
        Set 'Pool Heater' On
 
Else
        Set 'Pool Heater' Off
Edited by pyrorobert
Posted

Right click on My Programs, select Status Icons, Detailed.

 

Right click on the program, Pool N Spa Heater, Run Then. Did both the heater and pump turn on? Did the program icon turn green?

 

If yes to both, then turn the heater and pump off, delete the statement, Control 'Backyard Light / Pool Heater- H' is switched On and Run If. What's the result?

Posted

When I ran the Run Then, it worked fine and the program greened up as it should. So I then removed the statement you mentioned. I pressed the Heater button and the heater turned on, but when I pressed the Spa button the spa pump turns on and it shut off the heater.

Posted

Using Control for two devices will be true only if both devices are manually turned on at the same instant which is virtually impossible. Reverse the roles of the buttons for the Spa program.

Guest
This topic is now closed to further replies.

×
×
  • Create New...