Not sure if this is a bug (in deCONZ, HA) or if this is a configuration issue.
When I’m calling light.turn_on with a brightness, the light briefly flashes with the brightness from when it was turned off, and only then dims to the desired brightness.
- Turn light on at full brightness (255).
- Turn light off.
- Call light.turn_on with specific brightness (e.g. 64).
The light turns on with brightness 64.
Or dims from 0 to 64 if using a transition.
The light turns on with previous brightness from when it was turned off (255).
Then quickly sets brightness to 64.
Or dims from 255 to 64 if using a transition.
I find that flash unexpected and it looks weird.
When I tell the light “turn on with 64” I never wanna see 255.
Also, when I tell the light “turn on to 64 with a transition” I wanna see the transition from 0 (as it was off), and not from the previous brightness.
I feel like this should happen:
a) When I just turn the light on (or toggle it) without specifying a brightness, it should use the previous brightness.
b) When the light is off and I turn it on with a brightness (and transition), it should assume a previous brightness of 0 and then set the desired brightness (or transition to it from 0). No flash with the previous brightness!
c) When the light is already on and I call turn_on with a new brightness, it should just set the new brightness (or transition from it from the current brightness).
Not sure if this is a bug or working as intended.
If this is working as intended, then do you have a tip for achieving this behavior without too much effort in my configuration?
I could get half-way there by first setting the brightness to 0 before turning it off.
That would cover case b) and c) above. Would not cover a).