Ikea Tradfri: Transition and Moods

Just found out that transition don’t work :frowning: I have spent an hour or two tinkering with an automation that will gradually turn on my bedside lamp 5 minutes before my alarm goes off. Too bad it’s not gonna work. Hopefully the support will come in the future!

There is no nice transition between the mooood lightning but it works :smiley:
script.yaml

 'focus':
   alias: Focus
   sequence:
   - data:
       brightness: '254'
       color_temp: '249'
       entity_id: light.livingroom
     service: light.turn_on
 'everyday':
   alias: Everyday
   sequence:
   - data:
       brightness: '203'
       color_temp: '370'
       entity_id: light.livingroom
     service: light.turn_on
 'relax':
   alias: Relax
   sequence:
   - data:
       brightness: '25'
       color_temp: '458'
       entity_id: light.livingroom
     service: light.turn_on

or

focus:
  alias: Focus
  sequence:
  - data:
      brightness: '254'
      rgb_color:
      - '245'
      - '250'
      - '246'
      entity_id: light.livingroom
    service: light.turn_on
everyday:
  alias: Everyday
  sequence:
  - data:
      brightness: '203'
      rgb_color:
      - '241'
      - '224'
      - '181'
      entity_id: light.livingroom
    service: light.turn_on
relax:
  alias: Relax
  sequence:
  - data:
      brightness: '25'
      entity_id: light.livingroom
      rgb_color:
      - 239
      - 210
      - 117
    service: light.turn_on

worst markdown editor ever

I just wanted to throw this out there, but with 0.55 it looks like transition works on the Tradfri Bulbs. I was just playing with my Office light and got it to go from 100% to 0% brightness over 10 seconds.

Edit - Transitions are working but you have to multiply the transition by 10 (e.g. if you want a 1 minute transition then it would be transition: 600)

1 Like

do you set this up in various scripts, if you do mind sharing some of them :smiley:

you can look at the package I am working on for my alarm clock. Should work OK. https://github.com/mconway/homeassistant-config/blob/master/packages/alarm_clock.yaml

So, from what I saw on this topic, is it true that now, the transitions are working with IKEA Trådfri?
I’m trying to decide on buying IKEA Trådfri or Philips Hue, and this feature it’s important to me.

Transitions are working fine now with correct transition time in seconds.But there is one thing that annoys me with the ikea bulbs.
You cant transition them down to 0 %. They dim down to 10 % and then switch off.
This is propably a hardware problem of the ikea bulbs. They simply have no dimming setting in that area because you cant reach further dimming with the ikea remote, too.
If they use PWM dimming in their hardware this should be solveable with an update in the future if ikea will take notice of the problem.
My solution:
I have a decoration light with a 400 lm bulb. This has the same dimming problem but the lowest level of dimming is dark enough for me. The ceiling lamp is a 1000 lm one that switches on when the 400 lm one reaches its brightest state and vice versa.

Has there been any progress in setting color temp on light groups? I’m trying to script a set of bulbs in one light fixture and the only way I’ve managed to change the color temp of the bulbs is to address them one by one.

Also, transitions only seem to work on brightness and not color temp.

+1

Is there any update about color temperature and tradfri groups?

1 Like

Transitions for colour temperature have been added in the last update. But they only work for one of the attributes, e.g.:

  • If you set only the the temperature and a transition time, it works as expected and the temperature warps smoothly from on to another.
  • If you set brightness and temperature, the temperature will be set instantly, the brightness will adapt slowly as expected.

If someone found out something else, I would be happy to know :grin:

Indeed my request is about handling of color temperature in a “native” tradfri group: it is still not possible to set the temperature and the only way is to use the HA light groups, resulting in non simultaneous lights update.

Have made a separate request for simultaneous lights update in HA LIght groups as I have similar issue replicating Tradfri groups

I think that we have two problems when using the HA light groups instead of the native trådfri ones:

  1. The commands are sent individually to the trådfri gateway and then to each light of the group, resulting in non simultaneous lamp update. This is particularly noticeable if you have many lights in group. Somewhere in the chain the commands are queued and take a while to propagate. Maybe the ZigBee network?
  2. The light status update from the trådfri gateway to HA is slower because of point above, resulting in flickering of the HA group brightness slider and on/off button in the HA UI.

I might miss the point, but I don’t get how the delay would prevent the main issue that is no. 1.

I don’t notice a delay just the lights turning on in series one after the other . I have 6 lights in the group so adding a user variable decreasing delay of say 6ms, 5ms , 4ms between each light turning on may give the effect of the lights turning on together ?

I experience a random order plus I think that all the commands are sent at the same time, it is just a matter of how the network reacts. In other words, I don’t think a fixed delay per light would solve it.

I know it is a bit of a workaround, but for now, in my situation, I seemed to have found a solution to the transition of both color temp and brightness. Please note, I am planning of integrating a script to change the brightness and temp based on a Lux meter which I have outside, but with a very fast transition of first color and then a slow transition of brightness it does seem to work quite good. This was just a test setup, but maybe someone can use the following automation:

automations.yaml

- alias: TableTransition
  hide_entity: false
  trigger:
  - platform: state
    entity_id: input_boolean.transition_test
    from: 'off'
    to: 'on'
  action:
    - service: light.turn_on
      entity_id: light.table
      data:
       brightness: 12
       color_temp: 254
    - delay: 00:00:01
    - service: light.turn_on
      entity_id: light.table
      data:
       color_temp: 483
       transition: 2
    - delay: 00:00:03
    - service: light.turn_on
      entity_id: light.table
      data:
       brightness: 254
       transition: 2

Please note, I have set a initial color temp and brightness just as a test. If you don’t set anything but just switch the lamp/group on, Ikea tradfri switches on in the previous state. This makes switching between “moods” a bit easier.

The delay between the lights isn’t solved with above.

There are 2 types one that colour temp changes and one that’s dim only. Ones £7 and the others £12. I only buy color change type. Wensbury store.

Any news? My “Ikea groups” in the UI all just support Dimming / brightness but they don’t support color temp, not through the UI and not through scripts.

Link to a script I wrote to make the transition a bit less akward :slight_smile:

Not so many articles over the internet, about IKEA GU10 ZigBee bulbs in relation with HA, so let’s try to ask here.

Does these bulbs have some effects natively?

Example: I already have Xiaomi/Yeelight color bulbs (E27), which are natively showing several effects in Effects drop down of light entity in HA. Are there some effects for IKEA bulbs? In particular, I am interested in 804.392.28, because these are only IKEA ZigBee color bulbs available in my country.

Thx.