Circadian Lighting for Philips Hue White Ambiance

I know there are a lot of (better) circadian lighting automations out there, but they seemed to use lights with the full spectrum of colour. The scripts needed to be modified for the Philips Hue White Ambiance bulbs as they use Colour Temperature (CT) rather than the XY or RGB colour settings used in many scripts.
These are the CT and brightness settings used by the native Philips Hue scenes for the White Ambiance bulbs.

Scene, CT, Brightness
Relax, 447, 144
Read, 343, 254
Concentrate, 230, 254
Energise, 153, 254
Savanna Sunset, 385, 236
Tropical twilight, 322, 186
Artic aurora, 153, 149
Spring blossom, 214, 209
Bright, 367, 254
Dimmed, 366, 77
Nightlight, 433, 1

When reading the settings on a bulb values can take a few seconds to settle down following a scene change and can be one or two points different.

My automation also refers to the Workday Binary Sensor and some Boolean sensors to allow for holidays or other people staying who may not like to be woken at 6am.

Automation
- id: Wakeup
  trigger:
    platform: time
    at: '05:55:00'
  condition:
    condition: and
    conditions:
    - condition: state
      entity_id: binary_sensor.office_day
      state: 'on'
    - condition: state
      entity_id: input_boolean.holiday_mode
      state: 'off'
    - condition: state
      entity_id: input_boolean.guest_mode
      state: 'off'
  action:
    service: script.sunrise

Script

sunrise:
  alias: Sunrise
  sequence:
    # light 1 dark red to medium warm orange
    - service: homeassistant.turn_on
      data:
        entity_id: light.bedroom
        color_temp: 433
        brightness: 1
    - service: homeassistant.turn_on
      data:
        entity_id: light.bedroom
        color_temp: 343
        brightness: 250
        transition: 600
2 Likes