Personally, the more I think about it, I’d use 4 automations:
Pump #1 - ON
Trigger #1 - Time - 6am
Trigger #2 - Time - 11am
Trigger #3 - Time 6pm
Action - Turn Pump #1 On
Pump #2 - ON
Trigger #1 - Time - 6am
Trigger #2 - Time - 11am
Trigger #3 - Time 6pm
Action - Turn Pump #2 On
Pump #1 - OFF
Trigger #1 - Time - 8am
Trigger #2 - Time - 1pm
Trigger #3 - Time 8pm
Action - Turn Pump #1 Off
Pump #2 - OFF
Trigger #1 - Time - 8am
Trigger #2 - Time - 1pm
Trigger #3 - Time 8pm
Action - Turn Pump #2 Off
I realize it’s more than you ‘want’, but it gives granularity to easily change / update on / off / run times for each pump - it also avoids long DELAYs which won’t survive a restart.
Again, HA is a platform that gives you TONS of flexibility and LEGO PIECES to allow you to build what you want - most of the time the same results can be accomplished in dozens of a ways - really a lot of personal preference - and I’ve definitely found that often the way w/ the least automations/scripts/pieces isn’t the easiest to update / maintain. Anyhow, just my $.02
Mark, I agree and argued this myself.
Ultimately, the OP doesn’t see it that way.
He needs time to consider and the experience of maintaining before he’ll come round.
Let’s give him exactly what he’s asked for and let him draw his own conclusions
I reckon, about 6 months as he’s pretty much there and asking the right questions
Thanks, that’s also what I came up with in the meantime but I still try to bring it down to just one automation per pump. I was thinking about probably writing a custom component for a time schedule and then use a state trigger using this schedule along with a service_template as action for on/off. Or I end up using AppDaemon since I can just write one logic there and pass some variables for entities and time spans which makes it pretty reusable without having to duplicate the logic like with a package approach.
Thanks for your help and all the suggestions guys - I might go with the 4 automations for now and try to improve those on the long run.
It works, do you know how can I make time as a dropdown choice in my card ?
And after, I want to create an actonable action on ios in order ask me each day at 8:00pm to modify this time ? The goal is to switch on my heater 20 minutes before awaking. Do you know how to do that ?