From e6245b17aa5e89821022b5f4a1b0f92a295bfb78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20H=C3=BClsmann?= Date: Sat, 2 May 2026 09:27:47 +0200 Subject: [PATCH] fix: Timeout als Sekunden-Template, robusteres forecast-Template --- packages/bewaesserung/automations.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/bewaesserung/automations.yaml b/packages/bewaesserung/automations.yaml index e0ad96d..6e8e60b 100644 --- a/packages/bewaesserung/automations.yaml +++ b/packages/bewaesserung/automations.yaml @@ -34,7 +34,7 @@ automation: - if: - condition: 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: - stop: "Regen vorhergesagt – Bewässerung übersprungen" @@ -55,8 +55,7 @@ automation: value_template: > {{ states('sensor.bewaesserung_min_feuchte') | float(0) >= states('input_number.bewaesserung_ziel_feuchte') | float(70) }} - timeout: - minutes: "{{ states('input_number.bewaesserung_dauer') | int }}" + timeout: "{{ (states('input_number.bewaesserung_dauer') | int) * 60 }}" continue_on_timeout: true # Pumpe ausschalten