I’ve spend some time debugging an issue with an AM2302 temperature and humidity sensor connected to an ESP01.
Without having done anything to my code I suddenly started getting this error message when trying to download code:
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [==== ] 39.6% (used 32424 bytes from 81920 bytes)
PROGRAM: [======= ] 65.3% (used 326480 bytes from 499696 bytes)
========================= [SUCCESS] Took 9.83 seconds =========================
INFO Successfully compiled program.
INFO Resolving IP address of raindance_esp1_temp3.local
INFO -> 10.0.1.127
INFO Uploading /data/raindance_esp1_temp3/.pioenvs/raindance_esp1_temp3/firmware.bin (330624 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)
Here is the code:
esphome: name: raindance_esp1_temp2 platform: ESP8266 board: esp01 wifi: ssid: !secret wifi_ssid password: !secret wifi_password # Enable logging logger: # Enable Home Assistant API api: ota: sensor: - platform: dht pin: GPIO2 model: AUTO_DETECT update_interval: 10s temperature: name: "Temperature" filters: - sliding_window_moving_average: window_size: 15 send_every: 15 send_first_at: 15 humidity: name: "Humidity" filters: - sliding_window_moving_average: window_size: 15 send_every: 15 send_first_at: 15
Nothing fancy and nothing advanced and keep in mind that the code used to download.
I tried a couple of things.
- I did remove everything below the ota: line - still I get error message
- I tried another ESP01 and do get the same error message.
- I tried to download the code over a serial port but the download appear to hang after compilation but before download starts. (I use the serial port to initialize the ESP01 the first time and that works OK)
- I rebooted my Raspberry Pi where I run HassIO but I doesn’t change anything.
I am running 0.97