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: Monitors selected windows/doors and lists the ones that are open.
|
description: Shows all selected windows/doors that are currently open.
|
||||||
domain: automation
|
domain: automation
|
||||||
input:
|
input:
|
||||||
opening_sensors:
|
opening_sensors:
|
||||||
@@ -10,12 +10,6 @@ blueprint:
|
|||||||
entity:
|
entity:
|
||||||
domain: binary_sensor
|
domain: binary_sensor
|
||||||
multiple: true
|
multiple: true
|
||||||
notify_service:
|
|
||||||
name: Notification Service
|
|
||||||
description: Select a notify service
|
|
||||||
selector:
|
|
||||||
entity:
|
|
||||||
domain: notify
|
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
@@ -35,17 +29,17 @@ action:
|
|||||||
- choose:
|
- choose:
|
||||||
- conditions: "{{ open_sensors | length > 0 }}"
|
- conditions: "{{ open_sensors | length > 0 }}"
|
||||||
sequence:
|
sequence:
|
||||||
- service: !input notify_service
|
- service: persistent_notification.create
|
||||||
data:
|
data:
|
||||||
|
title: "Open Windows/Doors"
|
||||||
message: >
|
message: >
|
||||||
Open windows/doors:
|
The following windows/doors are open:
|
||||||
{% 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: persistent_notification.create
|
||||||
data:
|
data:
|
||||||
message: "All selected windows/doors are closed."
|
|
||||||
title: "Window/Door Status"
|
title: "Window/Door Status"
|
||||||
|
message: "All selected windows/doors are closed."
|
||||||
|
|||||||
Reference in New Issue
Block a user