Transition for turn_off service doesn't work for Yeelight Lightstrip

I have Yeelight Lightstrip YLDD01YL with firmware 1.4.1_34 and transition for light.turn_off service doesn’t work. I have in automation this service:

- service: light.turn_off
  entity_id: light.yeelight_lightstrip_sypialnia
    transition: 10

and lightstrip turns off without transition (it takes about 1 second).
My configuration for Yeelight component:

platform: yeelight
    name: yeelight lightstrip sypialnia
    transition: 500
    save_on_change: false
    use_music_mode: false

It’s hardware limitation or some issue with component/configuration?

I don’t think there is an issue as transition for Yeelight is specified in ms instead of seconds.

Yes, in configuration of the component default transition is in ms. But in service turn_on/turn_off transition is in seconds.


For service turn_on with transition: 10 lightstrip turns on about 10 seconds. Only with turn_off there is a problem.

Missed that one… :grinning: I see several questions about it in the Yeelight topic @lambtho suggested to not use turn_off but set the brightness to 0 could be a good workaround.

I looked into it and it seems either transition on light_off action is not yet supported in HA for Yeelight or it is a bug. Transition brightness to 0 doesn’t work but this workaround does the trick I think;

    - service: light.turn_on
      entity_id: your.light_entity
        brightness: 1
        transition: xx
    - delay: '00:00:xx'
    - service: light.turn_off
      entity_id: your.light_entity

I have exactly the same code in automation :wink: