Bug in IKEA Tradfri integration

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?

Sounds similar to how the Ikea bulbs work via DeConz / Zigbee.

They don’t like receiving a brightness & a colour temperature command at the same time, or one after the other.

Your delay allows the first command to complete, so the bulb is ready to receive the next one.

More of an Ikea issue than a bug in the HA code I reckon.

2 Likes

Would be strange if this is a Ikea issue. With my configuration this worked flawless for almost 2 years and since HA 0.103 (or 104, I do not know exactly) this issue started to occur.