Hi,
I try to configure the follwing watering automation.
Start to run the watering after rain starts for 3 mins and the water level is high enough. (This is easy and I made it already) Now the automation should repeat if it’s still raining and water level is above a certain level. If it’s not raining or the water level is too low, the automation should stop running again.
The switch I use turning automatically off after 15 min. (Shelly)
Hope explained good enough.
Maybe I’m completely wrong. And I have to use 2 automations? IDK.
This is my code so fare:
alias: Gewächshaus Bewässerung bei Regen
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.regensensor
from: "off"
to: "on"
for:
hours: 0
minutes: 3
seconds: 0
condition:
- condition: state
entity_id: switch.steckdose_gewachshaus
state: "off"
enabled: true
- condition: state
entity_id: binary_sensor.schwellwert_zisterne
state: "on"
action:
- repeat:
sequence:
- service: switch.turn_on
metadata: {}
data: {}
target:
entity_id: switch.steckdose_gewachshaus
- delay:
hours: 0
minutes: 17
seconds: 0
milliseconds: 0
until:
- condition: state
entity_id: binary_sensor.schwellwert_zisterne
state: "off"
- condition: state
entity_id: binary_sensor.regensensor
state: "off"
enabled: true
mode: single