Cheap, Simple web-enabled pool automation with Google Assistant Integration

skolar28,
I setup schedules on Google Home instead of eWelink on my mobile phone.
Everything is OK if I'm @Home, but if I'm far away from home all schedules turned on but could not turn off ? weird. The problem is the same with setup schedules on eWelink.
 
Update 2022! I purchased a SONOFF NSPanel. Seems like it could be the PERFECT indoor interface panel for this project. So far, its .... less than perfect. They still seem to be doing a lot of updating on the SW, so I still have hopes that it will be able to be used for this Pool Automation.

I may redesign a separate system that only uses this NSPanel. As it has two built in relays, one could hook the pool filter to one relay, and pool/spa mode to the other? To some extent may be dependant on how far you are from your pool equipment. Will report back :)
 
Have you flashed the Sonoff devices with Tasmota, or do you use the stock firmware? Do you have this integrated into a Home Automation system like Home Assistant? Have you written your own code to control the logic in all of this? Like for timer, controlling pool temperature, etc.

What switch are you operating on your pool heater? Toggling the fireman's switch?
 
Base Sonoff Firmware. No Tasmota
It is integrated directly with Google Home for automation.
Pool/spa temp is controlled by the TH Elite directly (it turns on and off the relay by temperature).
I have no personal code running.
Like you guessed, I'm just toggling the fireman switch.
 
With the TH Elite can you do scheduling? I normally only swim on the weekends, but I don't want the pool to cool off too much during the week. So I might want to keep the heater at 80 during the week, but go up to 84 on Saturday morning.

(Those temps must seem weird to someone in Dallas where it is 100 degrees for months on end)
 
With the TH Elite can you do scheduling? I normally only swim on the weekends, but I don't want the pool to cool off too much during the week. So I might want to keep the heater at 80 during the week, but go up to 84 on Saturday morning.

(Those temps must seem weird to someone in Dallas where it is 100 degrees for months on end)
For that type of scheduling, I use Google Automations (part of Google Home/Assistant). For instance, at the moment I have my pool filter, pool robot and 'pool mode' turn on every day at 9AM, and then turn off at 5PM within Google Home.
The TH Elite by itself may not have the functionality you're looking for, since it is only a single relay. I suppose you may be able to have the ON output of the TH16 relay turn on both your heater AND the pumps.

The Ewelink App (from Sonoff) has a very similar functionality called "Auto Scene" where you can set certain things to happen based on trigger conditions such as time/temperatures/etc.
As for temps in Dallas, in the summer I wish I had a way to cool the pool down cheaply. I've been contemplating putting in a geothermal loop in the yard an pumping pool water through it to cool it off!
 
My scheduling is kind of the opposite as my electricity is WAY cheaper at night so I want to run stuff like my pool pump and Spa heater during the overnight period. My electrical utility just introduced a new (optional) service with very low overnight rates that is attractive to EV owners, like me. But power is more expensive during the day, especially from 4-9 so I try to minimize usage at those times.

I just put in a Sonoff high power switch that controls my Spa heater so that it is scheduled to be on from 11pm-7am each day.

Eventually I hope to integrate all of this into my Control4 system, but it is kind of a closed system so you can't always do that without a lot of hassles. So I might use a Pi to do some stuff.
 
  • Like
Reactions: skola28
The TH Elite by itself may not have the functionality you're looking for, since it is only a single relay. I suppose you may be able to have the ON output of the TH16 relay turn on both your heater AND the pumps.

The Ewelink App (from Sonoff) has a very similar functionality called "Auto Scene" where you can set certain things to happen based on trigger conditions such as time/temperatures/etc.
As for temps in Dallas, in the summer I wish I had a way to cool the pool down cheaply. I've been contemplating putting in a geothermal loop in the yard an pumping pool water through it to cool it off!
I ended up getting the THR320D. It has a power switch and a relay. But it appears that with the stock firmware that these are tied together. I flashed it with Tasmota and I can now control the dry contact relay and the power switch independently. I plan to use these for my pump and heater's fireman's switch when pool season comes next year. This device also accepts as DS18B20 temperature probe, so I am going to attach some probes to monitor the temperature water and I may eventually use that as my "thermostat" rather than the one built into the pool heater.
 
I ended up getting the THR320D. It has a power switch and a relay. But it appears that with the stock firmware that these are tied together. I flashed it with Tasmota and I can now control the dry contact relay and the power switch independently. I plan to use these for my pump and heater's fireman's switch when pool season comes next year. This device also accepts as DS18B20 temperature probe, so I am going to attach some probes to monitor the temperature water and I may eventually use that as my "thermostat" rather than the one built into the pool heater.
THR320D is the same as the TH Elite, and it's the very same unit I am currently using to control my pool heater. It works well as a thermostat with the stock firmware.

Sounds like you're able to eek out a bit more functionality with Tasmota, cool!
 

Enjoying this content?

Support TFP with a donation.

Give Support
Album Link with Diagram and short demo video:

Using a SONOFF 4CHPROR3, I have integrated the control of my Filter Pump, Booster Pump, and two Jandy JVA Actuators.
I have a Jandy Aqualink RS (older) which the pool guy wanted $$$$$$ to change out to a simple web interface with very few relays expandability.

Reusing the DPST relays, 24VAC Transformer, and Jandy JVAs. Most of the wiring is already complete -- just have to remove the Jandy Control Board and strip the leads. Too bad the relays aren't 24VAC or it would be even easier!

$28 SONOFF 4CHPROR3
$18 24VDC Power Supply
$9 SONOFF TH16
$3.50 SONOFF Temp Sensor-DS18B20

About an hour and a half to setup HW and another hour to setup the SW.

The 4th channel is for lights. I also added a SONOFF TH16 to automate the heater temperature and use the built in Google Assistant routines to 'Turn on the Hot Tub'.

Left side of the channel 'triangles' is the Normally Open (NO). Right side is Normally Closed (NC) while the center is common.
View attachment 169211
View attachment 155164
(Note, this image is out of date as it doesn't show the lighting circuit and the TH16 heater controller)

EDIT: Updated wiring diagram and description to include lighting and heater circuits.
Hey thanks for posting this. I have ordered all the parts and about to start the build. My old Intermatic zwave Multiwave died.... I use HA for the automation side... Quick question... Why do you use 2 of the outputs from the Sonoff to drive your 24v relay?
 
Hey thanks for posting this. I have ordered all the parts and about to start the build. My old Intermatic zwave Multiwave died.... I use HA for the automation side... Quick question... Why do you use 2 of the outputs from the Sonoff to drive your 24v relay?
Nevermind. I see now that is your failsafe to ensure the pump is running so it doesnt turn on the vacuum pump...
 
  • Like
Reactions: skola28