home-assistant-glow
home-assistant-glow copied to clipboard
D1 Mini ESP does not have enough space to store OTA file
Hi,
Background: I have a D1 mini working well, but HA showed some update. I have tried to apply this in an OTA but it has failed. I have reported this earlier. The solution should have been to use a wired update which resulted this error above.
The issue: I have flashed the firmware via https://glow-energy.io/ and all went well. I could access the web interface. The next step was the adoption in HA.
Adopting home-assistant-glow-c171d8 will create an ESPHome configuration for this device. This allows you to install updates and customize the original firmware.
This device will be configured to connect to the Wi-Fi network stored in your secrets.
This adoption process wants to push an updated firmware to the D1 Mini. This update is failing with out of space error:
INFO ESPHome 2024.7.3
INFO Reading configuration /config/esphome/home-assistant-glow-c171d8.yaml...
INFO Detected timezone 'Europe/Helsinki'
INFO Generating C++ source...
INFO Compiling app...
Processing home-assistant-glow-c171d8 (board: esp01_1m; framework: arduino; platform: platformio/[email protected])
--------------------------------------------------------------------------------
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
Dependency Graph
|-- ESPAsyncTCP-esphome @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 3.2.2
|-- DNSServer @ 1.1.1
|-- ESP8266WiFi @ 1.0
|-- ESP8266mDNS @ 1.2
|-- ArduinoJson @ 6.18.5
|-- ESP8266HTTPClient @ 1.2
|-- noise-c @ 0.1.4
|-- Improv @ 1.2.3
Compiling .pioenvs/home-assistant-glow-c171d8/src/main.cpp.o
Linking .pioenvs/home-assistant-glow-c171d8/firmware.elf
RAM: [===== ] 46.7% (used 38272 bytes from 81920 bytes)
Flash: [======= ] 69.5% (used 711325 bytes from 1023984 bytes)
Building .pioenvs/home-assistant-glow-c171d8/firmware.bin
esp8266_copy_factory_bin([".pioenvs/home-assistant-glow-c171d8/firmware.bin"], [".pioenvs/home-assistant-glow-c171d8/firmware.elf"])
esp8266_copy_ota_bin([".pioenvs/home-assistant-glow-c171d8/firmware.bin"], [".pioenvs/home-assistant-glow-c171d8/firmware.elf"])
========================= [SUCCESS] Took 7.75 seconds =========================
INFO Successfully compiled program.
INFO Connecting to 192.168.107.57
INFO Uploading /data/build/home-assistant-glow-c171d8/.pioenvs/home-assistant-glow-c171d8/firmware.bin (715472 bytes)
INFO Compressed to 496966 bytes
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)