After I installed the yaml file to my esp32dev board, I then went add the ESPhome integration.
I filled the host details and pressed ‘Submit’ , then I got this error: On that page to add the esp32dev board, It also asks to ‘Please enter the connection settings’. My board is ESP32-WROOM-32, so what should I have for the board name.
Can’t connect to ESP. Please make sure your YAML file contains an ‘api:’ line.
The esp32dev board is connected to my laptop by usb cable.
The said file does have an ‘api’ line, unless there is something wrong with it.
esphome:
name: home
platform: ESP32
board: esp32dev
wifi:
ssid: "xxxxxxxxx"
password: "xxxxxxxxx"
# Enable Home Assistant API
api:
port: 6053
password: ''
reboot_timeout: 15min
ota:
safe_mode: true
port: 3232
password: ''
i2c:
sda: 21
scl: 22
scan: True
id: bus_a
sensor:
- platform: bme280
temperature:
name: "Lounge Temperature"
oversampling: 16x
pressure:
name: "Lounge Pressure"
humidity:
name: "Lounge Humidity"
address: 0x76
update_interval: 60s
- platform: bh1750
name: "BH1750 Illuminance"
address: 0x23
update_interval: 60s
# Enable fallback hotspot (captive portal) in case wifi connection fails
#ap:
# ssid: "Home Fallback Hotspot"
# password: "ZfMkVWyPrmBn"
captive_portal:
# Enable logging
logger: