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