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

Feature Request : Maintain constant state through reboot #281

Open
BenJamesAndo opened this issue Apr 29, 2024 · 1 comment
Open

Feature Request : Maintain constant state through reboot #281

BenJamesAndo opened this issue Apr 29, 2024 · 1 comment

Comments

@BenJamesAndo
Copy link

It would be nice when doing OTA updates in ESPHome for Beken chips for the GPIOs not to reset. This is undesirable if you have something like a server or router plugged in and your plug briefly turns off.

From ESPHome page
early_pin_init (Optional, boolean): Specifies whether pins should be initialised as early as possible to known values. Recommended value is false where switches are involved, as these will toggle when updating the firmware or when restarting the device. Defaults to true.

@Cossid
Copy link
Collaborator

Cossid commented Apr 29, 2024

This might be a hardware limitation, as the state is lost before ESPHome can init it. This would probably need something similar to ESP32's gpio_hold_en/gpio_hold_dis which the BDK doesn't appear to have.

This is difficult to verify how Tuya handled it, as firmware upgrades are so rare on their platform.

Additionally, this platform (Beken BK7231) is an APP/OTA style, which is different than the usual APP/APP, which means part of the boot process is applying the OTA which is not handled by an OS, but rather the bootloader, so without a way to hold GPIO, there isn't much that can be done.

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