Refactor living room light configurations and enhance blocking conditions for smart lights

This commit is contained in:
2026-05-27 23:06:00 +02:00
parent 4756d1669a
commit af6abec832
2 changed files with 41 additions and 12 deletions

View File

@@ -9,5 +9,17 @@ virtual_sensors:
conditions: media_player.apple_tv == 'paused' or media_player.apple_tv == 'idle' or media_player.apple_tv == 'standby'
binary_sensor.is_apple_tv_on: media_player.apple_tv != 'off'
binary_sensor.someone_home: person.maeva == 'home' or person.pierre == 'home'
binary_sensor.someone_home: person.maeva == 'home' or person.pierre == 'home'
# living room sensors
value_selector.living_room_ambiance_light:
values:
0:
- not binary_sensor.living_room_occupancy
- binary_sensor.is_apple_tv_on and not binary_sensor.is_apple_tv_idle
- light.living_room
- sensor.mezzanine_motion_light_level > 10
1: binary_sensor.is_everybody_sleeping
2: true