I’ve just been playing with this for a good half an hour trying to get my head around it, and I think we’ve found a scenario that was never expected and, as you say, the brightness of the light is reflected as the end value of the transition throughout it. (ie if the light is currently 20% and you set a transition of 4 hours to 100%, the brightness will show as 100% immediately and throughout the duration of the 4 hours).
So, create an automation that triggers on a test input_boolean, and then actions:
Light on at 20%
Delay 5 seconds
Light up to 100% with transition
Wait template for brightness 255
Light back to 20 with transition.
then create a new view on lovelace with your input boolean at the top and a light card beneath it. Then hit the boolean.
You’ll see that the light brightness goes on correctly, then 5 seconds later the brightness ‘jumps’ up and back down instantly. This is, of course, because it’s jumping to 100%, fulfilling the wait_template and executing the next step, which is to return it to 20%.
If you then remove the wait template and the final action and restart the experiment, you will see tha after the 5 seconds delay the brightness ‘slider’ on the light card jumps immediately to 100%, in spite of the real-life bulb slowly gaining brightness at the expected rate.
So yeah, delay is the only option.
I’m trying to decide if this is a ‘bug’ or not though. If you set a transition of 4 hours from 0% - 100%, I would expect the brightness to gradually creep up, not to jump to 100% at second 1. That is to say I would think the brightness attribute should reflect the current actual brightness of the light, not the intended end result in 4 hours time.
But yeah.
Thanks for the headache guys