Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persist power state on reboot #3975

Open
drewcovi opened this issue May 13, 2024 · 3 comments
Open

Persist power state on reboot #3975

drewcovi opened this issue May 13, 2024 · 3 comments

Comments

@drewcovi
Copy link

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 😉

@blazoncek
Copy link
Collaborator

blazoncek commented May 13, 2024

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.

@drewcovi
Copy link
Author

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).

@blazoncek
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants