Installing ESPHome in Home Assistant
Your kit is ordered or already comfortably in hand. This lesson installs the ESPHome add-on inside Home Assistant, the software foundation every single device this module builds will run through, before any wiring happens in Lesson 4.
What the ESPHome add-on is
The ESPHome add-on is a small program that runs inside Home Assistant OS, providing a dashboard where you create, edit, compile, and upload configurations for your ESP32 and ESP8266 devices. It's genuinely the same kind of add-on you installed in earlier modules, Zigbee2MQTT in Module 9 being a close parallel, a self-contained tool that lives alongside Home Assistant rather than replacing any part of it.
The ESPHome add-on vs the ESPHome integration in HA
The add-on is where you build and carefully manage device configurations, a genuine workshop, essentially. The ESPHome integration is what actually connects a finished, flashed device to Home Assistant so its sensors and switches properly appear as entities. Installing the add-on today gets your workshop running, the integration connects itself automatically the first time a device finishes flashing in Lesson 4.
Installing the add-on step by step
Open Settings, then Add-ons, then the Add-on Store, exactly the same path you already used to install Zigbee2MQTT back in Module 9. Search for "ESPHome", select the official add-on published directly by the Home Assistant team, and click Install. Once installation finishes, enable Start on Boot and Show in Sidebar, then click Start, within a minute or two the add-on's own dashboard becomes fully available from your sidebar.
The ESPHome dashboard / Device Builder: what you'll see
On first open, the dashboard is empty, a single "New Device" button and nothing else, since you haven't created any device configurations yet. This is exactly as expected, unlike Zigbee2MQTT's dashboard which shows paired devices, ESPHome's dashboard shows configurations you've written, whether or not the physical hardware exists yet.
What should be ready before clicking New Device
Nothing physical needs to be ready today, your ESP32 doesn't even need to have arrived yet. What's worth having ready is your WiFi network name and password, since the New Device wizard asks for them and stores them securely for use across every device you create from here forward.
New Device and the YAML file: preview only, no clicking yet
Click New Device once, purely to look, name it something temporary like "test", and step through the wizard until it generates a starter YAML file. Read it, don't compile it, this is today's goal, seeing the shape of a configuration file before Lesson 5 explains every section of it in detail. Delete this test device afterward, Lesson 4 creates the real one deliberately and carefully.
Compilation: what happens when you click Install
Clicking Install turns your YAML text file into actual firmware, a binary file the ESP32's chip can run. This compilation step happens on your Home Assistant server itself and can take anywhere from thirty seconds to a couple of minutes depending on your server's hardware, watching the log scroll by is normal and expected, not a sign of trouble.
USB vs OTA: when to use which
USB flashing requires physically connecting your board to a computer, always used the very first time, since a brand-new board has no ESPHome firmware yet to receive an update over the network. OTA, over-the-air, updates a device wirelessly once it's already running ESPHome firmware and connected to your WiFi, considerably more convenient for every update after the first. Lesson 4 uses USB for your very first flash, later lessons lean on OTA.
Documentation, just like in Module 9
Add a new section to your smart home notebook titled "ESPHome", and carefully record today's installation date along with the add-on's current version number. This mirrors exactly the documentation habit Module 9 established for your Zigbee coordinator, a small note written today saves real, meaningful time during troubleshooting many months from now.
Common problems installing the add-on
The add-on occasionally fails to start immediately after installation, usually resolved by waiting a minute and clicking Start again. If the add-on store doesn't show ESPHome at all, confirm your Home Assistant installation type supports add-ons, Home Assistant OS and Supervised both do, a bare Core installation does not, in which case ESPHome can still be used as a separate standalone tool, a detail outside this module's scope.
Updating the ESPHome add-on
The add-on itself receives updates through the same Add-ons page, separate from updates to individual device firmware. Follow the same calm update discipline Module 8 established, read the changelog, back up first, update when you have time to verify things afterward rather than reflexively the moment a notification appears.
ESPHome alongside Zigbee: what doesn't change in HA
Installing ESPHome touches nothing about your existing Zigbee setup, your coordinator, your paired devices, your Zigbee2MQTT or ZHA configuration all continue exactly as before. Home Assistant simply gains a second, entirely independent add-on running alongside the first, the two never interact directly with each other.
What we're not doing in this lesson
No real device is created or flashed today, no wiring, no YAML you intend to keep. Today is purely about getting the add-on installed, running, and briefly previewed, Lesson 4 does the real work with your actual hardware in hand.
Exercise after this lesson
Install the ESPHome add-on, start it, create and delete one temporary test device just to see the YAML preview, and write the installation date and add-on version in your notebook. If your ESP32 has already arrived, resist unboxing it until Lesson 4, today's exercise is deliberately software-only.
Key takeaways
Install the official ESPHome add-on from the Add-on Store, same path as Module 9's add-ons.
The add-on is your workshop, the integration connects a finished device once flashed.
First flash always uses USB, later updates can use OTA over WiFi.
Today is software-only, no wiring or real device yet.
With the add-on installed and running, Lesson 4 wires your ESP32 and flashes its very first real configuration.
A real story: the add-on that seemed to vanish
A reader in this course's community installed the ESPHome add-on, closed their browser tab, and returned the very next day certain it had somehow disappeared, nowhere to be found in the sidebar. The add-on was actually running fine the entire time, they simply hadn't enabled Show in Sidebar during installation, a single small checkbox that's genuinely easy to miss the first time through any add-on's setup screen. Checking Settings, then Add-ons, then the add-on itself, quickly confirmed it had been there all along, just hidden from the sidebar shortcut the whole time.
Why installing the add-on before buying hardware is deliberate
Getting the software running first, well before any hardware arrives, means Lesson 4's wiring session can focus purely on hardware itself, without a software installation step awkwardly competing for your attention at the very same time. This sequencing mirrors Module 9's own approach quite exactly, install and genuinely understand the software foundation first, then bring physical devices online against a foundation that's already proven stable and reliable.
Comparing add-on resource usage to Zigbee2MQTT
The ESPHome add-on uses a modest, generally noticeable amount of storage for compiling firmware, somewhat more than Zigbee2MQTT's own footprint, since compilation temporarily generates larger build files. This is rarely a concern on typical Home Assistant hardware from Module 3, but worth knowing if your server is already running close to its storage limit.
Naming your first test device sensibly
Even a throwaway test device benefits from an obviously temporary name, "test" or "delete-me", rather than something that could later be confused with your real device from Lesson 4. This small habit prevents the mild confusion of two similarly-named entries cluttering your dashboard once real devices start accumulating.
What the generated YAML preview actually shows
The starter file the wizard generates includes a handful of foundational sections, the device's name, its WiFi credentials reference, and a small API and logging setup, but no sensors or switches yet, those get added by hand in Lesson 5 once you understand what each section does. Seeing this skeleton today, without editing it, makes Lesson 5's deeper explanation considerably easier to follow.
Co dalej: what's next
Lesson 4 finally brings your ESP32 into the picture, wiring nothing yet beyond a simple USB connection, creating your first real device configuration, and watching it appear in Home Assistant for the very first time.
Where the ESPHome add-on stores its files
Every device configuration you create lives as a YAML file inside the add-on's own storage area on your Home Assistant server, entirely separate from Home Assistant's own configuration.yaml file that Module 3 introduced. This separation matters, editing or deleting Home Assistant's own configuration doesn't touch your ESPHome device files, and vice versa, the two systems keep their own independent files even though both run on the same server.
Backing up ESPHome configurations
Module 8's full-system backup habit already covers ESPHome's configuration files automatically, since they live within Home Assistant's own storage and get swept up in the same nightly backup routine. No separate backup step is required specifically for ESPHome, one more reason that module's backup discipline continues paying off well beyond the lessons that originally introduced it.
Accessing the add-on's log
Every add-on in Home Assistant has its own Log tab, accessible from the add-on's info page under Settings, then Add-ons. ESPHome's log records startup messages, compilation output, and any errors the add-on itself encounters, distinct from the per-device logs you'll view once individual devices are flashed and running in later lessons.
Add-on permissions and network access
During installation, Home Assistant may show a brief note about the add-on's requested permissions, network access being the relevant one here, since ESPHome needs to reach devices over your local network for OTA updates. This is entirely expected and safe to accept, the same category of permission Zigbee2MQTT and other add-ons already use.
If the Add-on Store search comes up empty
Occasionally the Add-on Store's list of available add-ons hasn't refreshed recently, showing an outdated or incomplete catalog. Refreshing the add-on store's repositories, an option found in the store's top-right menu, usually resolves this, followed by searching for ESPHome again a moment later.
Understanding the compile queue
With only one device configuration today, the compile queue isn't yet relevant, but it's worth knowing it exists, once you have several devices, ESPHome compiles one at a time, queuing additional requests rather than running them simultaneously. This becomes more noticeable later in this module, when you're maintaining more than one device at once.
The Secrets file, briefly previewed
ESPHome stores your WiFi password in a separate secrets file rather than directly inside each device's own configuration, a security practice Lesson 5 explains in full. Today, simply notice that the wizard asks for your WiFi credentials once and reuses them automatically for every device you create afterward, you won't need to retype them each time.
Comparing today's install to Module 3's Home Assistant install
Installing Home Assistant itself in Module 3 was a considerably larger undertaking, choosing hardware, choosing an installation method, waiting through a lengthy first boot. Installing the ESPHome add-on today is a small fraction of that effort, a few clicks inside an already-running system, a genuine reflection of how much groundwork earlier modules have already laid.
A note on running ESPHome outside Home Assistant
ESPHome can technically run as a standalone command-line tool on any computer, entirely independent of Home Assistant, some advanced users prefer this for automation-heavy workflows. This course uses the add-on exclusively, it's simpler, requires no separate installation, and integrates automatically, the standalone approach is a detail worth knowing exists but not one this module needs.
Browser compatibility for the ESPHome dashboard
The ESPHome dashboard works reliably in any modern browser, Chrome, Firefox, Safari, or Edge, no special plugin required for the dashboard itself. USB flashing, when you reach it in Lesson 4, does require a browser that supports the WebSerial standard, currently Chrome and Edge support it well, Firefox and Safari currently do not, worth knowing now so you're not caught off guard when that lesson arrives.
Mobile access to the ESPHome dashboard
You can view the ESPHome dashboard from a phone or tablet browser, useful for a quick check of a device's status while away from your desk. Creating new devices, editing YAML, and flashing over USB are all considerably more comfortable on a full computer, this course assumes a laptop or desktop for the hands-on portions of this module.
Restarting the add-on safely
Restarting the ESPHome add-on, from its info page under Settings, then Add-ons, briefly interrupts the dashboard but does not affect any already-flashed devices, which keep running independently on their own firmware regardless of whether the add-on itself is running. This distinction, between the add-on's own availability and a device's independent operation, is worth remembering the first time you restart the add-on and briefly worry a working sensor has stopped reporting.
Uninstalling the add-on, if you ever need to
Uninstalling the add-on removes the dashboard and your stored configurations, but does not affect devices already flashed and running, they continue reporting to Home Assistant through their existing integration entries. Reinstalling the add-on later starts with an empty dashboard again, worth exporting or noting down your YAML configurations elsewhere first if you ever plan to remove and reinstall the add-on for any reason.
A quick tour of the dashboard's settings menu
The dashboard's small gear icon opens a settings panel controlling things like default WiFi credentials and general dashboard appearance, mostly cosmetic details at this early stage. It's genuinely worth a brief look today simply to know it exists, you won't need to change anything here for this module's specific projects, the sensible defaults work perfectly well for everything this course covers from here forward.
Why this lesson matters even though nothing gets built yet
It can feel anticlimactic to spend an entire lesson installing software without wiring a single sensor, but a properly installed, well-understood add-on is exactly what makes Lesson 4's first real device go smoothly rather than becoming a troubleshooting session about two unfamiliar things at once, software and hardware together. Separating these concerns, one lesson at a time, is a deliberate choice this course has made consistently since Module 1.
Checking add-on health after installation
A healthy, properly running ESPHome add-on shows a green "Running" indicator clearly on its info page, and its dashboard loads promptly from the sidebar without any error message appearing. If the indicator instead shows anything else, stopped, or a clear error state, checking the add-on's own log tab usually reveals a clear, specific reason within just the first few lines.
Setting expectations for Lesson 4
With the add-on installed, tested, and carefully documented, Lesson 4 is where this module genuinely starts feeling hands-on, unboxing your ESP32, connecting it properly by USB, and watching real firmware compile and upload successfully for the very first time. Everything covered in this lesson exists specifically to make that next important step go as smoothly and calmly as possible.