Open VivantSenior opened 6 months ago
I think it's something strongly related to esp-idf handling https connection because my ESP32-C3 based eBUS Adapter by john30 also returned the "0x7780" error after update to the newest 20240518 firmware:
11:32:57 | Warning | host: errors: protocol
11:35:38 | Error | esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x7780
11:35:38 | Error | esp_https_server: esp_tls_create_server_session failed, 0x7780
11:35:38 | Error | httpd: httpd_accept_conn: session creation failed
11:35:38 | Warning | httpd: httpd_server: error accepting new connection
11:35:46 | Error | esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x7780
11:35:46 | Error | esp_https_server: esp_tls_create_server_session failed, 0x7780
11:35:46 | Error | httpd: httpd_accept_conn: session creation failed
11:35:46 | Warning | httpd: httpd_server: error accepting new connection
Why don't you set the internal HA URL to the IP and http? https://github.com/tetele/onju-voice-satellite/issues/48 Had the same issue and now all is fine.
@dreimer1986, could you please point me in the right direction on how to set HA internal IP address to be used by ESPHome media_player component? Checked docs of API Native component and media_player and can't find it there. The only place I can set local HA address is Network tab in HA. But for the reason I have ssl I can't use http and can provide IP. Just can use https://homeassistant.local:8123.
Network tab is right. The internal url is what I had to fix. As I never needed it before it was incorrectly set to https and non existing cert. I set it to http and all is fine here now. I use a reverse proxy anyways for external access and as such internal unencrypted communication is no problem.
Flavor
MicroWakeWord
Checklist
Describe the issue
After update done in PR #39 I noticed that no audio response and no media_player output works. Looking in the logs following error is common for both issues:
esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x7780
. Based on the search looks like it is related to the certificates (esp-idf/8375) or shortage of RAM (HTTPS connection fail). Yes, I have already tried #13.Sometimes I get issues like
esp-tls: couldn't get hostname for :ha.domain.com: getaddrinfo() returns 202, addrinfo=0x0
. Would it e possible esphome to use mDNS or private IP of my HA?Related issues: #34, #13, esphome/2179 (feature request ignored for over a year).
Reproduction steps
Debug logs