Yaml download failed when compilation terminated

Hi, having used HA since the Insteon servers went MIA I’m venturing into a new realm: ESPHome + ESP32 microcontrollers.

After successfully initializing the ESP32 I started the yaml download. Got as far as here:

Compiling .pioenvs/esp32-01/src/esphome/components/api/api_connection.cpp.o
xtensa-esp-elf-g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
*** [.pioenvs/esp32-01/src/esphome/components/api/api_connection.cpp.o] Error 1
========================= [FAILED] Took 1308.30 seconds ========================

Subsequent attempts failed after about 1 minute.

Just wanted to ask if there’s anyone that might have seen this kind of error before and what might be the next best course of action to resolve it.

Thanks.

When I’ve had that type of error in the past it was down to not having enough RAM available to compile the firmware.

  • What are you running HA on?
  • How much RAM is available?
  • Do you have any memory hog Add-ons running that you can turn off? Visual Studio Code is one such Add On.

Didgeridrew, thank you for your response.

  • I’ve got HA is running on a stock Raspberry Pi 3 (migrated config from a VM on Windows)
  • Looks like it has 1G of RAM.
  • At idle, it looks like the system uses 60% of the RAM.

The Pi3 is no longer recommended, and 1GB RAM is too little Raspberry Pi - Home Assistant

fleskefjes - thanks for pointing me out of the hole I’ve found myself in.

While the platform won’t support compilation of the ESPHome code, it seems ok at the moment for day to day operation. I’m hoping my VM HA instance will compile and load the ESP32 …

You don’t HAVE to use HA to run/compile esphome. You can install esphome on many different systems.

https://esphome.io/guides/installing_esphome/

I run esphome on a completely different computer (that is reasonably powerful, for a PC) than HA.

Neel, thanks for the suggestion. I’ll keep that in mind for a Plan C. On the VM, after the system finally recognized there was an update available for the ESPHome add-on I was able to complete the initialization.

Now to see if I can get the right yaml code for this JSN -SR04T V2.0 working with the ESP32-VROOM-32 …

It is going to depend on the compute resources available for each scenario.

I have a low (electric) power device running the Docker containers for my home automation. This includes HA, mqtt, InfluxDB, Grafana, and NodeRED. I could run esphome in the container running HA. Instead, I run it on my desktop which is a couple of generations newer and more powerful. This means my compiles complete in about half the time.

It was not hard to set up, but do what works well for you.