Refactor living room light configurations and enhance blocking conditions for smart lights
This commit is contained in:
@@ -11,3 +11,15 @@ virtual_sensors:
|
|||||||
binary_sensor.is_apple_tv_on: media_player.apple_tv != 'off'
|
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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,9 @@ light_mezzanine_01:
|
|||||||
|
|
||||||
smart_conditions:
|
smart_conditions:
|
||||||
trigger_conditions: sensor.mezzanine_last_motion < 3
|
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:
|
light_brightness_pct:
|
||||||
15: binary_sensor.is_everybody_sleeping
|
15: binary_sensor.is_everybody_sleeping
|
||||||
@@ -19,7 +21,9 @@ light_mezzanine_02:
|
|||||||
|
|
||||||
smart_conditions:
|
smart_conditions:
|
||||||
trigger_conditions: sensor.mezzanine_last_motion < 3
|
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:
|
light_brightness_pct:
|
||||||
5: binary_sensor.is_everybody_sleeping
|
5: binary_sensor.is_everybody_sleeping
|
||||||
@@ -31,16 +35,29 @@ light_bookshelves:
|
|||||||
class: SmartLight
|
class: SmartLight
|
||||||
entity: light.living_room_bookshelves
|
entity: light.living_room_bookshelves
|
||||||
|
|
||||||
smart_conditions:
|
smart_conditions: sensor.living_room_ambiance_light >= 1
|
||||||
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
|
|
||||||
|
|
||||||
#light_brightness_pct:
|
light_brightness_pct:
|
||||||
# 5: binary_sensor.is_everybody_sleeping
|
25: sensor.living_room_ambiance_light == 1
|
||||||
# 25: binary_sensor.day_interval_night
|
100: True
|
||||||
# 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:
|
light_living_room:
|
||||||
module: smartlight
|
module: smartlight
|
||||||
|
|||||||
Reference in New Issue
Block a user