Hello,
I really love HA project but I faced a problem because I am underskilled in programming and now I am asking for help.
In this season of the year my well does not give enough water it causes my sprinklers not to come out from the ground because of the lack of water yield. In this case if I switch off manually the active magnetic valve (controlled by a switch in HA) and restart the water pump (controlled by another switch in HA) until it reaches at least 1 bar pressure (montitored in HA) then activate the magnetic valve again sprinklers comes out from the ground. I have several circles of sprinklers in my garden what means saveral valves.
I would like to write an automation (and scripts if necessary) what does this:
- triggers when any of irrigation switches are active and water pressure is under 1 bar
- switches off the currently active valve
- restarts the water pump some times until it reaches pressure ( I magaged to write a script for it)
- switches on again the previously offed valve
Irrigation duration is controlled by an automations depends on the maximum temperature of the day.
Now how should I start Guys? Any particular coding is greatly welcomed.
Thank you.