selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

ESPHome logo

Self-host ESPHome

2026.10.2

Build custom smart home device firmware from YAML

ReleaseOpen SourceOther
docker run --rm --net=host -v "${PWD}":/config -it ghcr.io/esphome/esphome
Updated5 days ago
LanguageC++
Setup difficultyModerate
Stars
12 069
Rating
5.0 (1)
Port
6052 (ESPHome Device Builder dashboard web UI)
Docker
ghcr.io/esphome/esphome
ESPHome screenshot 1

What is ESPHome?

ESPHome is an open-source toolchain for building firmware for small Wi-Fi and Bluetooth microcontrollers, aimed at home-automation makers who want their own sensors, switches and displays instead of cloud-locked products. You describe a device in a YAML file, or visually through the Device Builder wizard, and ESPHome generates, compiles and installs the firmware — over USB, straight from the browser, or over the air once a node is online. Finished devices talk to Home Assistant through its native API, to an MQTT broker, or to any other controller over your local network, with no cloud service in the path. A large library of interchangeable components covers sensors, displays, lights, climate, media players, voice assistants and Bluetooth proxies, and configurations support secrets files plus include directives. You run the tooling yourself: an official container image for AMD64, ARM and ARM64, a pip-installable command-line tool with a separate web dashboard on port 6052, desktop apps for Windows, macOS and Linux, or the app inside Home Assistant. Releases follow a calendar scheme with stable, beta and daily dev channels; host networking matters in Docker because device discovery relies on mDNS.

ESPHome alternatives

All self-hosted alternatives to Tasmota →

Should you self-host ESPHome?

ESPHome scores 78/100 on selfhost.directory (how scoring works) and ranks #4 of 104 in Home Automation. It has 12 069 GitHub stars, +291 in the last 30 days.

It shipped 49 stable releases in the past year. The latest, 2026.11.0b2, came out on 6 November 2026. New versions land roughly every 2 days.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is Other-licensed and written mostly in C++.

Its closest alternative on selfhost.directory is Home Assistant (92/100, 92 053 stars). It scores higher overall, so compare the two before you pick. See ESPHome vs Home Assistant side by side.

Features

  • Bluetooth proxy
  • Browser-based device installation
  • Command Line Interface
  • Desktop App
  • Home Assistant native API
  • Local control without cloud
  • Modular component library
  • MQTT client support
  • Multi-microcontroller support
  • Over-the-air firmware updates
  • Secrets and config includes
  • Visual device builder
  • Voice assistant support
  • Web Dashboard
  • YAML device configuration

ESPHome README

How to install ESPHome

Install ESPHome with Docker

Environment variables
ESPHOME_USERNAME, ESPHOME_PASSWORD

ESPHome publishes an official container image supporting AMD64, ARM and ARM64 (AARCH64). Running it avoids installing Python or any build tooling on your host.

docker pull ghcr.io/esphome/esphome

Started with no subcommand, the image runs the dashboard:

docker run --rm --net=host -v "${PWD}":/config -it ghcr.io/esphome/esphome

Any command-line subcommand works by appending it to the docker run invocation, with your configuration directory mounted at /config:

docker run --rm -v "${PWD}":/config -it ghcr.io/esphome/esphome run livingroom.yaml

Tags: latest and stable, YEAR.MONTH, beta, dev. Host networking is needed for mDNS device discovery; otherwise publish 6052. On macOS, USB devices cannot be passed through to the container.

How to configure ESPHome

  • ESPHOME_USERNAMEDashboard login username for the container, replacing the legacy bare USERNAME variable.
  • ESPHOME_PASSWORDDashboard login password for the container; an environment file with restricted read permissions is preferred over a password on the command line.
  • --log-levelFlag appended to the container's default esphome-device-builder command, e.g. debug.

ESPHome releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

How do I secure my ESPHome devices?

Follow the project's Security Best Practices guide, which covers API encryption, OTA passwords, network segmentation and physical security.

I have a question… How can I contact you?

Use Discord, the Home Assistant community forums, the ESPHome issue and feature request trackers, or e-mail for matters that are not support requests.

Does ESPHome support [this device/feature]?

Anything not listed in the components index is not officially supported; community External Components exist but are unsupported, and new requests go to the feature request tracker.

How do I use my Home Assistant secrets.yaml file?

Create a secrets.yaml inside your ESPHome config directory containing <<: !include ../secrets.yaml, which pulls in the Home Assistant secrets file from the parent directory.

How do I use the latest bleeding-edge version?

The bleeding-edge dev build is available as a pip archive install, the dev container tag, or the dev app, but the project warns it is not always stable and generally not supported.

How do I update to the latest beta release?

Install the beta-labelled app in Home Assistant, use pip3 install --pre -U esphome, or run the container with the beta tag.

How do I update to the latest version?

Home Assistant shows an update notification for the app; for a pip install run pip3 install -U esphome, and for Docker pull the stable image tag again.

More in Home Automation

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…