Skip to content

Feature request: auto-exit safe mode after predefined period of time #1580

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

Open
nalajcie opened this issue Mar 24, 2025 · 2 comments
Open

Feature request: auto-exit safe mode after predefined period of time #1580

nalajcie opened this issue Mar 24, 2025 · 2 comments

Comments

@nalajcie
Copy link

Use case:
I have a remote site which has power failures from time to time. Some of the power failures make the smart plugs enter the safe mode (proably due to voltage fluctuations when the power grid is failing). The sockets stay indefinitely in safe mode until somebody manually disconnects them.

AFAIK it's not possible to disable safe mode or add some predefined reboot timeout in safe mode (autoexec is not being run, ping watchdog is disabled) without changing the code.

Please - add at least a hardcoded reboot timeout upon entering the the safe mode.

@openshwprojects
Copy link
Owner

I think we can add this as a number of seconds stored in obkConfig_t structure, 0-255 range (0 means disabled).

Or maybe just hardcode some value like 15 minutes?

@nalajcie
Copy link
Author

Probably adding it to manConfig_t would be most consistent as I see other timeouts are also stored there (https://github.com/openshwprojects/OpenBK7231T_App/blob/main/src/new_pins.h#L1367) - but this woud incur additional work with GUI, etc.

For my use case the hardcoded timeout is also OK.

I've checked the esphome and their "fallback AP" (in case you couldn't connect to any of the configured networks) doesn't have the auto-reboot feature out of the box (as a simple configurable parameter), but can be acheived with some YAML wizardy (eg. https://community.home-assistant.io/t/retry-wifi-connect-while-in-ap-mode/742764/1)

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

No branches or pull requests

2 participants