Hi, I made a test automation to make my Hue downlight turn on with a chosen colour and brightness, but the colour setting doesn’t seem to work.
When the following snippet is included in the config only once, the light turns on but it’s white with the low brightness [20,0,0] would have. If I copy this snippet and make it run twice, first the light turns on white with low brightness, and then immediately flashes to red. It’s a very sudden flash and the whole point of this is to be able to turn a light on without waking people up.
Is my config wrong? Or is this a limitation of Home Assistant, Hue RGBW downlights, Hue Bridge, or the ZigBee protocol?
Note that my lights are set to “power loss recovery” in the Hue app because I don’t want to be woken up by the house recovering from a power outage.
Snippet
- alias: Turn on light with controlled initial state
service: light.turn_on
target:
entity_id: light.hue_color_light_2_3
data:
rgb_color:
- 2
- 0
- 0
The full test config turns the light off, delays, tries to turn the light on with a chosen state, delays again, and then restores the light back to default settings.
Full Config
alias: Light Initial State Test
description: Light Initial State Test
trigger: []
condition: []
action:
- alias: Turn off the light
service: light.turn_off
data: {}
target:
entity_id: light.hue_color_light_2_3
- alias: Wait a set time
delay:
seconds: 2
- alias: Turn on light with controlled initial state
service: light.turn_on
target:
entity_id: light.hue_color_light_2_3
data:
rgb_color:
- 20
- 0
- 0
- alias: Wait a set time
delay:
seconds: 2
- alias: Restore light settings
service: light.turn_on
target:
entity_id: light.hue_color_light_2_3
data:
brightness_pct: 50
kelvin: 4000
mode: single