add some home cinema automation
This commit is contained in:
@@ -10,7 +10,7 @@ light_mezzanine_01:
|
||||
- light.living_room
|
||||
|
||||
light_brightness_pct:
|
||||
15: binary_sensor.is_everybody_sleeping
|
||||
15: binary_sensor.is_everybody_sleeping or binary_sensor.projector_on
|
||||
35: binary_sensor.day_interval_night
|
||||
100: True
|
||||
|
||||
@@ -26,7 +26,7 @@ light_mezzanine_02:
|
||||
- light.living_room
|
||||
|
||||
light_brightness_pct:
|
||||
5: binary_sensor.is_everybody_sleeping
|
||||
5: binary_sensor.is_everybody_sleeping or binary_sensor.projector_on
|
||||
25: binary_sensor.day_interval_night
|
||||
100: True
|
||||
|
||||
@@ -76,4 +76,41 @@ light_living_room:
|
||||
|
||||
|
||||
off_events:
|
||||
- turn_off_all_lights
|
||||
- turn_off_all_lights
|
||||
|
||||
projection_screen:
|
||||
module: smartshutter
|
||||
class: SmartShutter
|
||||
entity: cover.living_room_projection_screen
|
||||
close_position: 22
|
||||
|
||||
close_conditions: # close mean screen down
|
||||
# when the projector is turn back on, it can happen that this condition is evaluated before projector_off_for_a_while is updated
|
||||
# so I need to test both binary_sensor.projector_on and not binary_sensor.projector_off_for_a_while
|
||||
trigger_conditions: binary_sensor.projector_on or not binary_sensor.projector_off_for_a_while
|
||||
disable_conditions:
|
||||
- binary_sensor.day_interval_night and not binary_sensor.projector_on
|
||||
- binary_sensor.is_everybody_sleeping and not binary_sensor.projector_on
|
||||
|
||||
bravia_theatre:
|
||||
module: smartswitch
|
||||
class: SmartSwitch
|
||||
entity: media_player.bravia_theatre
|
||||
|
||||
smart_conditions: binary_sensor.vertex2_has_input_signal
|
||||
|
||||
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: self == 'closed' and (binary_sensor.is_dark_outside or binary_sensor.is_anybody_sleeping)
|
||||
Reference in New Issue
Block a user