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