From the ESPHome Dashboard, I added a new node and uploaded it via USB.
Flashing sucussfully completes, confirming:
IP Address: 192.168.1.17
The device shows green on the Dashboard and is discovered in HA. If I try to configure it, the connection fails. “Can’t connect to ESP. Please make sure your YAML file contains an ‘api:’ line.”
Looking at the ESPHome Dashboard logs (OTA), I get:
INFO Reading configuration…
INFO Starting log output from test1.local using esphome API
INFO Connecting to test1.local:6053 (18.104.22.168)
WARNING Initial connection failed. The ESP might not be connected to WiFi yet (Error
connecting to 22.214.171.124: timed out). Re-Trying in 1 seconds
The device has an IP address of 192.168.1.17, but it look like it is trying to connect to 126.96.36.199.
Has anyone seen this before?
Have I missed a step somewhere?
I am having a similar issue. I have performed the steps GDA performed with a HELTEC WIFI kit 32. I have been wracking my brain googling everything I can think of. I’ve tried setting a static ip using the provided example but that gives error 111, can’t connect to… I have tried to add an Integration (found and pinged an entry from my router with response) but it fails every time. I have gotten basically every error code associated with setting a static ip but still can’t get my Node connected.
Of note, I’ve also tried to connect and run programs on Arduino IDE. I can run some of the Example sketches that show different things on the tiny screen, but hit a wall with ESPHome. I’m sort of a newbie with both but there’s probably something I’m doing/not doing that could fix it, I just need a nudge in the right direction.
Did you perform the initial load of ESPHome firmware via the USB connection and a flash utility? If not, that’s your issue. Use the … option of the ESPHome menu, select Compile, and when it completes, then select Download. Otherwise, use a USB cable to connect your ESP device to the HA system and select that USB/tty/serial device in the upper-right corner.