Usermod Remember last Preset

Hello,

I’m wondering if a usermod contained some simple code to write the to bootPreset every time applyPreset is called, WLED could remember where you left off between power cycles.
Does anyone have a simple example of this?

There is already an autosave usermod. :wink:

unfortunately it does not work with presets.

So the autosave usermod saves when some parameter is changed, effect, speed, brightness, etc, but not when a preset is changed, so it won’t work the way I want?

Can someone make autosave mod for d1 mini in bin file for me? please

Use #bot channel in Discord.

How can I setup the Usermod? It will work after a power off then power on ? Will WLED power on with the last solid color, or with the last preset? If I setup Preset to load at boot (0 = none), does it means that after boot WLED will start with Usermod last selection?

You need to compile for that usermod. See docs in code.

boot preset of 0 means default, which is nothing.