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

PLF12 not enough space for OTA #7

Open
juichi opened this issue Apr 9, 2023 · 6 comments
Open

PLF12 not enough space for OTA #7

juichi opened this issue Apr 9, 2023 · 6 comments

Comments

@juichi
Copy link

juichi commented Apr 9, 2023

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.

@juanuribeo13
Copy link

Thanks @juichi for sharing the workaround. I was getting the same error but in my case had to go with the kauf-plf12-minimal.yaml package.

@juichi
Copy link
Author

juichi commented May 23, 2023

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.

@bkaufx
Copy link

bkaufx commented May 23, 2023

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.

@steveomg
Copy link

steveomg commented Jun 7, 2023

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.

@bkaufx
Copy link

bkaufx commented Jun 7, 2023

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.

@steveomg
Copy link

steveomg commented Jun 7, 2023

Confirmed - OTA works fine now.

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

4 participants