I am running two esp8266 boards with DHT11 as simple sensors in Home Assistant.
Since version 2024.4.0 I have the problem that I cannot update the firmware for that sensors anymore.
The build fails with the following error:
INFO ESPHome 2024.4.1
INFO Reading configuration /config/esphome/sensor-bad.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing sensor-bad (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.1.0
|-- DNSServer @ 1.1.1
|-- ESP8266WiFi @ 1.0
|-- ESP8266mDNS @ 1.2
|-- noise-c @ 0.1.4
Compiling .pioenvs/sensor-bad/src/esphome/components/api/api_connection.cpp.o
xtensa-lx106-elf-g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
*** [.pioenvs/sensor-bad/src/esphome/components/api/api_connection.cpp.o] Error 1
========================= [FAILED] Took 28.84 seconds =========================
The ESP-Home-Log show the following for that time I tried the update:
2024-04-23 17:24:18,900 INFO 200 GET /devices (0.0.0.0) 3.39ms
2024-04-23 17:24:29,154 INFO 200 GET / (0.0.0.0) 267.16ms
2024-04-23 17:24:29,400 INFO 200 GET /devices (0.0.0.0) 58.99ms
2024-04-23 17:24:34,319 INFO 304 GET /devices (0.0.0.0) 3.87ms
2024-04-23 17:24:39,339 INFO 304 GET /devices (0.0.0.0) 8.41ms
2024-04-23 17:24:41,024 INFO 304 GET /info?configuration=sensor-bad.yaml (0.0.0.0) 14.25ms
2024-04-23 17:24:42,698 INFO 101 GET /run (0.0.0.0) 8.19ms
2024-04-23 17:24:42,710 INFO Running command 'esphome --dashboard run /config/esphome/sensor-bad.yaml --device 172.28.5.24'
2024-04-23 17:24:44,320 INFO 304 GET /devices (0.0.0.0) 4.29ms
2024-04-23 17:24:49,346 INFO 200 GET /devices (0.0.0.0) 15.74ms
2024-04-23 17:24:54,325 INFO 304 GET /devices (0.0.0.0) 6.67ms
2024-04-23 17:24:59,347 INFO 304 GET /devices (0.0.0.0) 11.31ms
2024-04-23 17:25:04,527 INFO 304 GET /devices (0.0.0.0) 128.15ms
2024-04-23 17:25:14,196 INFO 304 GET /devices (0.0.0.0) 791.28ms
2024-04-23 17:25:15,189 INFO 304 GET /devices (0.0.0.0) 3.54ms
2024-04-23 17:25:17,846 INFO Process exited with return code 1
2024-04-23 17:25:20,183 INFO 304 GET /devices (0.0.0.0) 3.32ms
2024-04-23 17:25:25,183 INFO 304 GET /devices (0.0.0.0) 5.75ms
2024-04-23 17:25:30,183 INFO 304 GET /devices (0.0.0.0) 3.77ms
According to the docs, the model parameter should be INT (or pre-defined constant) and it is string. See here: DHT Temperature+Humidity Sensor — ESPHome. Try DHT11 as model or leave it out altogether.
I seem to remember something about a braking change in the 2024.4 release logs
OK, the description is a bit confusing, it es saying " can be one of AUTO_DETECT , DHT11 , DHT22 , DHT22_TYPE2 , AM2302 , RHT03 , SI7021 , AM2120" but it wants an Integer.
I commented out the line “model: DHT11”, but it does not make a difference to the problem.
I don’t think your issue is the YAML. Something is preventing your compiler from completing. Are you compiling on a Raspberry PI? It may be hitting its memory limit causing the compiler to crash.
Try compiling on a different hardware to see if you are able to replicate the issue.
No I am not, since there is no display or log for that.
But you are obviously right, since it compiles and installs fine when I reboot the Pi (not only restart HA!) - This does point to a memory shortage issue…