Update Security Package

This commit is contained in:
2022-07-05 16:01:52 -07:00
parent b26f01d8cd
commit 2a5fcc8af6

View File

@@ -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