Unable to compile Yaml 'api.registry.platformio.org'

Hi, I’m new to HA (not new to ESPxx or Arduino).
I’ve been trying to compile a YAML with a couple of ESP8266 (NodeMCU & ESP-12F) without luck.

I always get this:

Platform Manager: Installing platformio/espressif8266 @ 3.2.0
INFO Installing platformio/espressif8266 @ 3.2.0
WARNING Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f71ad76d250>: Failed to resolve 'api.registry.platformio.org' ([Errno -3] Temporary failure in name resolution)")': /v3/packages/platformio/platform/espressif8266

this message shows 4 times then the same message again 4 times but with the file name : api.registry.nm1.platformio.org

Eventually an “HTTPClientError:” shows in red at the end and the process stops.

I’ve tried uninstalling and re-installing ESPHome.
The devices are able to be recognized and adopted by HA
Everything works well using https://web.esphome.io/
I can see the ‘default’ page served by the ESPs
These devices show correctly “OnLine” from the ESP Home Dashboard too.

Is just the “INSTALL” part I can’t seem to be able to get to work.
I see the same error regardless of method used (OTA, Manual, etc.)

Thanks in advance
R.

How are you running esphome? Addon, standalone, Linux, windows, osx?

Looks like a dns error to me

Using HA OS on Generic x86-64
EspHome running as an Add-On on HA

Eventually I used the ESPHome CLI without any problems for some days. Then I moved to a different box and I don’t see the problem anymore from HAOS (same settings and deployment)

I can’t get so many things to compile because of this error message!!

Delete the addon. Reinstall it.