I have configured HA on my Raspberry Pi Compute Module 4, it works fairly well and collects data from different devices.
But recently, I’ve decided to add ESPHome and have issues during adding a device with error “Can’t connect to ESP. Please make sure your YAML file contains an ‘api:’ line.”.
By direct access in the browser the ESPHome shows the log and data. Even the port is responding from the laptop.
But when I’m trying to ping the local IP 192.168.88.125 from the terminal on HA – it’s not reachable.
The config of ESPHome is below:
esphome:
name: esphome-web-6ac0f2
friendly_name: kitchen-dht
esp8266:
board: nodemcuv2
framework:
version: recommended
logger:
level: DEBUG
api:
encryption:
key: "w564zMwc43MNriycjYmy57nIF8rb3CgOnWyr+z6gryQ="
ota:
- platform: esphome
improv_serial:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
web_server:
sensor:
platform: dht
pin: D2
model: AM2302
temperature:
name: "Kitchen Temperature"
humidity:
name: "Kitchen Humidity"
update_interval: 60s
Screenshot of the ping and of the ESPHome in the browser attached. You can see in the log that I’ve tried to connect to the port 6053 from laptop with a command “nc -z -v 192.168.88.125 6053”.
I would be deeply thankful for the help.