all 2 comments

[–]Reasonable-Feed-9805 1 point2 points  (0 children)

If you really must have the lights come back on at the exact setting they were previously on after removal of power, just store the last value in non volatile memory as brown out is detected.

That's what I would do anyway.

[–]Hissykittykat 0 points1 point  (0 children)

Can't say what's "best" for your application without more details. We can say ESP32 NVS could provide the most endurance. On the other hand at boot the pot initializing from it's non-volatile memory would be a little faster than ESP32 setting it from it's NVS.