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

This commit is contained in:
2025-08-30 10:21:02 +00:00
parent c6677f1501
commit e8aadbabbe

View File

@@ -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."