Tweaked desk presence

This commit is contained in:
Pierre committed 2026-11-06 21:55:24 +01:00
1 parent 42ae8f4bc4
commit a5258b1985
2 files changed
+4 -8

No files matched your search

+3 -7
View File
@@ -60,10 +60,6 @@ occupancy_sensors:
binary_sensor.guestroom_occupancy:
trigger_conditions: binary_sensor.is_guestroom_sleeping or binary_sensor.day_interval_night
blocking_conditions: not binary_sensor.someone_home or not input_boolean.guestroom_occupied_tonight
retain_condition.desk_occupancy:
retain_time: 5 * 60
conditions:
trigger_conditions:
- sensor.desk_last_motion <= 5
#- binary_sensor.alienware_r10
#- sensor.macbook_m3_pro_de_pierre_frontmost_app != 'loginwindow' and sensor.macbook_m3_pro_de_pierre_displays == 2
binary_sensor.desk_occupancy:
trigger_conditions: sensor.desk_last_motion <= 5 or binary_sensor.is_desk_sleeping
blocking_conditions: not binary_sensor.someone_home
+1 -1
View File
@@ -4,5 +4,5 @@ light_ambiance:
entity: light.desk_ambiance
smart_conditions:
trigger_conditions: sensor.desk_last_motion < 3 and binary_sensor.is_dark_outside
trigger_conditions: binary_sensor.desk_occupancy and binary_sensor.is_dark_outside
blocking_conditions: binary_sensor.is_desk_sleeping