blueprints/automation/wd-close-weather-notification.yaml aktualisiert

This commit is contained in:
2025-08-30 09:35:50 +00:00
parent 74afedd45d
commit e54870039d

View File

@@ -1,6 +1,6 @@
blueprint: blueprint:
name: Open Windows/Doors Notification (Clean Final) name: Open Windows/Doors Notification
description: Notify when windows or doors are open. Triggers on weather, temperature, or manual execution. Only sends notifications if windows/doors are open. description: Notify when windows or doors are open. Triggers on weather or temperature thresholds or manual execution.
domain: automation domain: automation
input: input:
openings: openings:
@@ -67,7 +67,6 @@ trigger:
action: action:
- variables: - variables:
# Inputs
openings_list: !input openings openings_list: !input openings
weather_sensor_id: !input weather_sensor weather_sensor_id: !input weather_sensor
temperature_sensor_id: !input temperature_sensor temperature_sensor_id: !input temperature_sensor
@@ -94,7 +93,7 @@ action:
unknown unknown
{% endif %} {% endif %}
# Detect open windows/doors # Open windows/doors
open_entities: > open_entities: >
{% set list = [] %} {% set list = [] %}
{% for ent_id in openings_list %} {% for ent_id in openings_list %}
@@ -105,7 +104,7 @@ action:
{% endfor %} {% endfor %}
{{ list }} {{ list }}
# Determine trigger info for message # Determine trigger info
trigger_info: > trigger_info: >
{% if trigger.platform == 'state' and trigger.entity_id == weather_sensor_id %} {% if trigger.platform == 'state' and trigger.entity_id == weather_sensor_id %}
Weather: {{ current_weather }} Weather: {{ current_weather }}
@@ -115,7 +114,7 @@ action:
Manual trigger Manual trigger
{% endif %} {% endif %}
# Filter conditions # Conditions for sending notification
weather_match: > weather_match: >
{% if trigger.platform == 'state' and trigger.entity_id == weather_sensor_id %} {% if trigger.platform == 'state' and trigger.entity_id == weather_sensor_id %}
{{ current_weather in weather_states }} {{ current_weather in weather_states }}