Hep by stair lighting


i would like to use my ws2812b with wled for stair lighting, i have 9 stages and defined them as segments.

I would like to have it so that the first segment fades in continuously and then the next segment, etc.

is there something pre-made?
I read about the days but lost the link or what effect can you use s.besten?


Take a look at the wipe effect. If you add a reset-timebase command (“tb”:0) to the start of a preset for that effect, it will always start at the beginning. You then just need to set the effect speed to what you want. Put it in a playlist that has the wipe for x seconds to match and then you can switch to a solid or off preset.


Thank you for your answer.

However, I am really a newbie when it comes to wled, I tried to implement what you told me. However, I’m stuck at the point with (“tb”:0).

just to explain again what i would like because i didn’t do it very well, the wipe effect should only stop after all leds of the segment are on and then the effect should continue in the next segment.
Quasi a wipe effect across all segments only without the LEDs fading out.

Maybe you can help me with something else, that would be really great and I would be very grateful.

So I did the following, I marked all my segments, then selected the “wipe” effect, then I’m under presents and saved it, now I’ve saved it in the settings that it always uses the present with ID16 (the id of my created presents) loads.

yes and now I have to insert a command somewhere?
I have this as a result under present

{"on":true,"bri":255,"transition":7,"mainseg":0,"seg":[{"id":0,"start":0,"stop":16,"grp":1,"spc":0,"of":0,"on":false,"frz":false,"bri":128,"cct":127,"n":"stufe 1","col":[[235,241,255],[0,0,0],[0,0,0]],"fx":3,"sx":197,"ix":128,"pal":0,"sel":true,"rev":false,"mi":false},{"id":1,"start":16,"stop":32,"grp":1,"spc":0,"of":0,"on":false,"frz":false,"bri":128,"cct":127,"n":"stufe 2","col":[[235,241,255],[0,0,0],[0,0,0]],"fx":3,"sx":197,"ix":128,"pal":0,"sel":true,"rev":false,"mi":false},{"id":2,"start":32,"stop":48,"grp":1,"spc":0,"of":0,"on":false,"frz":false,"bri":128,"cct":127,"n":"stufe 3","col":[[235,241,255],[0,0,0],[0,0,0]],"fx":3,"sx":197,"ix":128,"pal":0,"sel":true,"rev":false,"mi":false},{"id":3,"start":48,"stop":63,"grp":1,"spc":0,"of":0,"on":false,"frz":false,"bri":128,"cct":127,"n":"stufe 4","col":[[235,241,255],[0,0,0],[0,0,0]],"fx":3,"sx":197,"ix":128,"pal":0,"sel":true,"rev":false,"mi":false},{"id":4,"start":64,"stop":79,"grp":1,"spc":0,"of":0,"on":false,"frz":false,"bri":128,"cct":127,"n":"stufe 5","col":[[235,241,255],[0,0,0],[0,0,0]],"fx":3,"sx":197,"ix":128,"pal":0,"sel":true,"rev":false,"mi":false},{"id":5,"start":80,"stop":95,"grp":1,"spc":0,"of":0,"on":false,"frz":false,"bri":128,"cct":127,"n":"stufe 6","col":[[235,241,255],[0,0,0],[0,0,0]],"fx":3,"sx":197,"ix":128,"pal":0,"sel":true,"rev":false,"mi":false},{"id":6,"start":96,"stop":111,"grp":1,"spc":0,"of":0,"on":false,"frz":false,"bri":128,"cct":127,"n":"stufe 7","col":[[235,241,255],[0,0,0],[0,0,0]],"fx":3,"sx":197,"ix":128,"pal":0,"sel":true,"rev":false,"mi":false},{"id":7,"start":112,"stop":127,"grp":1,"spc":0,"of":0,"on":false,"frz":false,"bri":255,"cct":127,"n":"stufe 8","col":[[235,241,255],[0,0,0],[0,0,0]],"fx":3,"sx":197,"ix":128,"pal":0,"sel":true,"rev":false,"mi":false},{"id":8,"start":128,"stop":144,"grp":1,"spc":0,"of":0,"on":false,"frz":false,"bri":255,"cct":127,"n":"stufe 9","col":[[235,241,255],[0,0,0],[0,0,0]],"fx":3,"sx":197,"ix":128,"pal":0,"sel":true,"rev":false,"mi":false},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0}]}


should help :slight_smile:


okay, i added the “tb:0”
now it looks a little strange, i think something is wrong

above the first staircase is the first segment, below it is the second, etc
I still have to invert every second stage because the running direction of the strip is different, but it still does something different

I think the first problem is that the wipe effect continues to go away, and the second is that it should start at the top of the first stage with the wipe effect, then the first stage should stay on, then the second start and wipe then stay on, etc

the actuall command

