I have installed my yaml file on an esp32 using esphome device builder. When I try to add it to esphome I get the message
Unable to connect to the ESPHome device. Make sure the device’s YAML configuration includes an api section.
I already have an api section and ping works when I use the ip i entered in my yaml file. I’ve tried this with and without pihole. I’m running home assistant 2025.12.5. Esphome and esphome device builder are both up to date.
esphome:
name: bp
friendly_name: bp
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "Z09LISsXNw7p9XkQ8t7Ufc1flTjchJC3xgHV926Yldg="
ota:
- platform: esphome
password: "25b16276ae6110e3a96bcc7a8acb0acf"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
static_ip: 192.168.zzz.yy
gateway: 192.168.zzz.254
subnet: 255.255.255.0
use_address: 192.168.zzz.yy
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Bp Fallback Hotspot"
password: "WdyQN3eYX49m"
captive_portal:
binary_sensor:
- platform: gpio
name: "bedpresense"
pin:
number: GPIO14
inverted: true
mode:
input: true
pullup: true
I have no idea how to proceed.