Aircoookie / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!

Home Page:https://kno.wled.ge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Persist power state on reboot

drewcovi opened this issue · comments

Is your feature request related to a problem? Please describe.
Seems with some recent updates, I'm now facing (and may have been facing for some time) unexpected restarts. This means installations in my kitchen for instance triggers a preset in the middle of the night when it was turned off before bed.

Describe the solution you'd like
It's not uncommon to see a feature in smart home lighting that restarts with whatever power state they were in prior to losing power or power cycling.

Describe alternatives you've considered
Autosave usermod does allow for storing any preset, and perhaps the "off" preset could be considered one.

Additional context
Goes without saying that this might be a usability improvement as WLED appeals to a broader audience. Usermods require custom compilation, so this would go a long way to rendering power cycle issues moot and aligning even closer to common smart lighting conventions.

Thank you for your ideas for making WLED better!

Thank you for making WLED 😉

Saving too often wears flash down and might render device inoperable over time.
It will not be implemented as a core feature unless Autosave usermod is incorporated into default builds.

Really great point. Does Autosave also wear out the flash? I guess I'll just cross my fingers on the power cycle issue. So long as uptime is strong, it's probably a non-issue (only during rare power outages).

Any writ does. My own (limited) testing showed that even as low as 40000 writes can destroy flash. And there are a lot of writes that happen.