The NodeMCU ESP32 board (in some cases also known as ESP32-DevkitC)
is fully supported by ESPHome. Simply select
the ESPHome wizard asks you for your platform and
nodemcu-32s as the board type.
# Example configuration entry esphome: name: livingroom platform: ESP32 board: nodemcu-32s
The ESP32 boards often use the internal GPIO pin numbering on the board, this means that you don’t have to worry about other kinds of pin numberings, yay!
Note that in certain conditions you can use the pins marked as
INTERNAL in the above image.
GPIO0is used to determine the boot mode on startup. It should therefore not be pulled LOW on startup to avoid booting into flash mode. You can, however, still use this as an output pin.
GPIO39can not be used as outputs (even though GPIO stands for “general purpose input output”…).
GPIO39: These pins can be used with the Analog To Digital Sensor to measure voltages.
GPIO2: This pin is connected to the blue LED on the board as seen in the picture above. It also supports the touch pad binary sensor as do the other pins marked
touchin the above image.
5Vis connected to the 5V rail from the USB bus and can be used to power the board. Note that the UART chip is directly connected to this rail and you therefore cannot supply other voltages into this pin.
# Example configuration entry esphome: name: livingroom platform: ESP32 board: nodemcu-32s binary_sensor: - platform: gpio name: "Pin GPIO23" pin: GPIO23