There is more than one correct way to install ESPHome, and the best choice depends on where you want your configurations to live and which computer should do the compiling. This guide covers every supported route in detail: the Home Assistant app, the desktop application, a Python install with pip, and Docker. It also explains how to verify the installation, keep it updated and avoid the problems that most often break a fresh setup.
Choosing the right installation route
Before typing any commands, decide where ESPHome will run.
| Route | Runs on | Best for | Compile speed |
|---|---|---|---|
| Home Assistant app | Home Assistant OS or Supervised | Households that already run Home Assistant | Depends on the HA hardware |
| Desktop app | Windows, macOS, Linux | Users who want a one-click install | Fast on a modern PC |
| pip in a virtual environment | Any OS with Python 3.12+ | Command-line users and developers | Fast |
| Docker | Linux servers, NAS devices, Docker Desktop | Homelabs and container-based setups | Depends on the host |
All of them produce identical firmware. The only differences are convenience, compile performance and how backups are handled. Many people run the Home Assistant app for day-to-day changes and keep a pip install on a faster desktop for large builds.
Route 1: the Home Assistant app
If you use Home Assistant OS or a Supervised installation, the ESPHome Device Builder is available as an app (called an add-on on older Home Assistant releases).
- Open Settings → Apps and select Install App.
- Search for ESPHome Device Builder and open it.
- Click Install. The download is a few hundred megabytes.
- Turn on Start on boot, Watchdog and Show in sidebar, then click Start.
- Open ESPHome Builder from the sidebar.
If the app does not appear in the list, add the official repository from the three-dot menu under Repositories: https://github.com/esphome/home-assistant-addon.
Configurations are saved in /config/esphome/. Because they sit inside the Home Assistant configuration directory, they are included in every full backup. Updates to ESPHome arrive as normal app updates in the Home Assistant interface.
The one drawback is compile speed. A Raspberry Pi 4 can take ten minutes or more for a first ESP32 build, and boards with 2 GB of memory or less may run out of RAM on ESP-IDF projects. If that happens, keep the app for editing and OTA updates, and compile heavy builds elsewhere.
Home Assistant Container and Core installations do not support apps. Use the Docker or pip route instead and point Home Assistant at the devices through the ESPHome integration.
Route 2: the desktop ESPHome app
The ESPHome project publishes a packaged desktop application that bundles the Device Builder and its dependencies, so you do not need to install Python first.
- Windows: download the installer and run it. The app starts the Device Builder locally and opens it in a window.
- macOS: download the
.dmg, drag the app to Applications, and open it. The first launch may require approval in System Settings → Privacy & Security. - Linux: packages are offered as a
.debfor Debian and Ubuntu (sudo apt install ./ESPHome.Device.Builder_*.deb), an AppImage for most other distributions, and an AUR package (esphome-desktop-bin) for Arch.
On Linux, add your user to the dialout group so the app can open serial ports: sudo usermod -a -G dialout $USER, then log out and back in.
The desktop app is the simplest path for people who want to flash boards from their own computer and do not need Home Assistant integration on the same machine.
Route 3: pip and a virtual environment
Installing from the Python Package Index gives you the esphome command-line tool and the dashboard. Current releases require Python 3.12 or newer.
Check Python
python3 --version
On Windows, use py --version. If the version is older than 3.12, install a newer Python from python.org, the Microsoft Store, Homebrew on macOS (brew install python@3.12) or your Linux package manager.
Create a virtual environment
Many Linux distributions now block system-wide pip install with an "externally-managed-environment" error, and mixing ESPHome's dependencies with system packages causes problems anyway. A virtual environment avoids both issues.
python3 -m venv ~/esphome-venv
source ~/esphome-venv/bin/activate
On Windows PowerShell:
py -m venv $HOME\esphome-venv
$HOME\esphome-venv\Scripts\Activate.ps1
If PowerShell refuses to run the activation script, allow local scripts for your user with Set-ExecutionPolicy -Scope CurrentUser RemoteSigned.
Install and verify
pip install --upgrade pip
pip install esphome
esphome version
The last command prints the installed version, such as Version: 2026.11.0. Releases follow a year.month.patch pattern, with a new minor release every month and patch releases in between.
First commands
The command-line tool covers the full workflow:
esphome wizard office.yaml # interactive config creation
esphome config office.yaml # validate and print the final config
esphome compile office.yaml # build firmware without uploading
esphome run office.yaml # compile, upload, then show logs
esphome logs office.yaml # stream logs over Wi-Fi or USB
esphome dashboard config/ # start the web dashboard
The run command asks how to upload: over a detected serial port or over the air if the device is already online. Add --device /dev/ttyUSB0 or --device COM5 to skip the question, or --device office.local for OTA.
Running the dashboard as a service
For a permanent setup on Linux, create a systemd unit so the dashboard starts at boot:
[Unit]
Description=ESPHome Dashboard
After=network-online.target
[Service]
User=esphome
ExecStart=/home/esphome/esphome-venv/bin/esphome dashboard /home/esphome/config
Restart=on-failure
[Install]
WantedBy=multi-user.target
Save it as /etc/systemd/system/esphome.service, then run sudo systemctl enable --now esphome.
Route 4: Docker
The official image is published at ghcr.io/esphome/esphome. Tags follow releases: stable for the current release, beta for pre-releases, dev for the development branch, and fixed version tags such as 2026.11.0 when you want to pin a version.
Dashboard container
docker run -d --name esphome --restart unless-stopped \
--net=host \
-v "$HOME/esphome":/config \
-e TZ=Europe/London \
ghcr.io/esphome/esphome:stable
Host networking lets the dashboard see mDNS announcements, which is how it tracks whether devices are online. On Docker Desktop for Windows or macOS, where host networking behaves differently, replace --net=host with -p 6052:6052 and expect the online status to rely on ping instead of mDNS.
Docker Compose
services:
esphome:
image: ghcr.io/esphome/esphome:stable
container_name: esphome
restart: unless-stopped
network_mode: host
volumes:
- ./config:/config
- /etc/localtime:/etc/localtime:ro
Start it with docker compose up -d and open http://<host-ip>:6052.
USB access from a container
To flash over USB from the server itself, pass the serial device through with --device=/dev/ttyUSB0, or run the container with --privileged for quick tests. Most Docker users skip this entirely: they do the first flash with ESPHome Web from a laptop and use OTA for everything afterwards.
One-off commands in Docker
The same image can run any CLI command against a file in the current directory:
docker run --rm -v "${PWD}":/config -it ghcr.io/esphome/esphome run office.yaml
Matching the route to your household
Some concrete situations make the choice easier.
A single Home Assistant Green or Yellow, a handful of sensors. Use the Home Assistant app. Compiles will be slower, but you will rarely notice for small configurations, and every configuration is included in your normal backups. Do first flashes with ESPHome Web from a laptop.
A Raspberry Pi running Home Assistant plus a gaming PC or workstation. Keep the Home Assistant app for editing and wireless updates, and install the desktop app or a pip environment on the faster machine for the first compile of large ESP32 projects or when you change frameworks. Point both at the same configuration files if you want, for example through a shared folder, but avoid editing the same file from two places at once.
A homelab with Proxmox, Unraid or a Synology NAS. Run the Docker image with host networking, mount a configuration folder you back up with the rest of your container data, and add the devices to Home Assistant through the ESPHome integration.
A developer contributing to ESPHome itself. Clone the repository from GitHub and install it in editable mode in a virtual environment. This is covered in detail in the guide to the ESPHome GitHub repository.
Moving configurations between installations
Because every device is defined by plain text, moving from one installation route to another is mostly a matter of copying files.
- Copy every
.yamlfile andsecrets.yamlfrom the old configuration directory to the new one. In Home Assistant this is/config/esphome/; for Docker it is the folder mounted at/config; for pip it is whatever folder you pass to the dashboard. - Leave the hidden
.esphomebuild folder behind. It only contains caches and will be rebuilt. - Start the new Device Builder and confirm the cards appear.
- Install one device wirelessly from the new location to confirm the OTA password and API key still match.
The devices themselves do not care where their firmware was compiled. As long as the OTA password in the YAML matches the one on the device, any installation can update it.
Verifying the toolchain with a test build
Before relying on a new installation, compile a throwaway configuration. This downloads the toolchains while nothing is at stake and confirms the machine has enough memory and disk space.
esphome:
name: toolchain-test
esp32:
board: esp32dev
logger:
Run esphome compile toolchain-test.yaml, or create the file in the dashboard and choose Install → Manual download. A successful build ends with a [SUCCESS] line and the size of the generated image. If you also use ESP8266 or RP2040 boards, repeat the test with those platforms, since each one downloads its own toolchain the first time.
Drivers and permissions
Whichever route you choose, flashing over USB needs the computer to recognise the board's serial chip.
- CP210x (Silicon Labs) and CH340/CH343 (WCH) drivers are included in Linux, usually installed by Windows Update, and built into recent macOS versions. If a port does not appear, install the driver from the chip vendor.
- Native USB boards (ESP32-S2, S3, C3, C6 in USB-JTAG mode) generally need no driver.
- On Linux, membership of the
dialoutgroup is required. Without it, uploads fail with "Permission denied" on/dev/ttyUSB0.
Updating ESPHome
New releases arrive monthly and sometimes change component options. A careful update routine avoids surprises.
- Read the release notes. Each release lists breaking changes at the top. Search them for components you use.
- Update the tool. In Home Assistant, accept the app update. With pip, run
pip install --upgrade esphomeinside the virtual environment. With Docker,docker pull ghcr.io/esphome/esphome:stableand recreate the container. - Validate every configuration. In the dashboard, the Validate action on each card flags anything the new version rejects.
- Update one device first. Install to a non-critical device and confirm it behaves, then use Update All for the rest.
Devices keep running their existing firmware until you install a new build, so updating the tool never changes a device on its own.
Uninstalling cleanly
- Home Assistant app: stop and uninstall from Settings → Apps. Your YAML files remain in
/config/esphome/unless you delete them. - pip: deactivate and delete the virtual environment folder. ESPHome's toolchain cache lives in
~/.platformioand the.esphomefolder inside your config directory; delete them to reclaim several gigabytes. - Docker: remove the container and image. The config volume stays on disk.
Common installation problems
"esphome: command not found"
The virtual environment is not active, or its bin folder is not on your PATH. Activate it again, or call the binary with its full path.
Build fails with "Killed" or out-of-memory errors
The host does not have enough RAM. Close other services, add swap space, or compile on a machine with at least 4 GB of memory.
First compile is extremely slow
The first build for each platform downloads compilers and frameworks, often more than a gigabyte. Later builds reuse them. Make sure the disk has several gigabytes free.
Dashboard shows every device as offline
The dashboard cannot receive mDNS traffic. Use host networking in Docker, check firewall rules for UDP port 5353, or enable ping-based status in the dashboard settings.
Frequently asked questions
Can I install ESPHome on a Raspberry Pi without Home Assistant?
Yes. Install Python 3.12 or newer, create a virtual environment and use pip, or run the Docker image. Compiles will be slower than on a desktop, and boards with less than 2 GB of RAM may struggle with ESP-IDF builds, but editing and wireless updates work well.
Do I need PlatformIO installed separately?
No. ESPHome installs and manages the build tools it needs, including PlatformIO and the ESP-IDF toolchain, inside its own cache. A separately installed PlatformIO does not interfere, but it is not required.
Can two installations manage the same devices?
They can, as long as both use the same YAML files, including the same OTA passwords and API keys. In practice it is simpler to choose one primary installation and treat the other as a build machine for occasional heavy compiles.
Key takeaways
- Choose the route by where you want configurations stored and which machine should compile.
- pip installs need Python 3.12+ and belong in a virtual environment.
- Docker users should run with host networking so device status works properly.
- Updating ESPHome never changes a device until you install new firmware to it.
- Read the release notes and validate configurations before mass updates.


