diff --git a/packages/security/security.yaml b/packages/security/security.yaml index 463d89e..950bd19 100644 --- a/packages/security/security.yaml +++ b/packages/security/security.yaml @@ -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