Update Security Package
This commit is contained in:
@@ -68,17 +68,17 @@ binary_sensor:
|
|||||||
- binary_sensor.bedroom_side_window
|
- binary_sensor.bedroom_side_window
|
||||||
- binary_sensor.bedroom_back_window
|
- binary_sensor.bedroom_back_window
|
||||||
|
|
||||||
sensor:
|
template:
|
||||||
- platform: template
|
sensor:
|
||||||
name: Open Windows/Doors
|
- name: Open Windows/Doors
|
||||||
unique_id: open_windows_doors
|
unique_id: open_windows_doors
|
||||||
state: >
|
state: >
|
||||||
{{
|
{{
|
||||||
expand(state_attr('binary_sensor.all_doors', 'entity_id') + state_attr('binary_sensor.all_windows', 'entity_id'))
|
expand(state_attr('binary_sensor.all_doors', 'entity_id') + state_attr('binary_sensor.all_windows', 'entity_id'))
|
||||||
| selectattr('state', 'in', ['on'])
|
| selectattr('state', 'in', ['on'])
|
||||||
| map(attribute='attributes.friendly_name')
|
| map(attribute='attributes.friendly_name')
|
||||||
| list | join(', ')
|
| list | join(', ')
|
||||||
}}
|
}}
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# Security Automations
|
# Security Automations
|
||||||
|
|||||||
Reference in New Issue
Block a user