Tradfri Transition

Hi
i’m just starting with HASS a few days before and added the IKEA Gateway and one Light.
Now i run in the same problem, for me it looks like the “transition” does’t work. My script only switch the light on…but without any fading.
Is this something that will be fixed in a new release or did someone has a workaround for a newbie?
(running the 0.46.0 on docker)

As of version 0.55 release on 7 okt 2017 this is possible:

image

note that the transition time is in 1/10th of a second.

4 Likes

That’s so awesome, didn’t notice before! Thanks!

Does the transition for Tradfri work when turning off the bulbs? I can get the transition to work when turning on, but no luck when turning off

You can turn them on with brightness 0.

But then it stays on in the UI with brightness 0

Could you use a delay with the same time as the transition to turn it off once the transition is done?

For me it turns off in the UI after turn on with brightness 0.
EDIT: Sorry, but only if it was on before.

Has anyone added Tradfri bulbs to a Hue hub? Does the bulb behave just like a Hue as far as fading on/off and transitions working? I like the price of the Tradfri but I like how the Hue bulbs behave better.

Just a short question as I am considering buying a Tradfri set for a wake up light setup:

Do I get this right, transition (From OFF to ON) are working? So I could create a wake up light with it using a transition of ~ 15 Minutes? Does it start at 0% / very dark? I have had troubles getting my Yeelight to work appropriately, so I am considering to using the IKEA Tradfri series.

Thanks!

My experience is that Tradfri are not very dim even at the lowest setting… I was going to investigate the Hue White Ambiance, who seem better for that job.

I went ahead and set up a couple of the Tradfri bulbs on my Hue hub. The results were disappointing. Fade from ‘off’ to ‘on’ and vice-versa is not at all smooth like an authentic Hue. It snaps on to a fairly bright state, and snaps off well before appearing dim and with very little ‘fade’.

As @qrioniclabs mentioned, the dimmest setting is annoyingly bright and isn’t at all suitable for a low-light mood lamp. The bulbs are also physically much larger than any of the Hue or Lightify bulbs I own. This prevented me from using them in my sweet hanging lamp that I bought them for.

Ultimately, I think I’ll have to bite the bullet and buy more Hue as I haven’t been able to find anything else that satisfies my desire for lighting perfection. It simply is not the case yet in 2018 that we can mix/match zigbee bulbs with satisfying results as we were led to believe. Perhaps zigbee 3.0 will help…

2 Likes

Hi - Dragging up this old post but wondering if ‘transition’ is still working for Tradfri bulbs. I have a simple YAML code to automate a wake up light but I doesnt seem to work ? If I manually trigger the automation by clicking ‘Execute’ it works fine. If I just leave the automation to run, the light switches on at very low level, but doesnt brighten up ?

Cant work out why it works when manually triggered but not when automated ?

Could ‘Adaptive lighting’ be preventing the transition from working ? I have the brightness component of adaptive lighting switched off but wonder if it is somehow preventing transition from working ?

- alias: sensor.galo_pir turn_on light.hall_light motion_detected
  trigger:
    platform: state
    entity_id: sensor.hall_pir
    to: 'ON'
  condition:
    condition: state
    entity_id: sun.sun
    state: below_horizon
  action:
    service: homeassistant.turn_on
    entity_id: light.hall_light
    data:
      transition: 4
      brightness: 180

1 Like

Here’s a little script you can use instead of light.turn_on. It uses half of the given time to first transition the brightness, afterwards it changes the color_temp in half of the given time:

alias: Tradfri_Transition
fields:
  entity_id:
    description: Name(s) of the IKEA Tradfri entities
    example: light.panel
  transition:
    description: >-
      The time in seconds it should take until the desired state is fully
      reached
    example: 60
  brightness:
    description: The desired brightness between 0..255
    example: 142
  color_temp:
    description: The desired color temperature in mireds
    example: 311
sequence:
  - service: light.turn_on
    data_template:
      entity_id: '{{ entity_id }}'
      brightness: '{{ brightness | int }}'
      transition: '{{ transition | int / 2 }}'
  - delay: '00:00:{{ transition | int / 2 + 1}}'
  - service: light.turn_on
    data_template:
      entity_id: '{{ entity_id }}'
      color_temp: '{{ color_temp | int }}'
      transition: '{{ transition | int / 2 }}'
mode: single

Here’s a sample call:

service: script.tradfri_transition
data:
  entity_id: light.panel
  color_temp: 436
  transition: 60
  brightness: 26
entity_id: light.panel

So whenever you switch on one or more Tradfri lights just use the script as service instead of light.turn_on.

2 Likes

I’m having issues with Tradfri and transitions as well. I have tried activating scenes with a transition in the automation. I have tried putting the transition directly into scripts, and now I put the transition back in an automation, but without using scenes. Nothing seems to work.

By separating the temperature and brightness it works better. Let’s say you want the bulb to slowly dim and get warmer. Try making the bulb first transition one of the two attributes, and then the other.

Still, it’s not reliable at all for me. I have two Tradfri bulbs. Sometimes only one bulb transitions, sometimes none of them do. Sometimes one of them transitions to a warmer state but does not dim, the other dims but does not get warmer. The total randomness of it made me suspect noise was the issue, as i had the Conbee II connected directly into the pi. I added an extension cord without success.

I’m all out of ideas really.

EDIT: Just activating bulbs and scenes without transition work though. So Transition (or maybe automation) seems to be the issue.

1 Like

Some of my tradfri bulbs have issue with not beeing able to use transitions and set wanted brightness, the way i made it work is to first send a “turn_on” to the problematic bulb first, and then the scene with the transition.
(scene includes that same problematic bulb)
It seem that some of the bulbs needs to be turned on before it can recive and understand the transition and brightness data.

Automation

    action:
      - service: light.turn_on
        entity_id: light.living_room_corner_hallway
      - service: scene.turn_on
        data:
          entity_id: scene.pre_watch_movie
          transition: 2.5

Scene

- id: c6298787-c935-497b-83b3-1fa5ccfc7b65
  name: Watch Movie
  entities:
    light.hallway_mirror:
      state: 'off'
    light.hallway_wardrobe:
      state: 'on'
    light.living_room_window:
      state: 'on'
      brightness: 29
    light.living_room_corner_hallway:
      state: 'on'
      brightness: 35

Thanks for this. Using homeassistant.turn_on rather than light.turn_on seems to be working :+1:

1 Like

What should I do if I am trying to get the light to dim up on a curve?