{"on":true,"tb":0,"bri":255,"transition":7,"mainseg":0,"seg":[{"id":0,"start":0,"stop":16,"grp":1,"spc":0,"of":0,"on":false,"frz":false,"bri":128,"cct":127,"n":"stufe 1","col":[[235,241,255],[0,0,0],[0,0,0]],"fx":3,"sx":197,"ix":128,"pal":0,"sel":true,"rev":false,"mi":false},{"id":1,"start":16,"stop":32,"grp":1,"spc":0,"of":0,"on":false,"frz":false,"bri":128,"cct":127,"n":"stufe 2","col":[[235,241,255],[0,0,0],[0,0,0]],"fx":3,"sx":197,"ix":128,"pal":0,"sel":true,"rev":true,"mi":false},{"id":2,"start":32,"stop":48,"grp":1,"spc":0,"of":0,"on":false,"frz":false,"bri":128,"cct":127,"n":"stufe 3","col":[[235,241,255],[0,0,0],[0,0,0]],"fx":3,"sx":197,"ix":128,"pal":0,"sel":true,"rev":false,"mi":false},{"id":3,"start":48,"stop":63,"grp":1,"spc":0,"of":0,"on":false,"frz":false,"bri":128,"cct":127,"n":"stufe 4","col":[[235,241,255],[0,0,0],[0,0,0]],"fx":3,"sx":197,"ix":128,"pal":0,"sel":true,"rev":true,"mi":false},{"id":4,"start":64,"stop":79,"grp":1,"spc":0,"of":0,"on":false,"frz":false,"bri":128,"cct":127,"n":"stufe 5","col":[[235,241,255],[0,0,0],[0,0,0]],"fx":3,"sx":197,"ix":128,"pal":0,"sel":true,"rev":false,"mi":false},{"id":5,"start":80,"stop":95,"grp":1,"spc":0,"of":0,"on":false,"frz":false,"bri":128,"cct":127,"n":"stufe 6","col":[[235,241,255],[0,0,0],[0,0,0]],"fx":3,"sx":197,"ix":128,"pal":0,"sel":true,"rev":true,"mi":false},{"id":6,"start":96,"stop":111,"grp":1,"spc":0,"of":0,"on":false,"frz":false,"bri":128,"cct":127,"n":"stufe 7","col":[[235,241,255],[0,0,0],[0,0,0]],"fx":3,"sx":197,"ix":128,"pal":0,"sel":true,"rev":false,"mi":false},{"id":7,"start":112,"stop":127,"grp":1,"spc":0,"of":0,"on":false,"frz":false,"bri":128,"cct":127,"n":"stufe 8","col":[[235,241,255],[0,0,0],[0,0,0]],"fx":3,"sx":197,"ix":128,"pal":0,"sel":true,"rev":true,"mi":false},{"id":8,"start":128,"stop":144,"grp":1,"spc":0,"of":0,"on":false,"frz":false,"bri":128,"cct":127,"n":"stufe 9","col":[[235,241,255],[0,0,0],[0,0,0]],"fx":3,"sx":197,"ix":128,"pal":0,"sel":true,"rev":false,"mi":false},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0}]}

or should i only have 1 segment for all leds?

okay of course for the wipe effekt i need only 1 segment with all leds :smiling_face:

now i have this, the effect works from the first step to the last step, but the effect doesnt stop after its done to the complete stripe, i read that i now must make a playlist that he changes to solid after the effect?

Sadly I don’t have any stairs to test on. But It depends on what exactly you want it to do. It looks like the way you have the steps wired the direction is a zigzag left to right right to left and so on. So every other segment needs to be reversed if you want the effect to all go from left to right or right to left.

That tb:0 starts the effect from the zero point, otherwise the effect could start at a random location.

1 Like

Yes a playlist would be a good way to do that. You would need a solid preset.

you are right, i wired them zigzag :laughing:

okay, now it works.
now i mit look how i can select the playlist in Homeassistant, and how to set reverse direction with the command over Homeassistant because when i come from the 2nd floor i want it in the other direction.

okay with this code i can select the playlist in Homeassistant and it works well.

service: select.select_option
  entity_id: select.wled_playlist
  option: "wipe_effect_playlist"

** option is the NAME of the Playlist not the ID.

but i now had a problem by reverting the thing, when i come from the 1st floor reverting the stripe is right, but when i came from the 2nd floor the reverting must be off, has someone perhaps a idea how i can add this as option in the above code?


it gives a entity in HA where the reverse is activated or not.
i now make easy a choose condition, when i come from the first floor i turn the switch ON, when from second floor i turn it OFF.

- choose:
      - conditions:
          - condition: state
            entity_id: switch.wled_reverse
            state: 'off'
          - service: switch.turn_on
            data: {}
              entity_id: switch.wled_reverse
          - delay:
              hours: 0
              minutes: 0
              seconds: 1
              milliseconds: 0