I think I found a bug in the IKEA Tradfri integration. I have a GU10 light which support white temperature.
If I switch on the light with the following automation, the color_temp value will not change to the corresponding value:
- id: ''
alias: Turn on Woonkamer
description: ''
trigger:
- event: sunset
offset: -00:15:00
platform: sun
action:
- data:
brightness_pct: 40
color_temp: 350
entity_id: light.spotje_tv
service: light.turn_on
However, when I build in a delay it works just fine:
- id: ''
alias: Turn on Woonkamer
description: ''
trigger:
- event: sunset
offset: -00:15:00
platform: sun
action:
- device_id: d12e42e4624342
domain: light
entity_id: light.spotje_tv
type: turn_on
- delay: 00:00:01
- data:
brightness_pct: 40
color_temp: 350
entity_id: light.spotje_tv
service: light.turn_on
I think this is a bug where color_temp isn’t set when you switch on a light with the service light.turn_on.
Or am I incorrect?