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

This commit is contained in:
2025-08-30 10:18:39 +00:00
parent 9591dd34bf
commit f2d17ea420

View File

@@ -12,20 +12,14 @@ blueprint:
multiple: true multiple: true
notify_service: notify_service:
name: Notification Service name: Notification Service
description: Service to send notifications description: Select a notify service
default: persistent_notification.create
selector: selector:
action: {} entity:
domain: notify
trigger: trigger:
# Template trigger that fires when any selected sensor changes - platform: state
- platform: template entity_id: !input opening_sensors
value_template: >
{% for sensor in opening_sensors %}
{% if is_state(sensor, 'on') %}
true
{% endif %}
{% endfor %}
action: action:
- variables: - variables:
@@ -43,15 +37,15 @@ action:
sequence: sequence:
- service: !input notify_service - service: !input notify_service
data: data:
title: "Open Windows/Doors"
message: > message: >
The following windows/doors are open: Open windows/doors:
{% for d in open_sensors %} {% for d in open_sensors %}
- {{ d }} - {{ d }}
{% endfor %} {% endfor %}
title: "Open Windows/Doors"
- conditions: "{{ open_sensors | length == 0 }}" - conditions: "{{ open_sensors | length == 0 }}"
sequence: sequence:
- service: !input notify_service - service: !input notify_service
data: data:
title: "Window/Door Status"
message: "All selected windows/doors are closed." message: "All selected windows/doors are closed."
title: "Window/Door Status"