fix from here: https://github.com/esphome/issues/issues/1386#issuecomment-1073117862
docker exec -it esphome bash /usr/local/lib/python3.9/dist-packages/platformio/util.py
by adding
if arch == "aarch64":
if platform.architecture()[0] == "32bit":
arch = "armv7l"
in here:
def get_systype():
type_ = platform.system().lower()
arch = platform.machine().lower()
if type_ == "windows" and "x86" in arch:
arch = "amd64" if "64" in arch else "x86"
if arch == "aarch64":
if platform.architecture()[0] == "32bit":
arch = "armv7l"
return "%s_%s" % (type_, arch) if arch else type_