Irrigation logic with ESP32 and relays

There are some custom integrations on HACS that you might take a look at.
I’m using one for my irrigation solution also with a similar setup with esp32, esphome and a six channel relay board to program the irrigation cycles.

Irrigation custom integration