130 lines
3.0 KiB
YAML
130 lines
3.0 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.living_room
|
|
|
|
light_brightness_pct:
|
|
15: binary_sensor.is_everybody_sleeping or binary_sensor.projector_on
|
|
35: binary_sensor.day_interval_night
|
|
100: True
|
|
|
|
off_events:
|
|
- turn_off_all_lights
|
|
- turn_off_all_living_room_lights
|
|
|
|
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.living_room
|
|
|
|
light_brightness_pct:
|
|
5: binary_sensor.is_everybody_sleeping or binary_sensor.projector_on
|
|
25: binary_sensor.day_interval_night
|
|
100: True
|
|
|
|
off_events:
|
|
- turn_off_all_lights
|
|
- turn_off_all_living_room_lights
|
|
|
|
light_bookshelves:
|
|
module: smartlight
|
|
class: SmartLight
|
|
entity: light.living_room_bookshelves
|
|
|
|
smart_conditions: sensor.living_room_ambiance_light >= 1
|
|
|
|
light_brightness_pct:
|
|
25: sensor.living_room_ambiance_light == 1
|
|
100: True
|
|
|
|
light_christmas_tree:
|
|
module: smartswitch
|
|
class: SmartSwitch
|
|
entity: switch.chrismas_tree
|
|
|
|
smart_conditions: sensor.living_room_ambiance_light >= 1
|
|
|
|
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
|
|
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
|
|
- turn_off_all_living_room_lights
|
|
# w4000i:
|
|
# module: smartswitch
|
|
# class: SmartSwitch
|
|
# entity: media_player.benq_w4000i
|
|
|
|
# smart_conditions: binary_sensor.vertex2_has_input_signal
|
|
|
|
|
|
|
|
mezzanine_curtains:
|
|
module: smartshutter
|
|
class: SmartShutter
|
|
entity: cover.salon_mezzanine_curtain
|
|
|
|
close_conditions:
|
|
trigger_conditions: binary_sensor.projector_on or not binary_sensor.projector_off_for_a_while
|
|
disable_conditions: binary_sensor.is_dark_outside or binary_sensor.is_anybody_sleeping
|
|
|
|
living_room_sleep_switch:
|
|
module: smartswitch
|
|
class: SmartSwitch
|
|
|
|
entity: input_boolean.living_room_sleeping
|
|
|
|
toggle_events:
|
|
button_press:
|
|
event_name: state_changed
|
|
debounce_seconds: 0.5
|
|
event_data:
|
|
entity_id: event.living_room_bilresa_button_bouton_2
|
|
new_state:
|
|
attributes:
|
|
event_type: multi_press_1
|
|
|