Files
ad-nix/apps/rooms/living_room.yaml
2024-07-27 17:38:09 -05:00

74 lines
1.7 KiB
YAML

living_room:
module: room_control
class: RoomController
loki_url: http://192.168.1.107:3100/loki/api/v1/push
off_duration: '00:30:00'
motion:
sensor: binary_sensor.living_room_motion_occupancy
ref_entity: light.living_room
button: Living Room Button
door: binary_sensor.front_contact
# rich: DEBUG
states:
- time: sunrise
scene:
light.living_room:
state: on
color_temp: 200
brightness: 75
light.couch_corner:
state: on
color_temp: 200
brightness: 20
- time: '09:00:00'
scene:
light.living_room:
state: on
color_temp: 250
brightness: 130
light.couch_corner:
state: on
color_temp: 250
brightness: 65
- time: '12:00:00'
scene:
light.living_room:
state: on
color_temp: 300
brightness: 255
light.couch_corner:
state: on
color_temp: 450
brightness: 125
- time: sunset
off_duration: 01:00:00
scene:
light.living_room:
state: on
color_temp: 350
brightness: 175
light.couch_corner:
state: on
color_temp: 650
brightness: 25
- elevation: -20
direction: setting
off_duration: 00:30:00
scene:
light.living_room:
state: on
color_temp: 350
brightness: 125
light.couch_corner:
state: on
color_temp: 650
brightness: 5
sleep: input_boolean.sleeping
sleep_state:
# off_duration: '00:02:00'
scene:
light.living_room:
state: 'on'
rgb_color: [255, 0, 0]
brightness: 25