232 lines
6.6 KiB
YAML
232 lines
6.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.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_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
|
|
|
|
|
|
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
|
|
|
|
w4000i:
|
|
module: smartprojector_benq_over_telnet
|
|
class: SmartProjector
|
|
entity: switch.projector
|
|
|
|
telnet_connection:
|
|
ip: 10.0.0.40
|
|
port: 8000
|
|
|
|
power_plug:
|
|
entity: switch.living_room_projector_plug
|
|
power_sensor: sensor.living_room_projector_plug_power
|
|
power_threeshold: 5
|
|
conditions:
|
|
trigger_conditions:
|
|
- binary_sensor.someone_home and not (binary_sensor.is_everybody_sleeping or binary_sensor.is_living_room_sleeping)
|
|
- sensor.living_room_projector_plug_power > 10 or binary_sensor.projector_on # don't remove this one or it will fry the projector
|
|
|
|
virtual_sensors:
|
|
sensors:
|
|
value_selector.projector_icon:
|
|
projector_off:
|
|
conditions: not super
|
|
value: "'mdi:projector-off'"
|
|
projector_on:
|
|
conditions: True
|
|
value: "'mdi:projector'"
|
|
continuous_condition.projector_ready:
|
|
conditions: switch.living_room_projector_plug
|
|
time: 30
|
|
|
|
attributes_override:
|
|
icon: sensor.projector_icon
|
|
friendly_name: Projecteur
|
|
|
|
press_enter_event: send_projector_enter
|
|
|
|
projector_ready_conditions: binary_sensor.projector_ready
|
|
|
|
#state_conditions: binary_sensor.projector_on
|
|
#cooling_down_sensor: binary_sensor.projector_cooling_down
|
|
|
|
smart_conditions:
|
|
trigger_conditions: binary_sensor.vertex2_has_input_signal
|
|
disable_conditions:
|
|
- self == 'unavailable'
|
|
#- not binary_sensor.projector_screen_down
|
|
#- binary_sensor.projector_cooling_down
|
|
- switch.projector.warming_up
|
|
|
|
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)
|
|
|
|
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
|
|
|
|
samsung_the_frame:
|
|
module: samsungtheframe
|
|
class: SamsungTheFrame
|
|
|
|
ip_address: 10.0.0.58
|
|
#broadcast_address: 10.0.0.255
|
|
#mac_address: 98:06:3C:85:93:38
|
|
#wol_switch: switch.theframewol
|
|
wake_up_service: "esphome/ir_bridge_turn_on_the_frame"
|
|
app_list: # https://github.com/tavicu/homebridge-samsung-tizen/issues/291
|
|
- 3201907018807 # Netflix
|
|
- 3201910019365 # Prime
|
|
|
|
virtual_sensors:
|
|
default_values:
|
|
binary_sensor.tv_auto_shutdown: false
|
|
binary_sensor.tv_on: false
|
|
sensors:
|
|
value_selector.samsung_the_frame_target_state:
|
|
power_off:
|
|
trigger_conditions:
|
|
- binary_sensor.is_everybody_sleeping or binary_sensor.is_living_room_sleeping or not binary_sensor.someone_home
|
|
- binary_sensor.projector_on or binary_sensor.projector_screen_down
|
|
#hdmi: binary_sensor.vertex2_has_input_signal and not binary_sensor.projector_screen_down
|
|
#manual: binary_sensor.tv_on and not binary_sensor.tv_auto_shutdown
|
|
manual: binary_sensor.tv_on #and not binary_sensor.tv_auto_shutdown
|
|
tv_off: not binary_sensor.living_room_occupancy
|
|
art_mode: True
|
|
|
|
tv_state: sensor.samsung_the_frame_target_state
|
|
|
|
output_sensors:
|
|
is_on: binary_sensor.tv_on
|
|
is_art_mode: binary_sensor.tv_in_art_mode
|
|
tv_auto_shutdown: binary_sensor.tv_auto_shutdown
|
|
|
|
input_sensors:
|
|
power_plug: switch.the_frame_power_plug
|
|
power_plug_power: sensor.the_frame_power_plug_power |