esphome / esphome/feature-requests

Automatically use minimal update image when new image is too big

Open
#2,118 0 comments 8 reactions 0 assignees View on GitHub
Type: ESP8266
Dominant language
No language data
Stars
450
Forks
29
PR merge metrics
No merged PRs in 30d

Description

**Describe the problem you have/What new integration you would like**

When using a somewhat larger configuration with a device with limited memory, it is easy to get too low on memory: the device cannot do an OTA with a (compressed) file larger than +- 512 kB. The workaround now is first to update with a minimal configuration and then to update to the complete configuration.

It would be great if this could be automated: when the resulting image is > 512kB, first update with another image which has an almost empty configuration, then update to the full configuration.

An example of this can be Tasmota, which has this already built-in.

**Please describe your use case for this integration and alternatives you've tried:**

The issue is when I have a configuration that produces a bin file larger than 512kB I cannot easily update using OTA

Other feature requests have been done before about this topic, but have been closed because compression was added. Still for larger configurations, the same issue remains even with compression enabled.

**Additional context**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.