fix: Timeout als Sekunden-Template, robusteres forecast-Template
This commit is contained in:
@@ -34,7 +34,7 @@ automation:
|
|||||||
- if:
|
- if:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: >
|
value_template: >
|
||||||
{{ (wetter['weather.home'].forecast[0].precipitation | float(0)) > 0 }}
|
{{ (wetter['weather.home'].forecast | default([{}]) | first).precipitation | default(0) | float(0) > 0 }}
|
||||||
then:
|
then:
|
||||||
- stop: "Regen vorhergesagt – Bewässerung übersprungen"
|
- stop: "Regen vorhergesagt – Bewässerung übersprungen"
|
||||||
|
|
||||||
@@ -55,8 +55,7 @@ automation:
|
|||||||
value_template: >
|
value_template: >
|
||||||
{{ states('sensor.bewaesserung_min_feuchte') | float(0) >=
|
{{ states('sensor.bewaesserung_min_feuchte') | float(0) >=
|
||||||
states('input_number.bewaesserung_ziel_feuchte') | float(70) }}
|
states('input_number.bewaesserung_ziel_feuchte') | float(70) }}
|
||||||
timeout:
|
timeout: "{{ (states('input_number.bewaesserung_dauer') | int) * 60 }}"
|
||||||
minutes: "{{ states('input_number.bewaesserung_dauer') | int }}"
|
|
||||||
continue_on_timeout: true
|
continue_on_timeout: true
|
||||||
|
|
||||||
# Pumpe ausschalten
|
# Pumpe ausschalten
|
||||||
|
|||||||
Reference in New Issue
Block a user