Hi,
I’m trying to create an automation for a smart irrigation and i’m struggling with the possible delayed start (time offseting) an need some tips/hints of what a possible solution might look like. The automation starts on demand (depending on the soil moisture) and mainly every day in the summer.
However I have provided a way through an ‘input.select’ so that the start of irrigation could be delayed by 24/48 or 72 etc. hours. But it delays the action and not the restarting of the automation.
For example, the irrigation is scheduled to be delayed by 72 hours, but the automation restarts 24 hours later because the according sensor says that watering should take place.
My question is there a way to delay the automation restarting?
alias: Smart Irrigation (new)
description: ""
trigger:
- platform: time
at: input_datetime.startzeitpunkt
condition:
- condition: state
entity_id: input_boolean.automatische_rasenbewasserung
state: "on"
action:
- choose:
- conditions:
- condition: state
entity_id: input_select.verzogerter_start
state: 24 Stunden
sequence:
- delay:
hours: 24
minutes: 0
seconds: 0
milliseconds: 0
- service: input_select.select_option
data:
option: "0"
target:
entity_id: input_select.verzogerter_start
- conditions:
- condition: state
entity_id: input_select.verzogerter_start
state: 48 Stunden
sequence:
- delay:
hours: 48
minutes: 0
seconds: 0
milliseconds: 0
- service: input_select.select_option
data:
option: "0"
target:
entity_id: input_select.verzogerter_start
- conditions:
- condition: state
entity_id: input_select.verzogerter_start
state: 72 Stunden
sequence:
- delay:
hours: 72
minutes: 0
seconds: 0
milliseconds: 0
- service: input_select.select_option
data:
option: "0"
target:
entity_id: input_select.verzogerter_start
- condition: state
entity_id: input_boolean.automatische_rasenbewasserung
state: "on"
- condition: numeric_state
entity_id: sensor.smart_irrigation_daily_adjusted_run_time
above: 0
enabled: true
- condition: state
entity_id: binary_sensor.hmip_swo_wetterstation_regen
state: "off"
- service: number.set_value
data:
value: >-
{{ (states('sensor.smart_irrigation_daily_adjusted_run_time') | int/60)
| round (0) }}
target:
entity_id: number.bewasserungscomputer_timer
enabled: true
- service: switch.turn_on
data: {}
target:
entity_id: switch.bewasserungscomputer
enabled: true
- data: {}
service: smart_irrigation.smart_irrigation_reset_bucket
enabled: true
- service: notify.notify
data:
message: Die automatische Rasenbewässerung wurde gestartet.
title: Wassermarsch!
mode: single
Thanks in advance for any hints!