ESPHome Knock out Home Assistant OS on an RPi

Hi!

in most cases if I want to use ESPhome on my Raspberry Pi running Home Assistant OS, the OS is totally frozen. Only hard reset helps.

When I added the first nodemcu, the OS is frozen.

After restarting. the esphome found the nodemcu. I sent the first yaml that just set up the wifi connection. The OS frozen again.

Restart, I tried again. Now the esphome wrote yaml (over local usb) and the nodemcu connected to wifi.

I tried to load an LED flashing program to nodemcu over OTA. The OS frozen again.

That’s hard enough to work with ESPhome. What could be the problem? What can i do?

If need information please tell me, and i provide it.

Thanks!

ABT

It’s quite normal as ressources on PI are quite limited :wink: If you had done a search in forum before posting you would have noticed quite few guys have already complained about that in the past !
If possible try to use a PI4 with an SSD and not an SD card, it’ll help reduce the problem !
Side note: the frozen system should appear only when compiling, not downloading/flashing !

How do you know?

How is the Pi and the NodeMCU powered?

1 Like

Lower ram pis commonly freeze up during compilation. You don’t say which model you are using.

Run esphome on a different computer.

Hi!

The RPi is powered by a 3A RPi labelled adapter. The nodeMCU is powered by 500mA computer USB slot.

The frozen: The web page is unavailable, SSH too, ping is working. I’m waiting almost 1 hour to response, but this ha is responsible my house water supply si can’t waiting more.

ABT

Hi!

The freeze is not complete, the ping is working. BUT the first 2 “freezing” is not in compliing mode, but only searching the device with ESPHome’s “new device” button. (Clean ESP32 on my computer’s USB slot).

The first “compile” is only:

esphome:
  name: test-esp

esp8266:
  board: esp01_1m

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  password: "a13a977ab0008d5905acc27c5d2fa07c"

wifi:
  ssid: hassid
  password: hassidpass

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Test-Esp Fallback Hotspot"
    password: "jQubGxZc9Fi0"

IMHO a weak computer is done this in a half hour… (but i don’t know how ESPhome works in the background) i’m remember that time when a linux kernel compiling lasted for 2 days. That computer is a quartz watch compared to an RPi.

ABT