ESPHome config generator
Start from one of our project guides or a blank config, choose a board and what's wired to it. The YAML updates as you go, with a fresh encryption key that secures both Home Assistant and over-the-air updates, and warns you about pin choices that cause boot problems.
Your config
How to use the config
- In Home Assistant, open the ESPHome Device Builder and add a new device with the same name. When it offers to install, choose Skip — you're about to replace its config.
- Open the new device's YAML, select everything, and paste in the config above. Keep the
wifi_ssidandwifi_passwordlines as they are; they read from your ESPHome Secrets file. - Install it over USB the first time. After that, updates go over Wi-Fi, encrypted with the same key as the API.
- Home Assistant discovers the device and asks for the encryption key. Copy it from the
api:section.
What the generated config includes
Every config gets an encrypted Home Assistant API connection, encrypted over-the-air updates that use the same key, and a fallback hotspot with a captive portal. If the board can't reach your Wi-Fi, it starts its own network so you can fix the settings from a phone instead of plugging into USB.
ESP32 configs use the ESP-IDF framework, which has been ESPHome's default for ESP32 since the 2026.1 release. It builds faster and uses less flash than Arduino.
Updating a device that still uses an OTA password
Older configs, including ones from this generator before October 2026, protected updates with a separate OTA password. ESPHome now recommends the encryption: line instead: the API key already authenticates updates, and dropping the password saves flash and RAM. A device flashed with the old password still asks for it once, so the first update after switching needs both:
ota:
- platform: esphome
password: "your-old-ota-password"
encryption:
allow_plaintext_upload: true
Install that once, then delete the password and allow_plaintext_upload lines, leaving a bare encryption:. Every update after that is encrypted. Do this before ESPHome 2027.3.0, which removes the old password fallback entirely.
Several of the same part
Relays, DS18B20 probes, leak probes, PIR sensors and push buttons can be added more than once with the count next to them. Each one gets its own pin, and when a default pin is already taken the generator picks the next free safe pin and shows it in the form. If a small board like the ESP32-C3 or D1 Mini runs out of pins, it tells you.
Why some pins trigger warnings
A few ESP32 pins are read at power-up to decide how the chip boots. Wire a relay module or pull-up to one of them and the board can refuse to start, usually in a way that looks like a bad flash. The generator flags those pins, plus input-only pins assigned to outputs and pins used twice. For the full list, see the ESP32 safe pin finder.
Share or bookmark a config
The page address updates as you change settings, so you can bookmark a config or use Copy share link to post it on a forum. The link holds the board, name, parts and any pins you changed. It never contains your keys: whoever opens it gets a fresh encryption key and password.
Generated keys stay on your computer
The encryption key and passwords are created by your browser's random number generator. They're never sent to this site.
Frequently asked questions
Is the ESPHome config generator free?
Yes. It runs in your browser, needs no sign-up, and produces a complete ESPHome YAML config for the board and sensors you pick.
Are the generated ESPHome configs tested?
Every combination is checked with ESPHome's own config validator, and free pins are chosen to avoid the ones that cause boot problems.