diff --git a/blueprints/automation/wd-close-weather-notification.yaml b/blueprints/automation/wd-close-weather-notification.yaml index 57ff5ac..7cac076 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 Monitor - description: Shows all selected windows/doors that are currently open. + description: Monitors selected windows/doors and lists the ones that are open. domain: automation input: opening_sensors: @@ -10,8 +10,16 @@ blueprint: entity: domain: binary_sensor multiple: true + notify_service: + name: Notification Service + description: Select the notify service to use for alerts + selector: + action: + service: + domain: notify trigger: + # Trigger when the state of any selected sensor changes - platform: state entity_id: !input opening_sensors @@ -29,7 +37,7 @@ action: - choose: - conditions: "{{ open_sensors | length > 0 }}" sequence: - - service: persistent_notification.create + - service: !input notify_service data: title: "Open Windows/Doors" message: > @@ -39,7 +47,7 @@ action: {% endfor %} - conditions: "{{ open_sensors | length == 0 }}" sequence: - - service: persistent_notification.create + - service: !input notify_service data: title: "Window/Door Status" message: "All selected windows/doors are closed."