-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Comments
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 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. |
Somewhat off topic here, but could this be related to the reason why sometimes the OTA image flashes successfuly but doesn't update the App partition? I've had a bunch of WB2S modules lately not apply the OTA'd firmware reliably, with ESPHome reporting that an old firmware is running even after multiple OTA attempts (there are no errors in the OTA process). A forum post over at Elektroda suggested grounding TX1 while applying power to the device (more specifically they said hold the external button which is connected to TX1 down whilst removing power, and keeping it held while applying power). Seems to work reliably but I haven't found any material yet that explains the correct method to force apply the OTA. |
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.
The text was updated successfully, but these errors were encountered: