Can't connect to ESPHome API for

Hallo all,
I have problems with connecting to ESPHOME. The errro message in the log is:

Can’t connect to ESPHome API for 192.168.178.81 @ 192.168.178.81: Error connecting to (‘192.168.178.81’, 6053): [Errno 113] Connect call failed (‘192.168.178.81’, 6053)
10 december 2021 23:08:39/usr/local/lib/python3.9/site-packages/aioesphomeapi/reconnect_logic.py

I worked fine for some weeks but lost connection. I can update de ESP32 OTA and then I see in the log of the module IP 192.168.178.80

[13:16:38][C][wifi:488]: WiFi:
[13:16:38][C][wifi:350]: Local MAC: 58:BF:25:83:AA:08
[13:16:38][C][wifi:351]: SSID: [redacted]
[13:16:38][C][wifi:352]: IP Address: 192.168.178.80

I can ping the divice at address 192.168.178.80
Hassio runs on Odroid Hassio blue device
Home Assistant OS version 6.6
Home Assistant Core 21.11.5
I don’t know if it is connected with the problem but the python path ends lib/perl5 , nothing /python3.9/???

any insite welcome!

The error message is about ‘192.168.178.81’, whereas you talk about module IP 192.168.178.80.
Are there different ESP32? Or has the IP changed for your ESP32, if there is only one?

Only one esp32 board, and yes the board ip ends on 80, and from the log, HA want to connect to ip ending 81

If you look up Configuration->Integrations->ESPHome, are there one or two ESP32?

Only one, but because it worked OK before, I uninstalled it and then installed it again. No errors in the log

2021-12-10 23:06:18,869 INFO 200 GET /static/js/vendor/materialize/materialize.min.js?hash=4be20daf (0.0.0.0) 8.69ms
2021-12-10 23:06:18,878 INFO 200 GET /static/js/vendor/ace/ace.js?hash=65322f49 (0.0.0.0) 5.80ms
2021-12-10 23:06:18,894 INFO 200 GET /static/js/esphome/index-e0440f6f.js (0.0.0.0) 3.76ms
2021-12-10 23:06:19,125 INFO 200 GET /static/fonts/material-icons/MaterialIcons-Regular.woff2 (0.0.0.0) 1.36ms
2021-12-10 23:06:19,258 INFO 200 GET /static/js/vendor/ace/theme-dreamweaver.js (0.0.0.0) 1.64ms
2021-12-10 23:06:19,262 INFO 200 GET /static/js/vendor/ace/mode-yaml.js (0.0.0.0) 1.98ms
2021-12-10 23:06:19,278 INFO 200 GET /devices (0.0.0.0) 1.82ms
2021-12-10 23:06:19,310 INFO 200 GET /static/images/favicon.ico?hash=2655a073 (0.0.0.0) 1.40ms
2021-12-10 23:06:19,364 INFO 101 GET /ace (0.0.0.0) 0.94ms
2021-12-10 23:06:19,366 INFO Running command ‘esphome --dashboard -q vscode --ace /config/esphome’
2021-12-10 23:09:40,188 INFO 200 GET / (0.0.0.0) 3.20ms
2021-12-10 23:09:40,217 INFO 200 GET /static/fonts/material-icons/material-icons.css?hash=ead4c276 (0.0.0.0) 3.92ms
2021-12-10 23:09:40,236 INFO 200 GET /static/js/vendor/jquery/jquery.min.js?hash=12108007 (0.0.0.0) 7.08ms
2021-12-10 23:09:40,240 INFO 200 GET /static/css/vendor/materialize/materialize.min.css?hash=ec1df3ba (0.0.0.0) 9.13ms
2021-12-10 23:09:40,250 INFO 200 GET /static/css/esphome-2.css?hash=95c08d5a (0.0.0.0) 6.37ms
2021-12-10 23:09:40,255 INFO 200 GET /static/js/vendor/jquery-ui/jquery-ui.min.js?hash=cab3392d (0.0.0.0) 8.92ms
2021-12-10 23:09:40,270 INFO 200 GET /static/js/vendor/materialize/materialize.min.js?hash=4be20daf (0.0.0.0) 10.56ms
2021-12-10 23:09:40,273 INFO 200 GET /static/js/vendor/jquery-validate/jquery.validate.min.js?hash=aad785d4 (0.0.0.0) 8.04ms
2021-12-10 23:09:40,280 INFO 200 GET /static/js/vendor/ace/ace.js?hash=65322f49 (0.0.0.0) 4.86ms
2021-12-10 23:09:40,447 INFO 200 GET /static/js/esphome/index-e0440f6f.js (0.0.0.0) 3.69ms
2021-12-10 23:09:40,917 INFO 200 GET /static/fonts/material-icons/MaterialIcons-Regular.woff2 (0.0.0.0) 1.38ms
2021-12-10 23:09:41,145 INFO 200 GET /static/js/vendor/ace/theme-dreamweaver.js (0.0.0.0) 1.69ms
2021-12-10 23:09:41,149 INFO 200 GET /static/js/vendor/ace/mode-yaml.js (0.0.0.0) 2.02ms
2021-12-10 23:09:41,166 INFO 200 GET /devices (0.0.0.0) 1.84ms
2021-12-10 23:09:41,185 INFO 200 GET /static/images/favicon.ico?hash=2655a073 (0.0.0.0) 1.82ms
2021-12-10 23:09:41,194 INFO 101 GET /ace (0.0.0.0) 0.93ms
2021-12-10 23:09:41,213 INFO Running command ‘esphome --dashboard -q vscode --ace /config/esphome’
2021-12-11 13:16:34,366 INFO 200 GET / (0.0.0.0) 1.37ms
2021-12-11 13:16:34,394 INFO 200 GET /static/fonts/material-icons/material-icons.css?hash=ead4c276 (0.0.0.0) 2.16ms
2021-12-11 13:16:34,406 INFO 200 GET /static/css/esphome-2.css?hash=95c08d5a (0.0.0.0) 2.19ms
2021-12-11 13:16:34,411 INFO 200 GET /static/css/vendor/materialize/materialize.min.css?hash=ec1df3ba (0.0.0.0) 2.84ms
2021-12-11 13:16:34,421 INFO 200 GET /static/js/vendor/jquery-validate/jquery.validate.min.js?hash=aad785d4 (0.0.0.0) 2.45ms
2021-12-11 13:16:34,425 INFO 200 GET /static/js/vendor/jquery/jquery.min.js?hash=12108007 (0.0.0.0) 2.41ms
2021-12-11 13:16:34,430 INFO 200 GET /static/js/vendor/jquery-ui/jquery-ui.min.js?hash=cab3392d (0.0.0.0) 2.11ms
2021-12-11 13:16:34,437 INFO 200 GET /static/js/vendor/materialize/materialize.min.js?hash=4be20daf (0.0.0.0) 2.19ms
2021-12-11 13:16:34,446 INFO 200 GET /static/js/vendor/ace/ace.js?hash=65322f49 (0.0.0.0) 6.02ms
2021-12-11 13:16:34,465 INFO 200 GET /static/js/esphome/index-e0440f6f.js (0.0.0.0) 4.16ms
2021-12-11 13:16:35,107 INFO 200 GET /static/fonts/material-icons/MaterialIcons-Regular.woff2 (0.0.0.0) 2.01ms
2021-12-11 13:16:35,112 INFO 200 GET /static/js/vendor/ace/theme-dreamweaver.js (0.0.0.0) 2.16ms
2021-12-11 13:16:35,118 INFO 200 GET /static/js/vendor/ace/mode-yaml.js (0.0.0.0) 2.08ms
2021-12-11 13:16:35,125 INFO 200 GET /static/images/favicon.ico?hash=2655a073 (0.0.0.0) 2.22ms
2021-12-11 13:16:35,139 INFO 200 GET /devices (0.0.0.0) 4.40ms
2021-12-11 13:16:35,144 INFO 101 GET /ace (0.0.0.0) 1.68ms
2021-12-11 13:16:35,146 INFO Running command ‘esphome --dashboard -q vscode --ace /config/esphome’
2021-12-11 13:16:36,654 INFO 200 GET /static/js/esphome/c.8c24b434.js (0.0.0.0) 2.64ms
2021-12-11 13:16:36,681 INFO 200 GET /static/js/esphome/c.9fbc2162.js (0.0.0.0) 2.35ms
2021-12-11 13:16:36,688 INFO 200 GET /static/js/esphome/c.2cdbdbed.js (0.0.0.0) 3.66ms
2021-12-11 13:16:36,694 INFO 200 GET /static/js/esphome/c.42357ee2.js (0.0.0.0) 3.52ms
2021-12-11 13:16:36,704 INFO 200 GET /static/js/esphome/c.82ae9110.js (0.0.0.0) 5.86ms
2021-12-11 13:16:36,805 INFO 200 GET /static/js/esphome/c.ae5497fd.js (0.0.0.0) 1.78ms
2021-12-11 13:16:36,853 INFO 101 GET /logs (0.0.0.0) 1.32ms
2021-12-11 13:16:36,855 INFO Running command ‘esphome --dashboard logs /config/esphome/paddestoelen-regelaar.yaml --device OTA’
2021-12-11 13:16:39,906 INFO 304 GET /devices (0.0.0.0) 3.81ms
2021-12-11 13:16:44,920 INFO 304 GET /devices (0.0.0.0) 3.22ms
2021-12-11 13:16:49,926 INFO 304 GET /devices (0.0.0.0) 1.41ms
2021-12-11 13:16:54,934 INFO 304 GET /devices (0.0.0.0) 1.40ms
2021-12-11 13:16:59,956 INFO 304 GET /devices (0.0.0.0) 1.46ms
2021-12-11 13:17:04,979 INFO 304 GET /devices (0.0.0.0) 1.39ms
2021-12-11 13:17:09,982 INFO 304 GET /devices (0.0.0.0) 1.41ms
2021-12-11 13:17:14,977 INFO 304 GET /devices (0.0.0.0) 1.44ms
2021-12-11 13:17:19,989 INFO 304 GET /devices (0.0.0.0) 1.41ms
2021-12-11 13:17:25,000 INFO 304 GET /devices (0.0.0.0) 3.05ms
2021-12-11 13:17:30,014 INFO 304 GET /devices (0.0.0.0) 1.75ms
2021-12-11 13:17:34,735 INFO 200 GET /static/js/esphome/c.82e709d2.js (0.0.0.0) 2.54ms
2021-12-11 13:17:34,810 INFO 200 GET /static/js/esphome/c.849528ae.js (0.0.0.0) 1.82ms
2021-12-11 13:17:34,818 INFO 200 GET /static/js/esphome/c.989b6db0.js (0.0.0.0) 1.33ms
2021-12-11 13:17:35,000 INFO 304 GET /devices (0.0.0.0) 1.67ms
2021-12-11 13:17:40,439 INFO 304 GET /devices (0.0.0.0) 3.13ms
2021-12-11 13:17:45,477 INFO 304 GET /devices (0.0.0.0) 3.61ms
2021-12-11 13:17:50,489 INFO 304 GET /devices (0.0.0.0) 3.54ms
2021-12-11 13:17:55,520 INFO 304 GET /devices (0.0.0.0) 1.46ms
2021-12-11 13:18:00,535 INFO 304 GET /devices (0.0.0.0) 2.04ms
2021-12-11 13:18:05,583 INFO 304 GET /devices (0.0.0.0) 3.16ms
2021-12-11 13:18:10,634 INFO 304 GET /devices (0.0.0.0) 3.89ms
2021-12-11 13:18:15,654 INFO 304 GET /devices (0.0.0.0) 2.36ms
2021-12-11 13:18:20,699 INFO 304 GET /devices (0.0.0.0) 1.41ms
2021-12-11 13:18:25,761 INFO 304 GET /devices (0.0.0.0) 1.40ms
2021-12-11 13:18:30,793 INFO 304 GET /devices (0.0.0.0) 1.69ms
2021-12-11 13:18:35,837 INFO 304 GET /devices (0.0.0.0) 1.41ms
2021-12-11 13:18:40,885 INFO 304 GET /devices (0.0.0.0) 1.40ms
2021-12-11 13:18:45,935 INFO 304 GET /devices (0.0.0.0) 1.53ms
2021-12-11 13:18:50,972 INFO 304 GET /devices (0.0.0.0) 1.87ms
2021-12-11 13:18:56,011 INFO 304 GET /devices (0.0.0.0) 4.13ms
2021-12-11 13:19:01,046 INFO 304 GET /devices (0.0.0.0) 1.46ms
2021-12-11 13:19:06,056 INFO 304 GET /devices (0.0.0.0) 1.52ms
2021-12-11 13:19:11,081 INFO 304 GET /devices (0.0.0.0) 4.15ms
2021-12-11 13:19:16,093 INFO 304 GET /devices (0.0.0.0) 1.38ms
2021-12-11 13:19:21,136 INFO 304 GET /devices (0.0.0.0) 3.87ms
2021-12-11 13:19:26,175 INFO 304 GET /devices (0.0.0.0) 1.46ms
2021-12-11 13:19:31,222 INFO 304 GET /devices (0.0.0.0) 3.85ms
2021-12-11 13:19:36,247 INFO 304 GET /devices (0.0.0.0) 1.98ms
2021-12-11 13:19:41,332 INFO 304 GET /devices (0.0.0.0) 2.05ms
2021-12-11 13:19:46,294 INFO 304 GET /devices (0.0.0.0) 3.30ms
2021-12-11 13:19:51,317 INFO 304 GET /devices (0.0.0.0) 3.14ms
2021-12-11 13:19:56,346 INFO 304 GET /devices (0.0.0.0) 1.39ms
2021-12-11 13:20:01,384 INFO 304 GET /devices (0.0.0.0) 1.85ms
2021-12-11 13:20:06,419 INFO 304 GET /devices (0.0.0.0) 3.51ms
2021-12-11 13:20:11,423 INFO 304 GET /devices (0.0.0.0) 1.77ms
2021-1

Did you solve this? I am having the same problem. Thanks

3 Likes