Hi, i have scheduled all my 6 irrigation zones to start and stop irrigation. that works fine.
i build in a check that a boolean regen(rain) must be off otherwise the irrigations dont start.
The boolean regen(rain) activates to on on certain moisty conditions and i want to activate it to off when some dry conditions are there for 24 hours, so i added a timer before firing to off…
Question/situation
When set the boolean to off after a day, in the meantime (within the 24 hours) it could be raining again.
The script will put the boolean to ON but there is still a pending action to put it off!
How do i solve this, can i delete pending operations when setting the regen(rain) boolean to on ?
Current automation
alias: auto_regen
description: ""
trigger:
- platform: state
entity_id:
- weather.forecast_pvk
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: weather.forecast_pvk
state:
- hail
- lightning
- lightning-rainy
- pouring
- rainy
- snowy
- snowy-rainy
- ‘exceptional’
sequence:
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.regen
- choose:
- conditions:
- condition: state
entity_id: weather.forecast_pvk
state:
- ‘clear-night’
- ‘cloudy’
- ‘fog’
- ‘partlycloudy’
- ‘sunny’
- ‘windy’
- ‘windy-variant’
sequence:
- delay:
hours: 24
minutes: 0
seconds: 0
milliseconds: 0
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.regen