Files
ad_trident/apps/rooms/living_room.yaml

62 lines
1.6 KiB
YAML

light_mezzanine_01:
module: smartlight
class: SmartLight
entity: light.mezzanine_01
smart_conditions:
trigger_conditions: sensor.mezzanine_last_motion < 3
blocking_conditions: sensor.mezzanine_motion_light_level > 10 and not self
light_brightness_pct:
15: binary_sensor.is_everybody_sleeping
35: binary_sensor.day_interval_night
100: True
light_mezzanine_02:
module: smartlight
class: SmartLight
entity: light.mezzanine_02
smart_conditions:
trigger_conditions: sensor.mezzanine_last_motion < 3
blocking_conditions: sensor.mezzanine_motion_light_level > 10 and not self
light_brightness_pct:
5: binary_sensor.is_everybody_sleeping
25: binary_sensor.day_interval_night
100: True
light_bookshelves:
module: smartlight
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
#light_brightness_pct:
# 5: binary_sensor.is_everybody_sleeping
# 25: binary_sensor.day_interval_night
# 100: True
light_living_room:
module: smartlight
class: SmartLight
entity: light.living_room
toggle_events:
button_press:
event_name: state_changed
debounce_seconds: 0.5
event_data:
entity_id: event.living_room_bilresa_button_bouton_1
new_state:
attributes:
event_type: multi_press_1
off_events:
- turn_off_all_lights