ESPHome Install stuck

When I try to install a yaml to n eso31-WROOM-3D I get stuck in the end.
Connection is not the Problem just in the end it stucks.
Example .yaml

esphome:
  name: test

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

(I tried to install the Bluetooth proxy)

INFO ESPHome 2024.12.4
INFO Reading configuration /config/esphome/esphome-web-5d9838.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing brannsentral (board: esp32dev; framework: arduino; platform: platformio/[email protected])
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
No dependencies
RAM:   [=         ]   5.1% (used 16772 bytes from 327680 bytes)
Flash: [=         ]  14.9% (used 273113 bytes from 1835008 bytes)
========================= [SUCCESS] Took 0.91 seconds =========================
INFO Successfully compiled program.
esptool.py v4.7.0
Serial port /dev/ttyUSB0
Connecting.....
Chip is ESP32-D0WD-V3 (revision v3.1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 20:43:a8:66:21:40
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash will be erased from 0x00010000 to 0x00052fff...
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Compressed 273504 bytes to 152596...
Wrote 273504 bytes (152596 compressed) at 0x00010000 in 3.5 seconds (effective 625.1 kbit/s)...
Hash of data verified.
Compressed 17440 bytes to 12128...
Wrote 17440 bytes (12128 compressed) at 0x00001000 in 0.5 seconds (effective 298.0 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 144...
Wrote 3072 bytes (144 compressed) at 0x00008000 in 0.0 seconds (effective 611.1 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 872.4 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
INFO Successfully uploaded program.
INFO Starting log output from /dev/ttyUSB0 with baud rate 115200
[12:23:57][I][logger:171]: Log initialized
[12:23:57][I][app:029]: Running through setup()...
[12:23:57][I][app:062]: setup() finished successfully!
[12:23:57][I][app:100]: ESPHome version 2024.12.4 compiled on Feb 12 2025, 12:17:11
[12:23:57][C][logger:185]: Logger:
[12:23:57][C][logger:186]:   Level: DEBUG
[12:23:57][C][logger:188]:   Log Baud Rate: 115200
[12:23:57][C][logger:189]:   Hardware UART: UART0

In the End I can wait there for hours…


But in the lower right corner there is only the stop button. Not the close button.
I tried 2 cables and 2 esp32s. No success.

What hardware are you compiling the file on?

Raspberry pi’s have been known to run out of memory.

Try installing it on a PC and compiling the file there. You can use the esptool to upload the file to the device. Releases · espressif/esptool · GitHub

1 Like

Does the log correspond to the YAML?
If so, I’m not sure what makes you think the ESP is stuck, because it is “programmed” to do nothing

1 Like

It’s running on a old mall custom miniPC with 32GB Ram. CPU is also not the super oldest.
I was able to do it the manual way with espresif Flash Download tool.
And there upload the Bin (to tool installed on PC) downloaded from HASS (from mini pc). But i wasn’t able to plug it in the mini pc and flash it direct.

Yes it looks like everything works until the end.
but at the End I can’t connect to the ESP through Wifi wwhich is working when I flash through the .bin upload from PC.

No, he’s saying that there is nothing that does anything in the yaml you posted.

Probably because you don’t define anything regarding wifi or webserver.

A basic “connected” YAML (replace all “!secret …” by actual values):

substitutions:
  device_name: test

###########################################

esphome:
  name: "${device_name}"

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

wifi:
  networks:
    - ssid: !secret wifi_ssid
      password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "${device_name}"
    password: !secret fallback_password
    manual_ip:
      static_ip: 192.168.67.1
      gateway: 192.168.67.1
      subnet: 255.255.255.0

captive_portal:
    
web_server:
  port: 80
  auth:
    username: !secret web_user
    password : !secret web_password
1 Like

I have changed it (hopefully correct) a little bit:

substitutions:
  device_name: test

###########################################

esphome:
  name: "${device_name}"

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

wifi:
  networks:
    - ssid: !secret wifi_ssid
      password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: !secret wifi_ssid
    password: !secret wifi_password
    manual_ip:
      static_ip: 192.168.178.65
      gateway: 192.168.178.65
      subnet: 255.255.255.0

captive_portal:
    
web_server:
  port: 80
  auth:
    username: web_user
    password : web_password

I as able to login afterwards, so it seems to work!