Compare commits

...

2 Commits

4 changed files with 46 additions and 10 deletions

View File

@ -16,14 +16,14 @@ bedroom_lights:
- light.correls_nightstand
- light.stephanies_nightstand
- light.bedroom_lamp
- light.shelf_lamp
- light.wall_strip
- scene.colorful
- scene.speed_of_sound_sonic
office_lights:
name: Office
entities:
- light.shelf_lamp
- light.office_lamp
- light.wall_strip
consoles:
name: Gaming Consoles
entities:

View File

@ -5,7 +5,7 @@ scene:
state: on
brightness: 255
xy_color: [0.37, 0.372]
light.office_lamp:
light.bedroom_lamp:
state: on
brightness: 255
xy_color: [0.37, 0.372]
@ -19,7 +19,7 @@ scene:
state: on
brightness: 255
rgb_color: [255, 61, 18]
light.office_lamp:
light.bedroom_lamp:
state: on
brightness: 255
rgb_color: [255, 59, 191]
@ -33,7 +33,7 @@ scene:
state: on
brightness: 1
rgb_color: [255, 118, 23]
light.office_lamp:
light.bedroom_lamp:
state: on
brightness: 1
rgb_color: [255, 118, 23]
@ -47,7 +47,7 @@ scene:
state: on
rgb_color: [247, 168, 184]
brightness: 246
light.office_lamp:
light.bedroom_lamp:
state: on
rgb_color: [255, 255, 255]
brightness: 255
@ -61,7 +61,7 @@ scene:
state: on
brightness: 255
rgb_color: [255, 0, 0]
light.office_lamp:
light.bedroom_lamp:
state: on
brightness: 255
rgb_color: [255, 0, 0]

View File

@ -5,6 +5,10 @@ scene:
state: on
brightness: 1
xy_color: [0.6042, 0.3739]
light.shelf_lamp:
state: on
brightness: 1
xy_color: [0.6042, 0.3739]
- name: Dawn Daylight
entities:
light.correls_nightstand:
@ -22,6 +26,11 @@ scene:
transition: 1800
brightness: 254
xy_color: [0.3769, 0.3639]
light.shelf_lamp:
state: on
transition: 1800
brightness: 254
xy_color: [0.3769, 0.3639]
- name: Sunrise Daylight
entities:
light.correls_nightstand:
@ -60,10 +69,14 @@ input_select:
- Weekdays
icon: mdi:weather-sunset
input_datetime:
sunrise_time:
sunrise_latest_time:
name: Latest start time
has_date: false
has_time: true
sunrise_earliest_time:
name: Earliest start time
has_date: false
has_time: true
sensor:
- platform: time_date
display_options:
@ -80,7 +93,14 @@ automation:
- platform: template
value_template: >-
{{ states('sensor.time') == (
states.input_datetime.sunrise_time.attributes.timestamp
states.input_datetime.sunrise_earliest_time.attributes.timestamp
| int | timestamp_custom('%H:%M', False)
)
}}
- platform: template
value_template: >-
{{ states('sensor.time') == (
states.input_datetime.sunrise_latest_time.attributes.timestamp
| int | timestamp_custom('%H:%M', False)
)
}}
@ -91,6 +111,13 @@ automation:
- condition: state
entity_id: group.bedroom_lights
state: 'off'
- condition: and
conditions:
- condition: time
after: input_datetime.sunrise_earliest_time
- condition: sun
after: sunrise
after_offset: '-00:30:00'
- condition: or
conditions:
- condition: state
@ -124,7 +151,8 @@ group:
name: Options
entities:
- input_select.sunrise_days
- input_datetime.sunrise_time
- input_datetime.sunrise_earliest_time
- input_datetime.sunrise_latest_time
sunrise_scripts:
name: Scripts
entities:

View File

@ -52,6 +52,10 @@
state: on
brightness: 212
xy_color: [0.451,0.3803]
light.shelf_lamp:
state: on
brightness: 212
xy_color: [0.451,0.3803]
light.correls_nightstand:
state: on
brightness: 212
@ -66,6 +70,10 @@
state: on
brightness: 92
xy_color: [0.324,0.154]
light.shelf_lamp:
state: on
brightness: 92
xy_color: [0.324,0.154]
light.correls_nightstand:
state: on
brightness: 92