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 }}