← Tous les guides
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.
Système : Any Docker host (or Home Assistant OS/Container)Home AutomationIoTSite officiel ↗Documentation officielle ↗
Ce guide est élaboré à partir de la documentation officielle de ESPHome, dont le lien figure ci-dessus — vérifiez toujours les noms exacts des paquets/versions avant d'exécuter ces commandes sur un serveur de production, car les versions de la distribution et du projet évoluent avec le temps.
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.