Very new to HA, and I’m looking for some pointers as to where to start with automating my swimming pool operation. Here’s an overview of the equipment:
1 filter pump on a Tp-link smart switch
1 chlorinator on a Tp-link smart switch
1 sweep on a Tp-link smart switch
Valve actuators that are controlled from a Sonoff wifi relay card.
A spill-over spa. In normal operation, the filter returns to pool and spa. When you want to heat and use the spa, the actuators change the flow so the pump returns only to the spa and “sucks” only from the spa.
A heat pump heater.
Starting Point
I need to have 4 different schedules for equipment operation - summer day, summer night, winter day and winter night. Each of these schedules should run the filter, chlorinator and sweep at appropriate times, but only if the spa hasn’t been called for. I’m thinking I could have normal HA automations for each of these, which would result in 12 automations (one for each piece of equipment in each of the schedules). The automations could check whether they should be running at all via a “switch” condition that governs day or night, and could also check whether the spa has been called for, in which case it shouldn’t run either - turning the spa on will itself run the filter and set the actuators.
The reason for day or night runs is because I want to run during the day when my solar should be covering the electricity consumption, and at night otherwise. So I could set the switch manually every night based on the weather forecast for the next day. Of course, I’d ultimately want to automate this, but first things first…
It strikes me that this is all a bit cumbersome, so I’d love to hear suggestions for improving it. Is there anything that would make setting up the schedules easier than creating 12 individual automations?
Down The Line
When the spa is called for, the actuators move the valves accordingly. When the spa is turned off, it would be nice to go back to any schedule that would normally be running at that time, turning on the equipment that would normally be on at that instant. Not at all sure how to do this.
I also have another Sonoff relay that turns the heater on and off, and a Blueriiot Blue Connect temperature and water analyser. I’d like to use the temperature reading to automatically turn off the heater when the pool reaches a certain temperature, and that temperature will be different depending on whether the spa is running. I think this should be possible with normal automations, but I’d probably like to have nice temperature sliders in the UI somewhere so people can set their desired temperature.
As I said, new to all this, so I’d be eternally grateful if I could get some general ideas on where to start, and any components that could help me.