From 754e3d60952de6176323832c7cd2eb387f21f9d9 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Fri, 28 Feb 2025 00:30:26 -0500 Subject: [PATCH] Don't consider K's computer as occupying the basement if I am upstairs --- packages/presence.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/presence.yaml b/packages/presence.yaml index f69b963..92f52c3 100644 --- a/packages/presence.yaml +++ b/packages/presence.yaml @@ -124,10 +124,7 @@ 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')) %} + {% elif is_state('sensor.xia_desktop_current_username','tm24f') %} false {% elif is_state('binary_sensor.tony_desktop_on','off') and is_state('binary_sensor.kallen_desktop_on','off') %}