Skip to content

Getting Started with ESP32

Easy 20 min $5-10

ESP32 is a microcontroller - a small computer that can measure things, control things, and talk to your WiFi. Together with ESPHome, it becomes easy to build your own smart home devices.

Before you start, you need:

ESPHome is software that runs on your ESP32. You describe what it should do in a simple YAML file, and ESPHome handles the rest.

Benefits:

  • No Arduino IDE or C++ programming
  • Direct integration with Home Assistant
  • Wireless updates (OTA)
BoardPriceRecommended for
ESP32-WROOM-32 DevKit$5-10⭐ Beginners (start here)
ESP32-C3 Super Mini$3-5Small projects
ESP32-S3$8-12Displays, more RAM
  1. Open Home Assistant and go to SettingsAdd-ons

  2. Click Add-on Store (bottom right)

  3. Search for “ESPHome” and click on it

  4. Click Install and wait (1-2 minutes)

  5. Enable “Start on boot” and “Show in sidebar”

  6. Click Start

  1. Open ESPHome from the sidebar

  2. Click + NEW DEVICE

  3. Click Continue (ignore browser-flash for now)

  4. Name the device - e.g., test-sensor

  5. Select ESP32 as device type

  6. Click Skip (we’ll flash manually afterwards)

Click EDIT on your new device and replace the content with:

test-sensor.yaml
esphome:
name: test-sensor
friendly_name: Test Sensor
esp32:
board: esp32dev
# Logging for debugging
logger:
# Home Assistant API
api:
encryption:
key: "YOUR-AUTO-GENERATED-KEY"
# Wireless updates
ota:
platform: esphome
# WiFi connection
wifi:
ssid: "YOUR-WIFI-NAME"
password: "YOUR-WIFI-PASSWORD"
# Fallback hotspot if WiFi fails
captive_portal:
# Simple test sensor - WiFi signal strength
sensor:
- platform: wifi_signal
name: "WiFi Signal"
update_interval: 60s
  1. Connect ESP32 to computer with USB cable

  2. Click INSTALLPlug into this computer

  3. Select “Serial” in the popup window

  4. Select the correct COM port (typically the only one shown)

  5. Wait for upload (~2 minutes)

  6. You’ll see “INFO Successfully uploaded” when done

  1. Go to SettingsDevices & Services

  2. Home Assistant automatically finds your ESP32 under “Discovered”

  3. Click Configure

  4. Enter your encryption key (from the YAML file)

  5. Click SubmitFinish

Your ESP32 is now connected! 🎉

  1. Go to Developer ToolsStates

  2. Search for sensor.test_sensor_wifi_signal

  3. You should see a value like -45 dBm


Kommentarer