Skip to content

ESP32 & ESPHome

Build your own smart home devices with the ESP32 microcontroller and ESPHome. Cheap, flexible, and fully integrated with Home Assistant.

ESP32 + ESPHome + Home Assistant

AdvantageDescription
CheapESP32 boards cost ~$5-15
WirelessBuilt-in WiFi and Bluetooth
EasyESPHome uses simple YAML config
LocalDirect integration with Home Assistant
FlexibleThousands of supported sensors
GuideDescription
Temperature SensorDHT22/DS18B20 temperature & humidity
Motion SensorPIR sensor for presence detection
LD2410 mmWaveRadar-based presence detection
GuideDescription
LED Strip ControlAddressable RGB LED strips

Go to Settings → Add-ons → Add-on Store and install ESPHome.

  1. Open ESPHome dashboard
  2. Click + New Device
  3. Choose your ESP32 board
  4. Flash via USB the first time
esphome:
name: my-sensor
friendly_name: My Sensor
esp32:
board: esp32dev
wifi:
ssid: "YourWiFi"
password: "YourPassword"
api:
encryption:
key: "your-api-key"
ota:
platform: esphome
BoardPriceNotes
ESP32-WROOM-32~$5Standard, reliable
ESP32-C3~$4Smaller, lower power
ESP32-S3~$8More GPIO, USB-C
SensorUsePrice
DHT22Temperature/humidity~$3
DS18B20Waterproof temperature~$2
PIR HC-SR501Motion detection~$1
LD2410mmWave presence~$5
BH1750Light level~$2