# Creating a sequence

**URL:** <https://wled.discourse.group/t/creating-a-sequence/11348>\
**Category:** Questions\
**Created:** [March 14, 2024, 7:10am UTC](https://wled.discourse.group/t/creating-a-sequence/11348 "2024-03-14T07:10:49Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![pandles1](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@pandles1](https://wled.discourse.group/u/pandles1)\
**Post date:** [March 14, 2024, 7:10am UTC](https://wled.discourse.group/t/creating-a-sequence/11348/1 "2024-03-14T07:10:49Z")

</div>

Hi, I’m new to wled so I’m hoping for some help please, I’m trying to create a sequence where the lights wipe up my stairs twice then go off, I can get them to go up the stairs ok but when they go off I get a flash of all the lights, any idea what I’m doing wrong, any help on this would be appreciated, as I just can’t figure out.  
Thanks

---

<div class="post-metadata">

**Author:** ![divsys](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@divsys](https://wled.discourse.group/u/divsys)\
**Post date:** [March 14, 2024, 12:15pm UTC](https://wled.discourse.group/t/creating-a-sequence/11348/2 "2024-03-14T12:15:23Z")

</div>

We’ll need more information about your setup and the way you’re triggering the effect.  
Are you using a usermod?

---

<div class="post-metadata">

**Author:** ![pandles1](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@pandles1](https://wled.discourse.group/u/pandles1)\
**Post date:** [March 14, 2024, 12:58pm UTC](https://wled.discourse.group/t/creating-a-sequence/11348/3 "2024-03-14T12:58:02Z")

</div>

I’m using home assistant with a motion sensor  
And the Wled app/website to create the sequence

---

<div class="post-metadata">

**Author:** ![divsys](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@divsys](https://wled.discourse.group/u/divsys)\
**Post date:** [March 14, 2024, 4:55pm UTC](https://wled.discourse.group/t/creating-a-sequence/11348/4 "2024-03-14T16:55:17Z")

</div>

Have you tried creating a playlist (essentially a list of multiple presets) that plays the “Wipe” effect twice in a row?  
You may need to include a “tb”:0 entry in the wipe effect to make sure it starts at the beginning of the effect each time.  
You should be able to test this manually from the Web/GUI before you link in Home assistant.

---

<div class="post-metadata">

**Author:** ![pandles1](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@pandles1](https://wled.discourse.group/u/pandles1)\
**Post date:** [March 15, 2024, 6:47am UTC](https://wled.discourse.group/t/creating-a-sequence/11348/5 "2024-03-15T06:47:25Z")

</div>

The wipe effect starts ok, it does the wipe up twice but just flashes at the end of the 2nd wipe then goes off, I’m not sure how to edit the coded part in wild to add anything in there it won’t let me post a video on here…

---

<div class="post-metadata">

**Author:** ![divsys](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@divsys](https://wled.discourse.group/u/divsys)\
**Post date:** [March 15, 2024, 7:51am UTC](https://wled.discourse.group/t/creating-a-sequence/11348/6 "2024-03-15T07:51:53Z")

</div>

Video is not likely to be helpful.  
A capture of the preset API as well as the playlist API is more useful.

---

<div class="post-metadata">

**Author:** ![Magig\_Wled](https://avatars.discourse-cdn.com/v4/letter/m/db5fbb/32.png) [@Magig\_Wled](https://wled.discourse.group/u/Magig_Wled)\
**Post date:** [March 15, 2024, 11:25am UTC](https://wled.discourse.group/t/creating-a-sequence/11348/7 "2024-03-15T11:25:49Z")

</div>

a small image will also be helpful to see what you are on  
No one here got a wizard Ball to see your setup

You say Wipe ends after 2 runs are you on a playlist

---

<div class="post-metadata">

**Author:** ![pandles1](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@pandles1](https://wled.discourse.group/u/pandles1)\
**Post date:** [March 16, 2024, 7:44am UTC](https://wled.discourse.group/t/creating-a-sequence/11348/9 "2024-03-16T07:44:00Z")

</div>

Sorry for the delay,  
Is this what you need to see

{“on”:true,“bri”:57,“transition”:7,“mainseg”:0,“seg”:[{“id”:0,“start”:0,“stop”:227,“grp”:1,“spc”:0,“of”:0,“on”:true,“frz”:false,“bri”:255,“cct”:127,“set”:0,“col”:[[203,219,255],[0,0,0],[0,0,0]],“fx”:3,“sx”:163,“ix”:20,“pal”:0,“c1”:128,“c2”:128,“c3”:16,“sel”:true,“rev”:false,“mi”:false,“o1”:false,“o2”:false,“o3”:false,“si”:0,“m12”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0}]

---

<div class="post-metadata">

**Author:** ![pandles1](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@pandles1](https://wled.discourse.group/u/pandles1)\
**Post date:** [March 16, 2024, 7:44am UTC](https://wled.discourse.group/t/creating-a-sequence/11348/10 "2024-03-16T07:44:44Z")

</div>

Sorry I’m new to this, and find it confusing at the moment

---

<div class="post-metadata">

**Author:** ![Magig\_Wled](https://avatars.discourse-cdn.com/v4/letter/m/db5fbb/32.png) [@Magig\_Wled](https://wled.discourse.group/u/Magig_Wled)\
**Post date:** [March 16, 2024, 10:46am UTC](https://wled.discourse.group/t/creating-a-sequence/11348/11 "2024-03-16T10:46:01Z")

</div>

i think you need to delete your sequence and or playlist  
HIT config → LED setup and SAVE so it gets all CLEANED  
then start with a new sequence as you say Wipe

if there is nothing else on the Board then this Wioe then  
I Personly woudt reinstall the WLED to it to get rid of all messes

---

<div class="post-metadata">

**Author:** ![pandles1](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@pandles1](https://wled.discourse.group/u/pandles1)\
**Post date:** [March 16, 2024, 11:23am UTC](https://wled.discourse.group/t/creating-a-sequence/11348/12 "2024-03-16T11:23:40Z")

</div>

I did start from scratch in the beginning but what ever I try I can’t stop the flash at the end of the 2nd wipe up sequence, I can not figure out what I’ve done wrong…

---

<div class="post-metadata">

**Author:** ![Jinx](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Jinx](https://wled.discourse.group/u/Jinx)\
**Post date:** [March 16, 2024, 7:03pm UTC](https://wled.discourse.group/t/creating-a-sequence/11348/13 "2024-03-16T19:03:00Z")

</div>

What are you using for your Off preset?

I just made a preset with wipe  
and another off preset with T=0 for the code

Created a playlist with the first effect being the wipe preset and the end preset being the off preset, adjusted the desired time for the duration and it works fine w/out any flashes.

![wipe2](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/5/55f6de0224c4f675e1901db4e2d516d0b6f294d4.png)

![off](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/8/8dcc4af097331ce5f9fd334b4f893c31a71d8334.png)

 ![wipe](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/0/0d65a69bc7bd0bab86c50078c0fcd016d7b8c803.png)

---

<div class="post-metadata">

**Author:** ![pandles1](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@pandles1](https://wled.discourse.group/u/pandles1)\
**Post date:** [March 16, 2024, 8:40pm UTC](https://wled.discourse.group/t/creating-a-sequence/11348/14 "2024-03-16T20:40:30Z")

</div>

I’m getting a json error now, any chance you can add the playlist you created here so I can copy and paste it into mine please

---

<div class="post-metadata">

**Author:** ![Jinx](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Jinx](https://wled.discourse.group/u/Jinx)\
**Post date:** [March 17, 2024, 12:35am UTC](https://wled.discourse.group/t/creating-a-sequence/11348/15 "2024-03-17T00:35:57Z")

</div>

If you are talking about a JSON error with your wipe ‘preset’ and if that preset is as you posted above it looks to be missing the last squiggly brace at the end }

This is a working version of your preset with “tb”:0 added to it to make sure it always starts the effect at the beginning:

```auto
{"on":true,"bri":57,"tb":0,"transition":7,"mainseg":0,"seg":[{"id":0,"start":0,"stop":227,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":255,"cct":127,"set":0,"col":[[203,219,255],[0,0,0],[0,0,0]],"fx":3,"sx":163,"ix":20,"pal":0,"c1":128,"c2":128,"c3":16,"sel":true,"rev":false,"mi":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0}]}

```

Here is my ‘playlist’ I don’t think this is going to help you as it is referencing my wipe preset (3) and my Off preset (4).

```auto
{"playlist":{"ps":[3],"dur":[100],"transition":[0],"repeat":1,"end":4,"r":false},"on":true}

```

---

<div class="post-metadata">

**Author:** ![pandles1](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@pandles1](https://wled.discourse.group/u/pandles1)\
**Post date:** [March 17, 2024, 8:11pm UTC](https://wled.discourse.group/t/creating-a-sequence/11348/16 "2024-03-17T20:11:52Z")

</div>

Ok thanks I’ll try it out, I’ve another problem please seee the attached image I can’t get this off of the screen any ideas how I can get rid of it

 ![IMG_0123](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/e/eabb98598c2ffa70418f17bc18bf960e9750a004.jpeg)

---

<div class="post-metadata">

**Author:** ![Jinx](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Jinx](https://wled.discourse.group/u/Jinx)\
**Post date:** [March 17, 2024, 10:33pm UTC](https://wled.discourse.group/t/creating-a-sequence/11348/17 "2024-03-17T22:33:24Z")

</div>

Ah the old corrupted presets issue. In a browser navigate to [http://yourWLEDdeviceIP/edit](http://yourWLEDdeviceIP/edit) and delete your presets.json file. This will delete all of your presets and a new file will be created when you save a new preset. Sometimes there are issues when editing presets.

---

<div class="post-metadata">

**Author:** ![pandles1](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@pandles1](https://wled.discourse.group/u/pandles1)\
**Post date:** [March 17, 2024, 11:10pm UTC](https://wled.discourse.group/t/creating-a-sequence/11348/18 "2024-03-17T23:10:29Z")

</div>

Your a life saver, thank you corrupt presets have gone now, I’ve copied and pasted the file you sent me earlier but it keeps running continuously, I’m trying to get it to wipe up twice then turn off.

Thanks again

---

<div class="post-metadata">

**Author:** ![Jinx](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Jinx](https://wled.discourse.group/u/Jinx)\
**Post date:** [March 18, 2024, 2:20am UTC](https://wled.discourse.group/t/creating-a-sequence/11348/19 "2024-03-18T02:20:13Z")

</div>

You have to create a playlist (like my picture).  
Set your wipe preset as the item in the playlist and adjust the duration time so that it wipes 2x  
Set repeat to 1  
Set the End preset to your off preset.

![](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/c/c20cdcc80f511da832464e9135d3fddf5b9cc640.png)
