Basement presence now checks if I'm using wife's PC upstairs

#188
This commit is contained in:
2025-02-15 16:03:59 -05:00
parent a085e71c86
commit a96bc99271

View File

@ -124,6 +124,11 @@ template:
state: >
{% if is_state('binary_sensor.basement_studio_motion','on') %}
true
{% elif is_state('sensor.xia_desktop_current_username','tm24f') and
(is_state('binary_sensor.kallen_desktop_idle','on') or
states('sensor.kallen_desktop_current_username') in ['unavailable','unknown','NotPresent','SYSTEM'] or
is_state('binary_sensor.kallen_desktop_on','off')) %}
false
{% elif is_state('binary_sensor.tony_desktop_on','off') and
is_state('binary_sensor.kallen_desktop_on','off') %}
false