IKEA Tradfri Bulbs: simultaneous brightness + color transition workaround

Hey there! If you’ve got Tradfri bulbs with color support (or a bunch of them), you might’ve run into some glitches when trying to animate brightness and color (or color temperature) simultaneously. Well, these bulbs can’t do both at the same time. If you’ve ever tried switching between different scenes with Tradfri, you may know the pain.

This little script is designed to help with that by splitting brightness and color adjustment into separate actions, restoring the ability to use transitions.

How to use this:

  1. Install the blueprint,
  2. Instead of calling light.turn_on, call script.tradfri_wrapper (just replace the script’s name if you want to change it),
  3. Wrap all service call parameters inside a data payload like this:
# That's your usual call:
action: light.turn_on
target:
  entity_id: light.tradfri_e14
data:
  kelvin: 2700
  brightness_pct: 100
      
# Replace with:
action: script.tradfri_wrapper
data:
  target:
    entity_id: light.tradfri_e14
  data:
    kelvin: 2700
    brightness_pct: 100

If your call involves both brightness and color/temperature adjustment, it’ll be split into two calls, doubling the total transition time but preserving the transition itself.

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

Direct link: tradfri_wrapper.yaml · GitHub

1 Like

Your blueprint makes me regret returning the IKEA bulbs :slight_smile:.
I tried to implement something similar but eventually gave up.

Good work!

1 Like

My Tradfri Bulb seems to be not working with this blueprint. Probably i am misunderstanding

script.tradfri_wrapper (just replace the script’s name if you want to change it),

Do i Need to rename something into the Automation or anywhere Else?

Thanks for helping me!

Hey there.
Have you installed the blueprint and then created a script based on it?

Do you see your script in the Scripts tab (Settings → Automation & Scenes → Scripts)?

Thank you, it works quite well now!