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

@@ -11,3 +11,15 @@ virtual_sensors:
binary_sensor.is_apple_tv_on: media_player.apple_tv != 'off'
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

View File

@@ -5,7 +5,9 @@ light_mezzanine_01:
smart_conditions:
trigger_conditions: sensor.mezzanine_last_motion < 3
blocking_conditions: sensor.mezzanine_motion_light_level > 10 and not self
blocking_conditions:
- sensor.mezzanine_motion_light_level > 10 and not self
- light.living_room
light_brightness_pct:
15: binary_sensor.is_everybody_sleeping
@@ -19,7 +21,9 @@ light_mezzanine_02:
smart_conditions:
trigger_conditions: sensor.mezzanine_last_motion < 3
blocking_conditions: sensor.mezzanine_motion_light_level > 10 and not self
blocking_conditions:
- sensor.mezzanine_motion_light_level > 10 and not self
- light.living_room
light_brightness_pct:
5: binary_sensor.is_everybody_sleeping
@@ -31,16 +35,29 @@ light_bookshelves:
class: SmartLight
entity: light.living_room_bookshelves
smart_conditions:
trigger_conditions: binary_sensor.living_room_occupancy
blocking_conditions:
- sensor.mezzanine_motion_light_level > 10
- binary_sensor.is_apple_tv_on and not binary_sensor.is_apple_tv_idle
smart_conditions: sensor.living_room_ambiance_light >= 1
#light_brightness_pct:
# 5: binary_sensor.is_everybody_sleeping
# 25: binary_sensor.day_interval_night
# 100: True
light_brightness_pct:
25: sensor.living_room_ambiance_light == 1
100: True
light_tree:
module: smartlight
class: SmartLight
entity: light.living_room_tree
smart_conditions: sensor.living_room_ambiance_light >= 2
light_brightness_pct: 35
light_art_deco:
module: smartlight
class: SmartLight
entity: light.living_room_art_deco
smart_conditions: sensor.living_room_ambiance_light >= 2
light_brightness_pct: 35
light_living_room:
module: smartlight