Basement should be occupied when motion is detected, close #202

This commit is contained in:
2024-07-22 16:15:07 -04:00
parent 8d2be03814
commit 7e53793221

View File

@ -122,7 +122,9 @@ template:
unique_id: 20039c29-8b9d-436d-ba6c-8f2c2bda1db0
device_class: occupancy
state: >
{% if is_state('binary_sensor.tony_desktop_on','off') and
{% if is_state('binary_sensor.basement_studio_motion','on') %}
true
{% elif is_state('binary_sensor.tony_desktop_on','off') and
is_state('binary_sensor.kallen_desktop_on','off') %}
false
{% elif (is_state('binary_sensor.tony_desktop_idle','on') or