blueprints/automation/wd-close-weather-notification.yaml aktualisiert
This commit is contained in:
@@ -5,21 +5,18 @@ blueprint:
|
||||
input:
|
||||
opening_sensors:
|
||||
name: Window/Door Sensors
|
||||
description: Select the sensors to monitor
|
||||
selector:
|
||||
entity:
|
||||
domain: binary_sensor
|
||||
multiple: true
|
||||
notify_service:
|
||||
name: Notification Service
|
||||
description: Select the notify service to use for alerts
|
||||
description: Enter the notify service (e.g., notify.mobile_app_phone)
|
||||
default: notify.notify
|
||||
selector:
|
||||
action:
|
||||
service:
|
||||
domain: notify
|
||||
text:
|
||||
|
||||
trigger:
|
||||
# Trigger when the state of any selected sensor changes
|
||||
- platform: state
|
||||
entity_id: !input opening_sensors
|
||||
|
||||
@@ -37,7 +34,7 @@ action:
|
||||
- choose:
|
||||
- conditions: "{{ open_sensors | length > 0 }}"
|
||||
sequence:
|
||||
- service: !input notify_service
|
||||
- service: "{{ notify_service }}"
|
||||
data:
|
||||
title: "Open Windows/Doors"
|
||||
message: >
|
||||
@@ -47,7 +44,7 @@ action:
|
||||
{% endfor %}
|
||||
- conditions: "{{ open_sensors | length == 0 }}"
|
||||
sequence:
|
||||
- service: !input notify_service
|
||||
- service: "{{ notify_service }}"
|
||||
data:
|
||||
title: "Window/Door Status"
|
||||
message: "All selected windows/doors are closed."
|
||||
|
||||
Reference in New Issue
Block a user