-
Notifications
You must be signed in to change notification settings - Fork 6
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
PLF12 not enough space for OTA #7
Comments
Thanks @juichi for sharing the workaround. I was getting the same error but in my case had to go with the |
Turns out this is documented in the common readme. Just discovered it looking at another issue ticket. https://github.com/KaufHA/common/blob/main/README.md#binary-size-error I have not tested removing the encryption key for ESP home in my build, but will when I get another PLF12. @KaufHA I suggest this is documented in the manual or on the main readme for this product if this is indeed the cause and am willing to help with a pull request when I am able to verify it. |
Yea you are right it should be mentioned in the plug readme. I'll add it. Removing the API encryption should fix this. I'm looking for ways to slim down the binary enough to work with API encryption without losing functionality. |
If you want to keep encryption you can use minimal.yaml and gzip it then upload through the interface. You lose all the Kauf options, but you still get current, power, and basic plug functions. |
I reconfigured how the LEDs are controlled to take up less space. So the main kauf-plf12.yaml should be working now with API fine. |
Confirmed - OTA works fine now. |
With newly delivered PLF12s, in ESPHome (2023.3.1), I changed the name, friendly name, and use_address. Compilation worked fine, but then I got a notice that the binary file was too large for OTA.
To get around this I changed the package to kauf-plf12-lite.yaml, flashed the plug, then I changed the repository back to kauf-plf12.yaml. This worked.
Attempting attempting to reflash I get this error with the kauf-plf12.yaml.
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)
Here are the compilations size messages:
INFO Uploading /data/counteraquariumlight/.pioenvs/counteraquariumlight/firmware.bin (630064 bytes)
INFO Compressed to 431897 bytes
Additionally visiting the local ip of the lights does not generate a webserver, I get a file download dialog from chrome. Weird.
The text was updated successfully, but these errors were encountered: