70 lines
1.7 KiB
YAML
70 lines
1.7 KiB
YAML
living_room:
|
|
module: room_control
|
|
class: RoomController
|
|
sensor: binary_sensor.living_room_motion_occupancy
|
|
off_duration: 00:30:00
|
|
entity: light.living_room
|
|
button: living_room
|
|
door: binary_sensor.door_front
|
|
states:
|
|
- time: sunrise
|
|
scene:
|
|
light.living_room:
|
|
state: on
|
|
color_temp: 200
|
|
brightness_pct: 30
|
|
light.couch_corner:
|
|
state: on
|
|
color_temp: 200
|
|
brightness_pct: 7
|
|
- time: '09:00:00'
|
|
scene:
|
|
light.living_room:
|
|
state: on
|
|
color_temp: 250
|
|
brightness_pct: 50
|
|
light.couch_corner:
|
|
state: on
|
|
color_temp: 250
|
|
brightness_pct: 25
|
|
- time: '12:00:00'
|
|
scene:
|
|
light.living_room:
|
|
state: on
|
|
color_temp: 300
|
|
brightness_pct: 100
|
|
light.couch_corner:
|
|
state: on
|
|
color_temp: 450
|
|
brightness_pct: 50
|
|
- time: sunset
|
|
off_duration: 01:00:00
|
|
scene:
|
|
light.living_room:
|
|
state: on
|
|
color_temp: 350
|
|
brightness_pct: 70
|
|
light.couch_corner:
|
|
state: on
|
|
color_temp: 650
|
|
brightness_pct: 10
|
|
- elevation: -20
|
|
direction: setting
|
|
off_duration: 00:30:00
|
|
scene:
|
|
light.living_room:
|
|
state: on
|
|
color_temp: 350
|
|
brightness_pct: 50
|
|
light.couch_corner:
|
|
state: on
|
|
color_temp: 650
|
|
brightness_pct: 5
|
|
sleep: input_boolean.sleeping
|
|
sleep_state:
|
|
off_duration: '00:02:00'
|
|
scene:
|
|
light.living_room:
|
|
state: 'on'
|
|
color_name: 'red'
|
|
brightness_pct: 50 |