From e54870039df382479dd956ada7ca74cb44e1dd85 Mon Sep 17 00:00:00 2001 From: thomas Date: Sat, 30 Aug 2025 09:35:50 +0000 Subject: [PATCH] blueprints/automation/wd-close-weather-notification.yaml aktualisiert --- .../automation/wd-close-weather-notification.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/blueprints/automation/wd-close-weather-notification.yaml b/blueprints/automation/wd-close-weather-notification.yaml index 640aadc..14cd1fc 100644 --- a/blueprints/automation/wd-close-weather-notification.yaml +++ b/blueprints/automation/wd-close-weather-notification.yaml @@ -1,6 +1,6 @@ blueprint: - name: Open Windows/Doors Notification (Clean Final) - description: Notify when windows or doors are open. Triggers on weather, temperature, or manual execution. Only sends notifications if windows/doors are open. + name: Open Windows/Doors Notification + description: Notify when windows or doors are open. Triggers on weather or temperature thresholds or manual execution. domain: automation input: openings: @@ -67,7 +67,6 @@ trigger: action: - variables: - # Inputs openings_list: !input openings weather_sensor_id: !input weather_sensor temperature_sensor_id: !input temperature_sensor @@ -94,7 +93,7 @@ action: unknown {% endif %} - # Detect open windows/doors + # Open windows/doors open_entities: > {% set list = [] %} {% for ent_id in openings_list %} @@ -105,7 +104,7 @@ action: {% endfor %} {{ list }} - # Determine trigger info for message + # Determine trigger info trigger_info: > {% if trigger.platform == 'state' and trigger.entity_id == weather_sensor_id %} Weather: {{ current_weather }} @@ -115,7 +114,7 @@ action: Manual trigger {% endif %} - # Filter conditions + # Conditions for sending notification weather_match: > {% if trigger.platform == 'state' and trigger.entity_id == weather_sensor_id %} {{ current_weather in weather_states }}