USB as well as OTA are working. When using OTA, I get:
INFO Resolving IP address of espfridge.local
INFO → 192.168.0.15
INFO Uploading .esphome/build/espfridge/.pioenvs/espfridge/firmware.bin (799488 bytes)
Uploading: [============================================================] 100% Done…
INFO Upload took 6.38 seconds, waiting for result…
INFO OTA successful
INFO Successfully uploaded program.
INFO Starting log output from espfridge.local using esphome API
WARNING Can’t connect to ESPHome API for espfridge.local: Error connecting to [AddrInfo(family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, proto=6, sockaddr=IPv4Sockaddr(address=‘192.168.0.15’, port=6053))]: [Errno 113] Connect call failed (‘192.168.0.15’, 6053) (SocketAPIError)
Here, it gets stuck.
ESP is also not visible in Home assistant anymore. Entities (that worked before) are shown as “unavailable”.
From my Linux client, I can successfully PING 192.168.0.15.
What is wrong? As I can OTA updates, the Wifi connection of the ESP and the API credentials should be okay, right?
I had some checks with I2C before. But after it didn’t work out as expected, I disconnected the I2C from the two pins, but let the config there.
After deleting (commenting out) the following lines, I was able to reach it via API again,