101 lines
2.1 KiB
YAML
101 lines
2.1 KiB
YAML
bedroom:
|
|
module: room_control
|
|
class: RoomController
|
|
dependencies:
|
|
- rich_logging
|
|
# rich: DEBUG
|
|
off_duration: '00:05:00'
|
|
states:
|
|
- time: 'sunrise - 03:00:00'
|
|
scene:
|
|
light.bedroom:
|
|
state: on
|
|
color_temp: 200
|
|
brightness: 50
|
|
light.globe:
|
|
state: on
|
|
color_temp: 200
|
|
brightness: 50
|
|
light.overhead:
|
|
state: off
|
|
- time: '06:00:00'
|
|
scene:
|
|
light.bedroom:
|
|
state: on
|
|
color_temp: 250
|
|
brightness: 50
|
|
light.globe:
|
|
state: on
|
|
color_temp: 250
|
|
brightness: 50
|
|
light.overhead:
|
|
state: on
|
|
color_temp: 250
|
|
brightness: 40
|
|
- time: '12:00:00'
|
|
scene:
|
|
light.bedroom:
|
|
state: on
|
|
color_temp: 325
|
|
brightness: 75
|
|
light.globe:
|
|
state: on
|
|
color_temp: 325
|
|
brightness: 75
|
|
light.overhead:
|
|
state: on
|
|
color_temp: 325
|
|
brightness: 50
|
|
- time: 'sunset'
|
|
scene:
|
|
light.bedroom:
|
|
state: on
|
|
color_temp: 325
|
|
brightness: 50
|
|
light.globe:
|
|
state: on
|
|
color_temp: 325
|
|
brightness: 50
|
|
light.overhead:
|
|
state: on
|
|
color_temp: 350
|
|
brightness: 65
|
|
- time: '01:00:00'
|
|
scene:
|
|
light.bedroom:
|
|
state: on
|
|
color_name: green
|
|
brightness: 50
|
|
light.globe:
|
|
state: on
|
|
color_name: blue
|
|
brightness: 50
|
|
light.overhead:
|
|
state: on
|
|
color_name: blueviolet
|
|
brightness: 255
|
|
sleep: input_boolean.sleeping
|
|
|
|
bedroom_buttons:
|
|
module: room_control
|
|
class: Button
|
|
dependencies:
|
|
- bedroom
|
|
# rich: DEBUG
|
|
app: bedroom
|
|
ref_entity: light.bedroom
|
|
button:
|
|
- Bedroom Button 1
|
|
- Bedroom Button 2
|
|
|
|
bedroom_motion:
|
|
module: room_control
|
|
class: Motion
|
|
dependencies:
|
|
- bedroom
|
|
# rich: DEBUG
|
|
app: bedroom
|
|
sensor: binary_sensor.bedroom_motion_occupancy
|
|
off_duration: '00:05:00'
|
|
ref_entity: light.bedroom
|