Bieniu
(Maciek)
August 24, 2017, 8:35am
1
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
data:
transition: 10
and lightstrip turns off without transition (it takes about 1 second).
My configuration for Yeelight component:
platform: yeelight
devices:
192.168.2.220:
name: yeelight lightstrip sypialnia
transition: 500
save_on_change: false
use_music_mode: false
It’s hardware limitation or some issue with component/configuration?
sjee
August 24, 2017, 8:54am
2
I don’t think there is an issue as transition for Yeelight is specified in ms instead of seconds. https://home-assistant.io/components/light.yeelight/
Bieniu
(Maciek)
August 24, 2017, 9:13am
3
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.
sjee
August 24, 2017, 12:32pm
4
Missed that one… 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.
sjee
August 25, 2017, 8:45pm
5
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
data:
brightness: 1
transition: xx
- delay: '00:00:xx'
- service: light.turn_off
entity_id: your.light_entity
Bieniu
(Maciek)
August 25, 2017, 9:29pm
6
I have exactly the same code in automation