I have a problem with OTA flashen of an esp with Esphome.yaml and Home assistant.
If I upload the standard code with a USB / serial converter, I can contact HA and the esp is visual .
After that I try to upload something with OTA and then I cannot connect anymore.
If I use an static IP in the configuration then is this the log output:
INFO Starting log output from 192.168.1.21 using esphome API
INFO Connecting to 192.168.1.21:6053 (192.168.1.21)
WARNING Initial connection failed. The ESP might not be connected to WiFi yet (Error connecting to 192.168.1.21: [Errno 113] No route to host). Re-Trying in 1 seconds
Even when I download the binary and serial flash, the esp no longer comes online.
The only option is to serial flash the original empty .bin file again or use the fallback hotspot.
Only the original .bin works but then I can’t do anything with it.
What is going wrong here or what am I doing wrong?
I have make an site ip but I can’t connect with it.
The only way Is use the node fallback and then select the SSID what I used .
Then connect the esp to HA but then are the settings automatic save to the original setup.
I’m looking to find where the files are for mDNS ,in the logfiles I can see that it is 192.168.1.1
And I don’t know how I must add a domain for my wifi setup.
Is it possible that the esp not completely erased is before I make a new flash?
Or maybe the wrong board select,I have an esp8266MOD compatible with nodeMCU and Huzzah
Strange but it is working now.
Before I flash did I flash an empty .bin , then the binary download from Esphome .
If I change something and I do OTA update then it works.
I think the esp was not completely erased.