Playlist at Boot Configuration

Hi there,

I try to get my user modded WLED on an ESP32 Dev Kit working.

I wrote a one button control usermod, that basically just changes the bri.
My problem is the boot sequence of the wled as I cut off power completely by a mosfet.
The usermod.cpp does nothing during startup.

For the startup sequence I use three presets and a playlist that combines them.

ALLOFF

{"on":true,"bri":1,"transition":0,"mainseg":0,"seg":[{"id":0,"start":0,"stop":5,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":1,"cct":127,"set":0,"col":[[255,255,255,255],[0,0,0,0],[0,0,0,0]],"fx":0,"sx":128,"ix":128,"pal":0,"c1":128,"c2":128,"c3":16,"sel":true,"rev":false,"mi":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":0},{"id":1,"start":5,"stop":10,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":1,"cct":127,"set":0,"col":[[255,255,255,255],[0,0,0,0],[0,0,0,0]],"fx":0,"sx":128,"ix":128,"pal":0,"c1":128,"c2":128,"c3":16,"sel":true,"rev":false,"mi":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":0}]}

DIMM1

{"on":true,"bri":130,"transition":10,"mainseg":0,"seg":[{"id":0,"start":0,"stop":5,"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,0,0,0]],"fx":0,"sx":128,"ix":128,"pal":0,"c1":128,"c2":128,"c3":16,"sel":true,"rev":false,"mi":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":0}]}

DIMM2

{"on":true,"bri":130,"transition":10,"mainseg":0,"seg":[{"id":1,"start":5,"stop":10,"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,0,0,0]],"fx":0,"sx":128,"ix":128,"pal":0,"c1":128,"c2":128,"c3":16,"sel":true,"rev":false,"mi":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":0}]}

Playlist

{"playlist":{"ps":[4,2,3],"dur":[2,12,22],"transition":[0,10,10],"repeat":1,"end":0,"r":false},"on":true}

In LED Preferences:
image

Thats the current status.
When I power up the ESP the LEDs wont light up. I know that the usermod is working as I have programmed a status LED thats blinking.
When I push the button what sets the bri to 125, the animation of the playlist starts and everything is working fine.

Befor (I tested a few things with the playlist and LED settings) I got it to work so that the animation would start automatically on bootup, but with an initial flash (all leds to 255) of the leds before the dimming began (from 0 to 125)…

I cant figure out what configuration in the presets/playlist or LED preferences is wrong.
Can somewone give me a hint?

Marcel

you need to set the preset at boot to 2

why dont you just lock in once and set this usermod as standard and save this
so the playlist ps does get the boot flag

Why do I need to set preset at boot to 2? That would be just preset DIMM1.
I want to load the “playlist” (that contains "ALLOFF, DIMM1, DIMM2) at boot. So that all three presets will be played once after each other.
ALLOFF should turn off all leds, DIMM1 dimms up the first segment and DIMM2 dimms up the second segment.

What does your second part mean?
The usermod itself work perfect (has nothing to do with the startup sequence).

For the startup Im using or try to use the playlist I configured.
Basically because I wasnt able to programm the startup sequenc in c++ into the usermod
(due to lack of knowledge how to use analog.Write() and how to address different segments or leds in the strip).

I guess I found the Issue.
My Playlist wont run on boot according to this issue:
Playlist will not go past the 1st Preset · Issue #3867 · Aircoookie/WLED · GitHub

I have the same behaviour on my controller with 0.14.4