I keep getting this message when trying to add my ESPHome module into the Home Assistant: Can’t connect to ESP. Please make sure your YAML file contains an ‘api:’ line.
INFO ESPHome 2024.12.4
INFO Reading configuration /config/esphome/esphome-web-a8b0d8.yaml...
WARNING GPIO2 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
WARNING GPIO5 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Starting log output from esphome-web-a8b0d8.local using esphome API
WARNING Can't connect to ESPHome API for esphome-web-a8b0d8.local: Error resolving IP address: [Errno -5] No address associated with hostname (APIConnectionError)
INFO Trying to connect to esphome-web-a8b0d8.local in the background