I think you are very confused.
Ok maybe so
try pinging the device from your ha server. If its unreable, then theres a firewall conflict. Else try this: Install ESPhome on your normal pc with âpip3 install esphomeâ, then download your yaml, cd in your console to the folder containing that yaml and run âesphome xyz.yaml runâ. After the flash youll get the log output from the esp.
If the esphome device does not connect to wifi, it is not a firewall issue.
Looking at @Rob_Heselwoodâs yaml, he has configured firmware for esp8266 but the device is an esp32.
Did you have the ESP plugged into your HA server via USB cable?
FYI:
The âSâ in USB stands for âserialâ.
If you are going to flash using your PC rather than the HA add-on then donât use NodeMCU-PyFlasher. Use this instead.
So back to the start, plug the ESP32 into your HA server via a USB cable and try the add-on. The device should show up in the list where you found âOTAâ. Failing that, use your PC with the flashing tool I linked to. You still need to compile the .BIN file with ESPhome (best to use the add-on) and then download that .BIN to your PC (itâs an option in the add-on). Then flash with ESPhomeFlasher.
Yep, that wonât work.
⊠Also, make sure you use a data cable not a charging cable. Some USB âchargingâ cables only have connections for the power which caught me out once.
Ok, I received my new ESP32, and thanks everyone for their comments.
Thanks to âsparkydaveâ for directing me to esphome-flasher. The USB option didnât show up in HA even after a reboot and a reconnect of the ESP32, so I compiled and downloaded the binary file, then used esphome-flasher to flash the ESP32. That all went well as it gave me an IP address and also the strength of the wifi signal, which looked promising. I then ran the log file and it didnât show any errors as it did with previous efforts. Then automatically ESP32 was added to the lovelace gui.
1 thing I did notice was that the size of the binary file I just used was over twice the size of a previous one I used, so maybe that was the problem.
Anyway it working now.
Thanks again.
Presumably you changed the yaml file to specify esp32 instead of esp8266. That will change the compiles file size.
Yes, but in previous efforts Iâm sure I did put ESP32, but it doesnât matter now thoâ
It may also have been the bigger files size of the binary file, but again, it doesnât matter.
Thanks
I donât know what you are trying. Where do you see this, and what did you do leading to this.
I have the same problem. Has it finally been fixed? I have 2 other identical ones and they work but I canât get this one to connect.
INFO ESPHome 2024.11.3
INFO Reading configuration /config/esphome/cam-probas-cocina.yamlâŠ
INFO Starting log output from 192.168.1.237 using esphome API
WARNING Canât connect to ESPHome API for 2410c-habitacion @ 192.168.1.237: Error connecting to [AddrInfo(family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, proto=6, sockaddr=IPv4Sockaddr(address=â192.168.1.237â, port=6053))]: [Errno 113] Connect call failed (â192.168.1.237â, 6053) (SocketAPIError)
INFO Trying to connect to 2410c @ 192.168.1.237 in the background
Really hard to tell what your problem is. Do some basic debugging.
First post your yaml.
And the complete log.
Second: Is 192.168.1.237 online?
ping 192.168.1.237
if so, is port 6053 open on 192.168.1.237
nmap -p 6053 192.168.1.237