ESPHOME can not compile because of plattformio.org

I am using hassio from Rasspberry Pi 3 with ESPHome. I wanted to to a new compile today of a module but that failed with error. This RPi is only used for Esphome setup, I usually have a Linus machine running home assistant.

Last time I used Rpi it runs as expected but now it throws this error

[API] ConnectionError: HTTPConnectionPool(host='api.platformio.org', port=80): Max retries exceeded with url: /v2/lib/search?query=name%3A%22Update%22 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f90f949e8>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)) (incremented retry: max=5, total=1)

The website is reachable and the status page says everything is online. I pulled also latest version of Home Assistant but nothing helped.

Any idea how to fix that?

Your post is very confusing. Why is the esphome machine running home assistant?

What is so confusing? I have a dedicated device (raspberry pi 3) with Hass.io for esphome. My full day on machine with lot of other things running also home assistant is a dedicated Linux machine.

The esphome machine is only online when I need to configure new devices. But now I can not compile anymore because of the written error.

But why do you have hassio on it? You don’t need hassio to run esphome!

Because it is easier and faster for me, it works in the past but not anymore. SO please do not ask why I have an extra machine for it. It doesn’t matter here. I do not want to explain why I did it that why, I did, it worked now it is broken and I try to find help to bring it back working. Not to optimise my setup.

DNS problem. Or platformio is down. This happens from time to time. It will probably fix itself or be fixed by you fixing your dns.

By the way, I didn’t ask why you used another machine, I asked why you are running hsssio on that other machine. I was going to make a suggestion to use the dev branch in docker if you want to try something else. I don’t think you can do that with the hassio addon.