← Tutte le guide
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.
Sistema: Any Docker host (or Home Assistant OS/Container)Home AutomationIoTSito ufficiale ↗Documentazione ufficiale ↗
Questa guida è redatta a partire dalla documentazione ufficiale di ESPHome, linkata sopra — verifica sempre lì i nomi esatti di pacchetti/versioni prima di eseguire questi comandi su un server di produzione, poiché le versioni della distribuzione e del progetto cambiano nel 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.