diff --git a/blueprints/automation/wd-close-weather-notification.yaml b/blueprints/automation/wd-close-weather-notification.yaml index a81b5cf..57ff5ac 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: Monitors selected windows/doors and lists the ones that are open. + description: Shows all selected windows/doors that are currently open. domain: automation input: opening_sensors: @@ -10,12 +10,6 @@ blueprint: entity: domain: binary_sensor multiple: true - notify_service: - name: Notification Service - description: Select a notify service - selector: - entity: - domain: notify trigger: - platform: state @@ -35,17 +29,17 @@ action: - choose: - conditions: "{{ open_sensors | length > 0 }}" sequence: - - service: !input notify_service + - service: persistent_notification.create data: + title: "Open Windows/Doors" message: > - Open windows/doors: + The following windows/doors are open: {% for d in open_sensors %} - {{ d }} {% endfor %} - title: "Open Windows/Doors" - conditions: "{{ open_sensors | length == 0 }}" sequence: - - service: !input notify_service + - service: persistent_notification.create data: - message: "All selected windows/doors are closed." title: "Window/Door Status" + message: "All selected windows/doors are closed."