Multiple on / off automation for 2 devices

Hi Guys

I have put my 2 geysers on a Sonoff with Tasmota and an external relay so that I can control what time they come on, I have an inverter with solar panels so wanted to shift the time they come on to when there is sunshine so that the majority of the power comes from solar and not council power.

I have setup an automation using delays i.e. at 05:40am turn geyser1 on, delay 20m, turn geyser1 off, turn geyser2 on, delay 20m turn geyser2 off, delay 3h, turn geyser1 on, delay 20m, turn geyser1 off, turn geyser2 on, delay 20m, turn geyser2 off and so on but it’s a laborious and cumbersome way of doing it, apart from running individual time based automations per time slot (which I want to avoid as I want 1 automation for both geysers so I can disable it if we are away on vacation) is there a better / easier way of achieving this?

The requirement is something like this

Geyser1 Geyser2
On Off On Off
05:40 06:00 06:00 06:20
09:15 09:35 09:35 09:55
14:05 14:25 15:45 16:10

I have other automations that run after say 3pm if the battery level is over 95% to top up the geysers, I’m happy to keep this automation on permanently as the power is going to waste anyways so don’t need to toggle this automation.

thanks.