From 2a5fcc8af666f1d03551b4b26ba3453795413f90 Mon Sep 17 00:00:00 2001 From: "J.P. Krauss" Date: Tue, 5 Jul 2022 16:01:52 -0700 Subject: [PATCH] Update Security Package --- packages/security/security.yaml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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