Skip to content

Understanding Boards in ESPHome

A board (circuit board) is the base for your ESPHome smart home device. It serves as the foundation for connecting electronic components. The main role of a board is to provide structure and support for the components. It also facilitates electrical connections between these components.

You can find out more basics about circuit boards generally on the Wikipedia page for ‘printed circuit board’.

Every board has a name it is known as, which is often printed directly on a part of the board. This name/board type can be in different places depending on the type/size of the board or be absent. If you cannot find the board name either on the board or in information about your board then you’ll need to either connect your board using an appropriate cable when building your project in ESPHome Device Builder or choose a board variant to start building.

  • Check each side of your board. You’ll be looking for ESP BK RP RTL LN or nRF and other numbers/letters after it. There are other boards that are supported which you can find out more about; for ESP32 see the ESP32 variants.

    Two opposite sides of an ESP board, showing that you should check every side for the printed name.
    Check every side of the board for the printed name; details can hide on the reverse.
  • On your board there is text that tells you the name/variant. To read very small text, use a magnifying lens, or take a photo with a camera and zoom in.

    Close-up of a board showing the printed variant name ESP32-S2.
    Example shows an ESP32-S2 variant; spacing and dashes vary between boards.
  • Alternatively, you can check details from where you purchased the board or any documents enclosed when you received it if you cannot find variant information on your board and connecting your board to auto-detect the details is not an option.

    A purchase receipt listing a board variant name next to the ESPHome board selection interface.
    An invoice or receipt showing a board variant name, beside the UI for selecting that board.

If you want to start a configuration file for a project or explore what the possibilities are for building ESPHome smart home devices you can either start an empty configuration project which will create a blank YAML file which can be found under the advanced setup options.

The create new project screen, with advanced options expanded to reach empty configuration.
Expand the advanced options on the create new project screen and select empty configuration.

Alternatively you can choose any generic variant of any board (displayed below: ESP32, ESP32-S2, ESP32-S3, ESP32-C3, ESP32-C6, ESP32-H2, ESP8266, RP2040/RP2350, BK72xx, RTL87xx, LN882x, nRF52 and more board variants may be available) to get started and test out what’s possible and change the board using the interface or re-define in the YAML file at a later date. Be cautious when changing a board.

A list of generic board variants shown as selectable pills in the ESPHome interface.
Example above shows a list of some generic variants. Other generic boards may work with ESPHome.
The select-your-board screen in ESPHome showing example generic board variants with search and filters.
The board selection view when starting a new project; use search and filters to find a variant.

To change a board you selected at setup, you first need to find and select the [Board name] Platform in the Device navigator menu. Then in the central section with input fields and places to type you should find a dropdown that allows you to select another variant.

The Device navigator with the board platform selected and the dropdown for choosing another variant.
Select the board platform in the Device navigator, then use the dropdown to pick another variant.

The YAML file can also be edited directly to change the platform variant. The YAML and the input fields reflect each other so changing one will also change the other.

YAML code that changes when you select a new variant from the board platform dropdown.
The YAML updates when you select a new variant from the board platform dropdown.