Hello,
I have the Smart Irrigation integration from HACS and I’m trying to stop the irrigation if more than 5mm of rain is expected in the next 24 hours. My problem is that the automation skips the “choose” option. Here is my code:
alias: Gartenbewässerung und Sensor-Reset steuern Hinten
trigger:
- platform: sun
event: sunrise
offset: "-01:00:00"
enabled: true
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
action:
- choose:
- conditions:
- condition: template
value_template: "{{ state_attr('weather.home', 'forecast')[0].precipitation <= 5 }}"
- condition: numeric_state
entity_id: sensor.smart_irrigation_garten_hinten
above: 0
sequence:
- service: switch.turn_on
entity_id: switch.garten_pumpe
- delay:
seconds: 10
- service: switch.turn_on
entity_id: switch.garten_bewesserung_hinten
- delay:
seconds: "{{ states('sensor.smart_irrigation_garten_hinten') | int }}"
- service: switch.turn_off
entity_id: switch.garten_pumpe
- service: switch.turn_off
entity_id: switch.garten_bewesserung_hinten
- service: smart_irrigation.reset_bucket
target:
entity_id: sensor.smart_irrigation_garten_hinten
data: {}
- conditions:
- condition: template
value_template: "{{ state_attr('weather.home', 'forecast')[0].precipitation > 5 }}"
sequence:
- service: smart_irrigation.reset_bucket
target:
entity_id: sensor.smart_irrigation_garten_hinten
data: {}
And sorry, I’m new to Home Assistant.