Files
ad_trident/apps/rooms/bedroom.yaml

180 lines
4.1 KiB
YAML

sleep_switch:
module: smartswitch
class: SmartSwitch
entity: input_boolean.sleeping
toggle_events:
button_long_press_pierre:
event_name: zha_event
event_data:
device_name: 'bedroom_remote_pierre'
args:
press_type: 'hold'
button: 'off'
reset_data:
device_name: 'bedroom_remote_pierre'
args:
button: 'off'
press_type: 'long_release'
button_long_press_maeva:
event_name: zha_event
event_data:
device_name: 'bedroom_remote_maeva'
args:
press_type: 'hold'
button: 'off'
reset_data:
device_name: 'bedroom_remote_maeva'
args:
button: 'off'
press_type: 'long_release'
off_events:
- WAKEUP
bedroom_light_switch:
module: smartswitch
class: SmartSwitch
entity: switch.bedroom_light
off_events:
- turn_off_all_lights
toggle_events:
button_press_pierre:
event_name: zha_event
event_data:
device_name: 'bedroom_remote_pierre'
args:
press_type: 'press'
button: 'on'
button_press_maeva:
event_name: zha_event
event_data:
device_name: 'bedroom_remote_maeva'
args:
press_type: 'press'
button: 'on'
sonos_led:
module: smartswitch
class: SmartSwitch
entity: switch.bedroom_led
smart_conditions: not input_boolean.sleeping
light_bedroom_bedlight_pierre:
module: smartlight
class: SmartLight
entity: light.bedroom_bedlight_pierre
toggle_events:
button_press:
event_name: zha_event
event_data:
device_name: 'bedroom_remote_pierre'
args:
press_type: 'press'
button: 'off'
off_events:
- turn_off_all_lights
increase_brightness_events:
up_hold:
event_name: zha_event
event_data:
device_name: 'bedroom_remote_pierre'
args:
press_type: 'hold'
button: 'up'
decrease_brightness_events:
down_hold:
event_name: zha_event
event_data:
device_name: 'bedroom_remote_pierre'
args:
press_type: 'hold'
button: 'down'
on_events_with_transition:
wake_up_events:
transition_time: 120
brightness_pct: 50
events:
WAKEUP_IN:
event_name: WAKEUP_IN
event_data:
wakeup_in: 5
light_bedroom_bedlight_maeva:
module: smartlight
class: SmartLight
entity: light.bedroom_bedlight_maeva
toggle_events:
button_press:
event_name: zha_event
event_data:
device_name: 'bedroom_remote_maeva'
args:
press_type: 'press'
button: 'off'
off_events:
- turn_off_all_lights
increase_brightness_events:
up_hold:
event_name: zha_event
event_data:
device_name: 'bedroom_remote_maeva'
args:
press_type: 'hold'
button: 'up'
decrease_brightness_events:
down_hold:
event_name: zha_event
event_data:
device_name: 'bedroom_remote_maeva'
args:
press_type: 'hold'
button: 'down'
bed_ledstrip:
module: smartlight
class: SmartLight
entity: light.bedroom_ledstripe
smart_conditions:
trigger_conditions: (input_boolean.sleeping or binary_sensor.day_interval_night) and (binary_sensor.bedroom_motion_bed_pierre or binary_sensor.bedroom_motion_bed_maeva)
blocking_conditions: switch.bedroom_light or light.bedroom_bedlight_pierre or light.bedroom_bedlight_maeva
on_events_with_transition:
wake_up_events:
transition_time: 120
brightness_pct: 50
events:
WAKEUP_IN:
event_name: WAKEUP_IN
event_data:
wakeup_in: 8
light_brightness_pct: 1
alarm_clock:
module: alarmclock
class: AlarmClock
switch_alarmclock_main: input_boolean.main_alarmclock
switch_alarmclock_secondary: input_boolean.secondary_alarmclock
inputdate_alarmclock_main: input_datetime.main_alarmclock
inputdate_alarmclock_secondary: input_datetime.secondary_alarmclock
input_text_wakeup_time: input_text.wakeup_time
sleeping_condition: input_boolean.sleeping