Full bedroom setup with two bedlight, two remote and the sonos led
This commit is contained in:
109
apps/rooms/bedroom.yaml
Normal file
109
apps/rooms/bedroom.yaml
Normal file
@@ -0,0 +1,109 @@
|
||||
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'
|
||||
|
||||
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'
|
||||
|
||||
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'
|
||||
45
apps/rooms/corridor.yaml
Normal file
45
apps/rooms/corridor.yaml
Normal file
@@ -0,0 +1,45 @@
|
||||
light_corridor:
|
||||
module: smartlight
|
||||
class: SmartLight
|
||||
entity: light.corridor
|
||||
|
||||
smart_conditions:
|
||||
trigger_conditions: sensor.corridor_last_motion < 3
|
||||
blocking_conditions: sensor.corridor_motion_light_level > 10 and not self
|
||||
|
||||
light_brightness_pct:
|
||||
1: input_boolean.sleeping
|
||||
25: binary_sensor.day_interval_night
|
||||
100: True
|
||||
|
||||
light_hallway:
|
||||
module: smartlight
|
||||
class: SmartLight
|
||||
entity: light.hallway
|
||||
|
||||
smart_conditions:
|
||||
trigger_conditions: sensor.hallway_last_motion < 3
|
||||
blocking_conditions: sensor.hallway_motion_light_level > 10 and not self
|
||||
|
||||
light_brightness_pct:
|
||||
1: input_boolean.sleeping
|
||||
25: binary_sensor.day_interval_night
|
||||
100: True
|
||||
|
||||
|
||||
light_restroom:
|
||||
module: smartlight
|
||||
class: SmartLight
|
||||
entity: light.restroom
|
||||
|
||||
smart_conditions:
|
||||
trigger_conditions: sensor.restroom_last_motion < 3
|
||||
blocking_conditions: sensor.restroom_motion_light_level > 10 and not self
|
||||
|
||||
light_brightness_pct:
|
||||
1: input_boolean.sleeping
|
||||
25: binary_sensor.day_interval_night
|
||||
100: True
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user