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.
How did you install the firmware to the ESP device?
If it was with a serial port, then try to hook it up when the device boots up and see what it says.
And just some random checks.
Can you ping it when it is powered off also? Just to see that you have the right device.
Is the device and your HA in the same IP range? If not then you might have to open up something in the firewall and maybe also NAT table to enable access and routing.
And unless you want to use different password and encryption keys for your devices, then I suggest you move them to the secrets file in the top right corner of the ESPHome screen.
The esb32 board is connected to my laptop, and the led is flashing
INFO Reading configuration /config/esphome/home.yaml...
WARNING GPIO4 is a Strapping PIN and should be avoided.
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 GPIO4 is a Strapping PIN and should be avoided.
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 home.local using esphome API
WARNING Can't connect to ESPHome API for home.local: Error resolving IP address: [Errno -5] No address associated with hostname
INFO Trying to reconnect to home.local in the background
No the homeassistant local:8123 address is 192.xxx.xxx.110, and the the IP address of the board is: 192.xxx.xxx.229. Is that the same as the home.local address. If not I don’t know.
Correcting the GPIO pins in the yaml file didn’t make any difference to adding the integration.
`INFO Reading configuration /config/esphome/esphome.yaml…
INFO Starting log output from esphome.local using esphome API
WARNING Can’t connect to ESPHome API for esphome.local: Error resolving IP address: [Errno -5] No address associated with hostname
INFO Trying to reconnect to esphome.local in the background
``
You seem to have some issues with the mDNS setup.
mDNS is controlled by a mDNS master that is selected automatically between the available clients and then the hosts are populated by that master.
This means the .local domain can not be used as your local DNS domain name.
Not sure if this is the case here, but could be.