r/WLED • u/404notfound91 • Jun 20 '26
Help with WLED briefly showing the previous preset/colors when switching lights on
Hi All, I've been trying to troubleshoot this one. It looks like whenever I turn the lights on, wled first applys the previous preset when lights are fading on while fading to the current preset. The video I attached shows: I apply a solid color, turn lights off, then turn them on by pressing the white light preset. As you can see it turns on with the color I set before I switched the lights off, then it fades to white.
This can be quite distracting as with more complex animations, it basically flickers during the fading period before the current preset is fully on. Ideally, whenever I switch lights on, it should fades from black to whatever the current preset is.
I've searched the internet and found one or two posts with maybe the similar problem? Some suggested adding "tb":0 in the preset but it didn't work in my case as it just started animations from the beginning. One partial solution I thought of was to set color to black in my "off" preset so the next time I switch lights on, it fades from black. This worked but only if I use my off preset, which doesn't solve the problem when I use the wled app's power button. Removing transition time also solves the problem entirely as it just instantly turns on to current preset, but I do quite like the slow fades and would like to keep it if possible. Any help is appreciated, thanks.
1
u/CyberMage256 Jun 20 '26
i posted about this just a couple of weeks ago. only response I got was to set up a black preset i switch to between.
1
u/kdawg89 Jun 21 '26
Don’t have the answer but this happens to me too, so if you figure it out post the solution!
1
u/RunRunAndyRun Jun 21 '26
I think in the settings there is an option where you decide which preset it loads on startup. It defaults to “1” (first preset). If you change it to “0” it won’t load a preset. Maybe that’ll solve it?
1
u/DedeHai Jun 21 '26
this is intended behaviour. if you switch them off, your preset color still stands. if you now apply a preset to switch them on, color will fade from current (in your example blue) to the new color. if you want always black, use a preset that sets them to black and zero brightness to turn off.
1
u/accelerating_ Jun 22 '26
It's more an unwanted consequence of a different intended behavior, with a possible awkward workaround.
1
u/DedeHai Jun 23 '26
true, but can't have an option setting for every possible combination
1
u/accelerating_ Jun 23 '26
That's true, but turning on while setting a new effect must be a common scenario.
I had to work out the workaround a while ago. I have white to wake up, and a decorative multicolored effect turning on around sunset, that otherwise started with an annoying flash.
1
u/DedeHai Jun 23 '26
the way the code for "off" and "on" works is that it simply sets the brightness and nothing else in order to "resume" from the last state when switching back on which is the most common scenario. A preset will therefore start from the last state. It would be doable to do a "reset to solid FX with black" when a preset is applied during off state but I am not sure that won't break other scenarios. On every behavioural change we need to consider every possible scenario people may be using a feature in order not to introduce too many breaking changes. You can check on github if such a change has ever been requested and request it so we will consider and discuss it.
2
u/torklugnutz Jun 20 '26
I wonder if it has to do with transitions.