How to make an progress-bar effekt

Hello everyone,

I’m new to WLED and I’m trying to implement a feature that I haven’t been able to solve yet.
The hardware setup is already working fine – the LEDs light up as expected. I’m currently using version v0.15.1.

What I want to achieve

  • I have a single LED strip which I divided into two segments. Both segments should be independently controllable (this part already works).

  • When turning on a segment, I don’t want all LEDs to light up instantly. Instead, they should turn on LED by LED like a progress bar (similar to those hallway LED strips you can see in videos).

  • Each segment should be switchable using an IR sensor.

  • Brightness should adapt automatically based on time of day.

  • The color should remain fixed, as I set it manually.

My problem

I couldn’t find any effect that behaves like a “progress bar,” where LEDs turn on one after another and then stay on.
To work around this, I created two presets (“Wipe” and “Solid”) and combined them in a playlist.

However, the issue is that the Wipe preset does not always start from LED 0/1 – instead, it seems to start from a random position (I assume this is because of an internal timer or counter). That makes it unusable for my case, since I need it to always start from the beginning.

How would you solve this requirement?

Additional issue

My configured segments disappear after a power cycle.
Is this a known bug, or am I missing something in the configuration?

My presets

Progress effect (Segment 1):

{"on":true,"mainseg":0,"seg":[{"id":0,"grp":1,"spc":0,"of":0,"on":true,"set":1,"fx":3,"sx":240,"pal":0,"sel":true,"o1":false,"o2":false,"o3":false,"tb":0}]}

Always-on (Segment 1):

{"on":true,"mainseg":0,"seg":[{"id":0,"grp":1,"spc":0,"of":0,"on":true,"set":1,"fx":0,"sel":true,"o1":false,"o2":false,"o3":false}]}

Thanks a lot for your help and ideas!

Segments are saved in presets. To retain more than 1 segment when you repower the controller you would have to save/load a preset.

To get your wipe preset to start at the beginning you need to use the Time Base command. You add “tb”:0 to your api like:

{“on”:true,”tb”:0,“mainseg”:0,“seg”:[{“id”:0,“grp”:1,“spc”:0,“of”:0,“on”:true,“set”:1,“fx”:3,“sx”:240,“pal”:0,“sel”:true,“o1”:false,“o2”:false,“o3”:false,“tb”:0}]}

You can use transition styles (available in 0.15 and improved in 0.16). This will give you desired On/Off transition.

As for “progress” effect: There is Percent effect that will approximate what you want. It is not dynamic in the sense of your requirements, though.

1 Like

Thx @Jinx and @blazoncek

On the individual topics:

I wasn’t aware of that (and I still don’t understand why it’s like that), but once you know it, it works. Thanks.

I had this option in the segment. It didn’t work there. If I add it at the front, it works. Thanks.

Unfortunately, I don’t know exactly what you’re referring to here. I couldn’t find anything about it in the documentation or the UI. Is it called something else? Thanks.

That should be exactly what I was looking for. Thanks. :+1:
The speed can’t be adjusted via the UI, but at least with the “sx” parameter.
What do you mean by “It is not dynamic in the sense of your requirements”?

Thanks.

Introduced in 0.15 were transitions between effects (transitions between colors was there since 0.13). You enable transitions by having transition time > 0.

There are several transitions available but default one is Fade.

Transitions may be called “Blending style” in 0.15.

Do you mean the transition in the playlist?
(With the new effect I don’t need that anymore :slight_smile:)

What do you mean by “It is not dynamic in the sense of your requirements”?

Thx

No.

It will not behave dynamically on its own.