created living_room.yaml

This commit is contained in:
John Lancaster
2023-04-15 17:23:38 -05:00
parent d6bfcc864b
commit 29e89e42b9
3 changed files with 189 additions and 58 deletions

View File

@@ -1,6 +1,6 @@
kitchen: kitchen:
module: controller module: controller
class: ControllerRoom class: ControllerRoomLights
entities: entities:
- light.kitchen - light.kitchen

131
apps/living_room.yaml Normal file
View File

@@ -0,0 +1,131 @@
living_room:
module: controller
class: ControllerRoomLights
entities:
- light.living_room
- light.couch_corner
living_room_motion:
module: controller
class: ControllerMotion
dependencies: living_room
room: living_room
entities:
- binary_sensor.motion_living_room
off_duration: 00:30:00
living_room_button:
module: controller
class: ControllerButton
dependencies: living_room
room: living_room
buttons:
- living_room
living_room_daylight:
module: controller
class: ControllerDaylight
entities:
- light.living_room
latitude: 30.150380
longitude: -97.4487
periods:
- time: '04:00:00am'
brightness: 75
color_temp: 200
- elevation: 0
direction: rising
brightness: 150
color_temp: 200
- time: noon
brightness: 255
color_temp: 250
- elevation: 20
direction: setting
brightness: 200
color_temp: 275
- elevation: 0
direction: setting
brightness: 200
color_temp: 325
- elevation: -20
direction: setting
brightness: 200
color_temp: 350
- time: '10:30:00pm'
brightness: 75
color_temp: 400
couch_corner_daylight:
module: controller
class: ControllerDaylight
entities:
- light.couch_corner
latitude: 30.150380
longitude: -97.4487
periods:
- time: sunrise
brightness: 20
color_temp: 200
- time: noon
brightness: 80
color_temp: 300
- time: sunset
brightness: 20
color_temp: 400
# scene:
# - time: sunrise
# scene:
# light.living_room:
# state: on
# color_temp: 200
# brightness_pct: 30
# light.corner_light:
# 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.corner_light:
# 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.corner_light:
# 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.corner_light:
# state: on
# color_temp: 650
# brightness_pct: 10
# sleep: input_boolean.sleeping
# sleep_scene:
# off_duration: '00:02:00'
# light.living_room:
# state: 'on'
# color_name: 'red'
# brightness_pct: 50

View File

@@ -112,63 +112,63 @@ bedroom:
brightness_pct: 10 brightness_pct: 10
sleep: input_boolean.sleeping sleep: input_boolean.sleeping
living_room: # living_room:
module: basic_motion # module: basic_motion
class: MotionLight # class: MotionLight
entity: light.living_room # entity: light.living_room
sensor: binary_sensor.motion_living_room # sensor: binary_sensor.motion_living_room
off_duration: '00:30:00' # off_duration: '00:30:00'
button: living_room # button: living_room
door: binary_sensor.front_door # door: binary_sensor.front_door
scene: # scene:
- time: sunrise # - time: sunrise
scene: # scene:
light.living_room: # light.living_room:
state: on # state: on
color_temp: 200 # color_temp: 200
brightness_pct: 30 # brightness_pct: 30
light.corner_light: # light.corner_light:
state: on # state: on
color_temp: 200 # color_temp: 200
brightness_pct: 7 # brightness_pct: 7
- time: '09:00:00' # - time: '09:00:00'
scene: # scene:
light.living_room: # light.living_room:
state: on # state: on
color_temp: 250 # color_temp: 250
brightness_pct: 50 # brightness_pct: 50
light.corner_light: # light.corner_light:
state: on # state: on
color_temp: 250 # color_temp: 250
brightness_pct: 25 # brightness_pct: 25
- time: '12:00:00' # - time: '12:00:00'
scene: # scene:
light.living_room: # light.living_room:
state: on # state: on
color_temp: 300 # color_temp: 300
brightness_pct: 100 # brightness_pct: 100
light.corner_light: # light.corner_light:
state: on # state: on
color_temp: 450 # color_temp: 450
brightness_pct: 50 # brightness_pct: 50
- time: 'sunset' # - time: 'sunset'
off_duration: '01:00:00' # off_duration: '01:00:00'
scene: # scene:
light.living_room: # light.living_room:
state: on # state: on
color_temp: 350 # color_temp: 350
brightness_pct: 70 # brightness_pct: 70
light.corner_light: # light.corner_light:
state: on # state: on
color_temp: 650 # color_temp: 650
brightness_pct: 10 # brightness_pct: 10
sleep: input_boolean.sleeping # sleep: input_boolean.sleeping
sleep_scene: # sleep_scene:
off_duration: '00:02:00' # off_duration: '00:02:00'
light.living_room: # light.living_room:
state: 'on' # state: 'on'
color_name: 'red' # color_name: 'red'
brightness_pct: 50 # brightness_pct: 50
# kitchen: # kitchen:
# module: basic_motion # module: basic_motion