I'm trying to use a esp32doit-devkit-v1

I’m trying to use the above board. I copied the details from “the list” but that did not work. Any suggestions?

my code snippet is

esp32:
  platform: espressif32
board: esp32doit-devkit-v1
 

What are you trying to do with it?
The code you show does nothing…

Maybe start with

thanks for the reply. here is my total code

esphome:
  name: 32-soil-moisture
  friendly_name: 32 soil moisture


esp32:
  platform: espressif32
board: esp32doit-devkit-v1
 
# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "xSPemlHe3fu4SxFAh8y9EPSF7uc/xSsj46xUhov9O04="

ota:
  - platform: esphome
    password: "c1b89da70746de31040566e3a5a0053c"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  


  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "32-Soil-Moisture"
    password: "59pb65v8DhDS"

  

captive_portal:

sensor:

  
  - platform: adc
    id: moisture_voltage
    name: "Soil Moisture Voltage"
    pin:  GPIO36
   


 
    type or paste code here

I have a few esp32doit-devkit-v1 on my network and the following works for me:

esp32:
  board: esp32doit-devkit-v1
  framework:
    type: arduino

big THANKS. My sketch seems to pass ok. Odd how coping cont and pasting seems to alter the spacing etc. Bloody YAML

How did you find how to link esp to esphome as I could find an instruction that worked. Also have you found a way to OTA upload without having to press the boot button om the ESP32? Any further help will be appreciates and will reduce my frustration

In fact it should work without boot button. Do you have anything else connected to your esp GPIOs (other than GPIO36)?

no nothing elso

Hi there, strange, i dont have to press the boot button at all to do OTA, even if you use a USB cable to run the flash onto the board it should do so without the need to press the boot button.

Make sure you have the following in your OTA section in your yaml file.

esphome:
  name: lounge
  friendly_name: Lounge
  comment: Temperature and Humidity

esp32:
  board: esp32doit-devkit-v1
  framework:
    type: arduino

logger:

api:
  encryption:
    key: !secret api_key

ota:
  - platform: esphome
    password: !secret ota_password

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

ops I had another go and did not need to press the boot button. i think you guys have unjinked my board. Thank you