Heya,
I’m just onboarded to HA and really struggling with the transition function.
My objective is to create sunset effect [a smooth transition of both brightness and color_temp] for lights on tuya platform.
My automation is able to trigger, adjust the brightness, turns on the light but there’s no transition effect.
Although some of the lights are able to set to a transition effect in tuya app, such as turn on to 100% brightness across 10 sec.
I have tried with:
- Transition brightness in light.turn_on service
service: light.turn_on
data:
transition: 180
brightness: 33
target:
entity_id:
- light.2w_2
- light.1w_1
- Light fade script to set the brightness in case the light doesn’t support transition option.
[as the script shown here]
Input parameters can be found below
Log looks fine as attached below.
> 2023-02-10 15:04:53.104 INFO (MainThread) [homeassistant.components.script.light_fader] light_fader: Running script sequence
>
> 2023-02-10 15:04:53.115 INFO (MainThread) [homeassistant.components.script.light_fader] light_fader: Choose at step 1: choice 1: Running script sequence
>
> 2023-02-10 15:04:53.115 INFO (MainThread) [homeassistant.components.script.light_fader] light_fader: Choose at step 1: choice 1: Executing step call service
>
> 2023-02-10 15:04:53.132 INFO (MainThread) [homeassistant.components.script.light_fader] light_fader: Running script sequence
>
> 2023-02-10 15:04:53.135 INFO (MainThread) [homeassistant.components.script.light_fader] light_fader: Choose at step 1: choice 2: Running script sequence
>
> 2023-02-10 15:04:53.138 INFO (MainThread) [homeassistant.components.script.light_fader] light_fader: Choose at step 1: choice 2: Repeating sequence: Iteration 1
>
> 2023-02-10 15:04:53.139 INFO (MainThread) [homeassistant.components.script.light_fader] light_fader: Choose at step 1: choice 2: Repeat at step 1: Running script sequence
>
> 2023-02-10 15:04:53.139 INFO (MainThread) [homeassistant.components.script.light_fader] light_fader: Choose at step 1: choice 2: Repeat at step 1: Executing step call service
>
> 2023-02-10 15:04:54.025 INFO (MainThread) [homeassistant.components.script.light_fader] light_fader: Choose at step 1: choice 2: Repeat at step 1: Executing step delay 0:00:15
>
> 2023-02-10 15:05:09.029 INFO (MainThread) [homeassistant.components.script.light_fader] light_fader: Choose at step 1: choice 2: Repeating sequence: Iteration 2
>
> 2023-02-10 15:05:09.035 INFO (MainThread) [homeassistant.components.script.light_fader] light_fader: Choose at step 1: choice 2: Repeat at step 1: Running script sequence
>
> 2023-02-10 15:05:09.036 INFO (MainThread) [homeassistant.components.script.light_fader] light_fader: Choose at step 1: choice 2: Repeat at step 1: Executing step call service
>
> 2023-02-10 15:05:09.306 INFO (MainThread) [homeassistant.components.script.light_fader] light_fader: Choose at step 1: choice 2: Repeat at step 1: Executing step delay 0:00:15
After all the above attempts, the lights are able to move to the desired brightness instantly but ignoring the input transition period.
Any hints to solve it?
Thank you