ESPHome addon can't flash any devices, error 403s in addon log

I’ve been having some trouble using ESPHome today, and after several hours I can’t find a solution.

Whenever I try to add a new device, I get this in the addon UI:

and this in the UI:

I’m running Home assistant on an ODROID N2+, and am up to date on the addon (2023.6.2) OS (10.3) and core (2023.6.3). Googling suggests this might be an issue with ‘ingress’? I did try to change the addon config to ‘disable external authentication’ which didn’t seem to help so I’m back to default config for the addon now.

Any idea what I could be doing wrong here? Anyone else got this problem?

I have the same problem and configuration as you. Restored ESPHome to 2023.5.5 but it did not help.

When I access http://myhost.local:8123 the ESPHome is working ok but when I access https://myhost.duckdns.org:8122 I get the problem with ESPHome compile/logs and the errors in the log.
I have NGINX set up as default and to expose port 8122.
So probably I have missed something that needs to be configured when using NGINX in between.

1 Like

Magic! Thanks so much for prompting me to try that. So for me, it works using http://homeassistant.local:8123/{...}_esphome/ingress also also using my Home Assistant cloud URL https://{...}.ui.nabu.casa/{...}_esphome/ingress, but doesn’t work using my custom domain.

I changed my port forward in the router to port 443 external and 8122 internal and now HA/ESPHome works with the custom url https://myhost.duckdns.org without the port.
Perhaps someone with better knowledge about NGINX can explain what the issue is.