@ -188,25 +188,23 @@ automation:
|
|||||||
title: Lockdown Issue
|
title: Lockdown Issue
|
||||||
notification_id: lockdown_issue
|
notification_id: lockdown_issue
|
||||||
message: >-
|
message: >-
|
||||||
|
{% set extdoors = expand('binary_sensor.exterior_doors') | selectattr('state','eq','on') | map(attribute='name') | list | join(', ') %}
|
||||||
|
{% set windows = expand('binary_sensor.windows') | selectattr('state','eq','on') | map(attribute='name') | list | join(', ') %}
|
||||||
A lockdown issue has been caused by the following sensors:
|
A lockdown issue has been caused by the following sensors:
|
||||||
{% if is_state('binary_sensor.exterior_doors','on') %}
|
|
||||||
{{ expand('binary_sensor.exterior_doors') | selectattr('state','eq','on') | map(attribute='name') | list | join(', ') }}
|
Doors:{% if is_state('binary_sensor.exterior_doors','on') %} {{ extdoors }} {% else %} None {% endif %}
|
||||||
{% endif %}
|
Windows:{% if is_state('binary_sensor.windows','on') %} {{ windows }} {% else %} None {% endif %}
|
||||||
{% if is_state('binary_sensor.windows','on') %}
|
|
||||||
{{ expand('binary_sensor.windows') | selectattr('state','eq','on') | map(attribute='name') | list | join(', ') }}
|
|
||||||
{% endif %}
|
|
||||||
- service: script.text_urgent_alert
|
- service: script.text_urgent_alert
|
||||||
data:
|
data:
|
||||||
who: 'parents'
|
who: 'parents'
|
||||||
title: 'Security Not Armed!'
|
title: 'Security Not Armed!'
|
||||||
message: >-
|
message: >-
|
||||||
|
{% set extdoors = expand('binary_sensor.exterior_doors') | selectattr('state','eq','on') | map(attribute='name') | list | join(', ') %}
|
||||||
|
{% set windows = expand('binary_sensor.windows') | selectattr('state','eq','on') | map(attribute='name') | list | join(', ') %}
|
||||||
A lockdown issue has been caused by the following sensors:
|
A lockdown issue has been caused by the following sensors:
|
||||||
{% if is_state('binary_sensor.exterior_doors','on') %}
|
|
||||||
{{ expand('binary_sensor.exterior_doors') | selectattr('state','eq','on') | map(attribute='name') | list | join(', ') }}
|
Doors:{% if is_state('binary_sensor.exterior_doors','on') %} {{ extdoors }} {% else %} None {% endif %}
|
||||||
{% endif %}
|
Windows:{% if is_state('binary_sensor.windows','on') %} {{ windows }} {% else %} None {% endif %}
|
||||||
{% if is_state('binary_sensor.windows','on') %}
|
|
||||||
{{ expand('binary_sensor.windows') | selectattr('state','eq','on') | map(attribute='name') | list | join(', ') }}
|
|
||||||
{% endif %}
|
|
||||||
- service: scene.create
|
- service: scene.create
|
||||||
data:
|
data:
|
||||||
scene_id: light_state_before_lockdown_issue
|
scene_id: light_state_before_lockdown_issue
|
||||||
|
Reference in New Issue
Block a user