← Todos os guias
ESPHome
ESPHome lets you create and flash custom firmware for ESP8266/ESP32 and similar microcontrollers using simple YAML configuration files, usable either as a Home Assistant add-on or standalone via Docker.
Destino: Any Docker host (or Home Assistant OS/Container)Home AutomationIoTSite oficial ↗Documentação oficial ↗
Este guia foi elaborado a partir da documentação oficial do ESPHome, ligada acima — verifique sempre lá os nomes exatos dos pacotes/versões antes de executar estes comandos num servidor de produção, uma vez que as versões da distribuição e do projeto mudam com o tempo.
1Home Assistant add-on method
In Home Assistant, go to Settings, then the Add-on Store, search for ESPHome and click Install, then Start, then Open Web UI.
2Standalone Docker method (alternative)
docker run --rm --net=host -v "${PWD}":/config -it ghcr.io/esphome/esphome--net=host enables mDNS device discovery on Linux; Docker Desktop users should use -p 6052:6052 instead. Dashboard runs at http://localhost:6052.
3Create a device configuration
Use the dashboard's New Device wizard, or write a YAML file by hand, to define your board and the sensors/components it exposes.
4Compile and flash
Use the dashboard's Install button (or the esphome CLI) to build firmware and flash it to the device over USB or OTA.