From 0c1a12a968fc856c8079860b7ee4430b836aa07b Mon Sep 17 00:00:00 2001 From: Kaufman Home Automation Date: Fri, 2 Jun 2023 14:07:04 -0700 Subject: Update README.md --- README.md | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 6c3a5f3..adb230d 100644 --- a/README.md +++ b/README.md @@ -17,17 +17,6 @@ wifi: ssid: !secret wifi_ssid password: !secret wifi_password -########################## -## Re: Binary Size Error -## ESPHome now adds API encryption by default. When the plug firmware is compiled, API encrytion -## makes the binary file too big to OTA update. We recommend that you remove API encryption -## by commenting out or removing the following lines to allow easy OTA. Otherwise, you can keep API -## encryption by changing the package line above to kauf-plug-minimal.yaml as an intermediate -## firmware before immediately switching back to kauf-plug.yaml. -########################## -# api: -# encryption: -# key: ... ``` ## Repo Contents @@ -136,13 +125,16 @@ Holding the plug's button for 30 seconds will clear any programmed Wi-Fi credent ## Troubleshooting ### Binary Size Error -ESPHome began adding API encryption by default, which makes the plug binary files too big to OTA update. If you are getting the message `ERROR Error binary size: Error: ESP does not have enough space to store OTA file. Please try flashing a minimal firmware (remove everything except ota)`, then you need to remove API encryption by commenting it out or deleting the following lines: +ESPHome began adding API encryption by default, which may make the plug binary files too big to OTA update. kauf-plug.yaml v2.03 removed the light entities and replaced them with switch entities to toggle lights and number entities to control brightness. This change reduced the binary size and OTA should now work with API encryption without a problem. + +If you are still getting the message `ERROR Error binary size: Error: ESP does not have enough space to store OTA file.`, we recommend that you remove API encryption by commenting out or deleting the following lines: ``` # api: # encryption: # key: ... ``` + If you want to keep API encryption, you can flash first with the kauf-plug-minimal.yaml file each time you need to update or upgrade, and then revert back to the kauf-plug.yaml. -- cgit v1.2.3