blueprints/automation/wd-close-weather-notification.yaml aktualisiert
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
blueprint:
|
blueprint:
|
||||||
name: Open Windows/Doors Monitor
|
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
|
domain: automation
|
||||||
input:
|
input:
|
||||||
opening_sensors:
|
opening_sensors:
|
||||||
@@ -10,8 +10,16 @@ blueprint:
|
|||||||
entity:
|
entity:
|
||||||
domain: binary_sensor
|
domain: binary_sensor
|
||||||
multiple: true
|
multiple: true
|
||||||
|
notify_service:
|
||||||
|
name: Notification Service
|
||||||
|
description: Select the notify service to use for alerts
|
||||||
|
selector:
|
||||||
|
action:
|
||||||
|
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
|
||||||
|
|
||||||
@@ -29,7 +37,7 @@ action:
|
|||||||
- choose:
|
- choose:
|
||||||
- conditions: "{{ open_sensors | length > 0 }}"
|
- conditions: "{{ open_sensors | length > 0 }}"
|
||||||
sequence:
|
sequence:
|
||||||
- service: persistent_notification.create
|
- service: !input notify_service
|
||||||
data:
|
data:
|
||||||
title: "Open Windows/Doors"
|
title: "Open Windows/Doors"
|
||||||
message: >
|
message: >
|
||||||
@@ -39,7 +47,7 @@ action:
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
- conditions: "{{ open_sensors | length == 0 }}"
|
- conditions: "{{ open_sensors | length == 0 }}"
|
||||||
sequence:
|
sequence:
|
||||||
- service: persistent_notification.create
|
- service: !input 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