Jump to content

How to control pool heater with Wireless Thermostat


barkster

Recommended Posts

I have a thermocouple that I soldered to back of wireless thermostat and it works great but how can I turn on the pool heater when the temperature is below set point?  I thought it was the Heat CTL node but mine shows nothing for status

post-2674-0-10700800-1490803647_thumb.jpg

Edited by barkster
Link to comment

Can someone check my programming, when pool heating variable is set to 1 I want to set thermostat to 89 degrees and turn on pump.  If set temp below temperature then turns on heater.  Every 45 mins I was to run the pump to cycle pool water and get good temperature reading.  The circulation program doesn't seem to be working for me, the pump has been running the whole time.

HeatPool - [ID 0034][Parent 003E]

If
   - No Conditions - (To add one, press 'Schedule' or 'Condition')
 
Then
        $PoolHeating  = 1
        $PoolHeating Init To 1
        $SpaHeating  = 0
        $SpaHeating Init To 0
        Set 'PoolTemp' Mode Heat
        Set 'PoolTemp' 89° (Heat Setpoint)
 
Else
        Set 'PoolTemp' Mode Off
        $PoolHeating  = 0
        $PoolHeating Init To 0

HeatSpa - [ID 0036][Parent 003E]

If
   - No Conditions - (To add one, press 'Schedule' or 'Condition')
 
Then
        $SpaHeating  = 1
        $SpaHeating Init To 1
        $PoolHeating Init To 0
        $PoolHeating  = 0
        Set 'PoolTemp' Mode Heat
        Set 'PoolTemp' 98° (Heat Setpoint)
 
Else
        Set 'PoolTemp' Mode Off
        $SpaHeating  = 0
        $SpaHeating Init To 0
 


HeatCirculation - [ID 0033][Parent 003E]

If
        $PoolHeating is 1
    And Control '1F.11.34 - Heat Ctl' is not switched On
 
Then
        Set 'Pool Equipment / FilterPump' On
        Wait  15 minutes 
        Set 'Pool Equipment / FilterPump' Off
        Repeat Every  45 minutes 
 
Else
   - No Actions - (To add one, press 'Action')



HeatPoolChk - [ID 005A][Parent 003E]

If
        $PoolHeating is 1
    And Control '1F.11.34 - Heat Ctl' is switched On
 
Then
        Set 'Pool Equipment / SpaValve' Off
        Set 'Pool Equipment / Polaris' Off
        Wait  1 minute 
        Set 'Pool Equipment / FilterPump' On
        Set 'Pool Equipment / PoolHeater' On
 
Else
        Set 'Pool Equipment / FilterPump' Off
        Set 'Pool Equipment / PoolHeater' Off
        Set 'Pool Equipment / Polaris' Off
 

HeatSpaChk - [ID 005B][Parent 003E]

If
        $SpaHeating is 1
    And Control '1F.11.34 - Heat Ctl' is switched On
 
Then
        Set 'Pool Equipment / SpaValve' On
        Set 'Pool Equipment / Polaris' Off
        Wait  1 minute 
        Set 'Pool Equipment / FilterPump' On
        Set 'Pool Equipment / PoolHeater' On
        Wait  30 minutes 
        Set 'Pool Equipment / Blower' On
 
Else
        Set 'Pool Equipment / PoolHeater' Off
 


Link to comment

I'm finding when the thermostat turns heat off it is not turning off the heater, how reliable is "Heat Ctl" and am I using it correctly.  Its like when that changes its not kicking anything off because when it should have been off I right click and chose "run if" and it turned off as it should

 

If
$PoolHeating is 1
And Control '1F.11.34 - Heat Ctl' is switched On

Then
Set 'Pool Equipment / SpaValve' Off
Set 'Pool Equipment / Polaris' Off
Wait 1 minute
Set 'Pool Equipment / FilterPump' On
Set 'Pool Equipment / PoolHeater' On

Else
Set 'Pool Equipment / FilterPump' Off
Set 'Pool Equipment / PoolHeater' Off
Set 'Pool Equipment / Polaris' Off

 

Reading the log it says it turned the thermostat "off" but it is not off when I look at it

post-2674-0-27878000-1490920510_thumb.png

Edited by barkster
Link to comment

There is nothing in the condition statement that indicates what to do when Heat Ctl is turned off. Else will never run.

 

Add

 

And Control '1F.11.34 - Heat Ctl' is not switched Off

 

to enable Else

Link to comment

yeah that's what I don't get, if Heat Ctl' is switched On and Heating  = 1 are both true then it turn on else it turn off.  I thought that if the if statement wasn't true else always fired.  I mean when I write in c# that's how it works.  Please explain, does it have to do with it being control?

Link to comment

You have a repeat statement line with no code to repeat underneath it.

 

You've been out to C too long :)

 

The construct works like this.

 

 

Repeat every 45 minutes

...do this

...do that

Repeat 1 time

....do something

....do something else

Edited by larryllix
Link to comment

yeah that's what I don't get, if Heat Ctl' is switched On and Heating  = 1 are both true then it turn on else it turn off.  I thought that if the if statement wasn't true else always fired.  I mean when I write in c# that's how it works.  Please explain, does it have to do with it being control?

 

What you expect is an extremely common logic misconception. For example, suppose I say that if the sun shines, I'll go the to beach. The sun shines and I do go to the beach, then my statement is obviously true. Now consider that the sun doesn't shine and I do go to the beach. Is my statement true or false?

 

My statement is still true. Why? Because I only indicated what I'll do if the sun shines. I did not say anything about what I'd do if the sun does not shine. It doesn't matter in that case if I go to the beach or not. My original statement is false only if the sun shines and I don't go to the beach. What I do if the sun doesn't shine does not affect the truth of the original statement.

 

Your statement, And Control '1F.11.34 - Heat Ctl' is switched On, only instructs what to do when the device is switched On. There is no mention of what to do if the device is not switched on. That's why you need to include a statement about the device not being switched on.

Link to comment
Guest
This topic is now closed to further replies.

×
×
  • Create New...