Irrigation System with deep sleep

Hey,

i just discovered ESPHome and it’s awesome!
I built a simple battery powered irrigation controller with a solar charger. The manual control through the home assistant UI is working so far.

What would be the easiest way to turn on the pump 2x day with the deep sleep enabled?

I think that a variable must be set somewhere (internal or home assistant), otherwise every time the ESP8266 wakes up, the automation is triggered again.