Replace downstairs bathroom door sensor with motion sensor

This commit is contained in:
2023-11-03 17:44:40 -04:00
parent 18be9270c6
commit 288ced61e7
3 changed files with 3 additions and 24 deletions

View File

@ -179,15 +179,13 @@ template:
unit_of_measurement: 'open'
state: >-
{% set doors = [
states.binary_sensor.basement_studio_door,
states.binary_sensor.downstairs_bathroom_door,
states.binary_sensor.basement_studio_door
] %}
{% set doors_open = doors | selectattr('state','eq','on') | list | count %}
{{ doors_open }}
icon: >-
{% set doors = [
states.binary_sensor.basement_studio_door,
states.binary_sensor.downstairs_bathroom_door,
states.binary_sensor.basement_studio_door
] %}
{% set doors_open = doors | selectattr('state','eq','on') | list | count %}
{% if doors_open == 0 %}