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

Cannot update/OTA on esphome 2024.12.2 #22

Closed
THEthatdude opened this issue Jan 7, 2025 · 5 comments
Closed

Cannot update/OTA on esphome 2024.12.2 #22

THEthatdude opened this issue Jan 7, 2025 · 5 comments
Assignees

Comments

@THEthatdude
Copy link

RAM: [= ] 14.6% (used 47860 bytes from 327680 bytes)
Error: The program size (1880118 bytes) is greater than maximum allowed (1835008 bytes)
Flash: [==========] 102.5% (used 1880118 bytes from 1835008 bytes)
*** [checkprogsize] Explicit exit, status 1

After updating ESPHome to 2024.12.2 on home assistant I cannot update or re-flash the device with this error (out of flash)

@TrevorSchirmer
Copy link
Member

Hello, apologies for the trouble. Can you post the yaml you see in the ESPHome addon so we can see what branch you are working on?

Thanks!

@THEthatdude
Copy link
Author

substitutions:
name: apollo-plt-1-b2bfe0
friendly_name: Apollo PLT-1 01
packages:
ApolloAutomation.PLT-1: github://ApolloAutomation/PLT-1/Integrations/ESPHome/PLT-1.yaml
esphome:
name: ${name}
name_add_mac_suffix: false
friendly_name: ${friendly_name}
api:
encryption:
key: ...

wifi:
ssid: !secret ..
password: !secret ..

@TrevorSchirmer
Copy link
Member

Got it, yes the size of the ESPHome libraries increased and pushed it over the edge. It only shows up on the ESPHome addon, but here is the fix. You'll want to change your package section to have this:

packages: ApolloAutomation.PLT-1: github://ApolloAutomation/PLT-1/Integrations/ESPHome/PLT-1_Minimal.yaml

The minimal version removes some of the startup things that take a lot of space like BLE discovery.

Once you switch to that you should be able to install again and be well below 100% storage used.

@MikeDembek
Copy link

Got it, yes the size of the ESPHome libraries increased and pushed it over the edge. It only shows up on the ESPHome addon, but here is the fix. You'll want to change your package section to have this:

packages: ApolloAutomation.PLT-1: github://ApolloAutomation/PLT-1/Integrations/ESPHome/PLT-1_Minimal.yaml

The minimal version removes some of the startup things that take a lot of space like BLE discovery.

Once you switch to that you should be able to install again and be well below 100% storage used.

I had what seemed to be the same issue and updating the package like you described worked for me - thank you!

@THEthatdude
Copy link
Author

Confirming minimal works- thank you!

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

3 participants