Problem re-uploading code to ESPHome

I wanted to update one of my devices running ESP Home.
Its a Magic Home LED controller that I’ve flashed with ESP home and while it worked fine the first time I flashed it I wanted to change the code a little bit and got this error message telling me that I’m not connected to the internet.
I’m right now on 0.111.2
As for the ESPhome Yaml file - I’m confident that its OK (It worked the first time and I have ~14 other devices with similar code that is OK (With the exception of another one but it’s a different symptom).
Anyone have any suggestions on what could be wrong in this case ?

Thanks

INFO Reading configuration /config/esphome/raindance_esp_rgb_strip_4.yaml...
INFO Generating C++ source...
INFO Compiling app...
INFO Running:  platformio run -d /config/esphome/raindance_esp_rgb_strip_4
Processing raindance_esp_rgb_strip_4 (board: esp01_1m; framework: arduino; platform: [email protected])
--------------------------------------------------------------------------------
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
Looking for ESPAsyncTCP-esphome library in registry
Warning! You are not connected to the Internet.
If you build a project first time, we need Internet connection to install all dependencies and toolchains.
Looking for ESPAsyncWebServer-esphome library in registry
Warning! You are not connected to the Internet.
If you build a project first time, we need Internet connection to install all dependencies and toolchains.
Warning! You are not connected to the Internet.
If you build a project first time, we need Internet connection to install all dependencies and toolchains.
Dependency Graph
|-- <ESP8266WiFi> 1.0
|-- <ESP8266mDNS> 1.2
|   |-- <ESP8266WiFi> 1.0
|-- <DNSServer> 1.1.1
|   |-- <ESP8266WiFi> 1.0
Compiling /data/raindance_esp_rgb_strip_4/.pioenvs/raindance_esp_rgb_strip_4/src/esphome/components/api/api_connection.cpp.o
Compiling /data/raindance_esp_rgb_strip_4/.pioenvs/raindance_esp_rgb_strip_4/src/esphome/components/api/api_server.cpp.o
Compiling /data/raindance_esp_rgb_strip_4/.pioenvs/raindance_esp_rgb_strip_4/src/esphome/components/api/list_entities.cpp.o
Compiling /data/raindance_esp_rgb_strip_4/.pioenvs/raindance_esp_rgb_strip_4/src/esphome/components/api/subscribe_state.cpp.o
In file included from src/esphome/components/api/list_entities.h:52:0,
                 from src/esphome/components/api/list_entities.cpp:1:
src/esphome/components/api/api_server.h:19:25: fatal error: ESPAsyncTCP.h: No such file or directory

*********************************************************************
* Looking for ESPAsyncTCP.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:ESPAsyncTCP.h"
* Web  > https://platformio.org/lib/search?query=header:ESPAsyncTCP.h
*
*********************************************************************

 #include <ESPAsyncTCP.h>
                         ^
compilation terminated.
In file included from src/esphome/components/api/api_connection.h:7:0,
                 from src/esphome/components/api/api_connection.cpp:1:
src/esphome/components/api/api_server.h:19:25: fatal error: ESPAsyncTCP.h: No such file or directory

*********************************************************************
* Looking for ESPAsyncTCP.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:ESPAsyncTCP.h"
* Web  > https://platformio.org/lib/search?query=header:ESPAsyncTCP.h
*
*********************************************************************

There’s an issue open:

Workaround: install the dev version.

I see.
Thanks

So two questions.

  1. Where do I find the dev version ?

  2. I have another device with the same YAML content. On this I get the following error:

INFO Reading configuration /config/esphome/raindance_esp_rgb_strip_2.yaml...
INFO Generating C++ source...
INFO Compiling app...
INFO Running:  platformio run -d /config/esphome/raindance_esp_rgb_strip_2
Processing raindance_esp_rgb_strip_2 (board: esp01_1m; framework: arduino; platform: [email protected])
--------------------------------------------------------------------------------
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
InvalidJSONFile: Could not load broken JSON: /data/raindance_esp_rgb_strip_2/.piolibdeps/raindance_esp_rgb_strip_2/ESPAsyncWebServer-esphome_ID6758/.library.json:
  File "/usr/local/lib/python3.6/dist-packages/platformio/builder/main.py", line 126:
    env.SConscript("$BUILD_SCRIPT")
  File "/root/.platformio/packages/tool-scons/script/../engine/SCons/Script/SConscript.py", line 605:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/root/.platformio/packages/tool-scons/script/../engine/SCons/Script/SConscript.py", line 286:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "/root/.platformio/platforms/espressif8266/builder/main.py", line 203:
    target_elf = env.BuildProgram()
  File "/root/.platformio/packages/tool-scons/script/../engine/SCons/Environment.py", line 224:
    return self.method(*nargs, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/platformio/builder/tools/platformio.py", line 122:
    _build_project_deps(env)
  File "/usr/local/lib/python3.6/dist-packages/platformio/builder/tools/platformio.py", line 47:
    project_lib_builder = env.ConfigureProjectLibBuilder()
  File "/root/.platformio/packages/tool-scons/script/../engine/SCons/Environment.py", line 224:
    return self.method(*nargs, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/platformio/builder/tools/piolib.py", line 1043:
    project.install_dependencies()
  File "/usr/local/lib/python3.6/dist-packages/platformio/builder/tools/piolib.py", line 867:
    if lm.get_package_dir(*lm.parse_pkg_uri(uri)):
  File "/usr/local/lib/python3.6/dist-packages/platformio/managers/package.py", line 419:
    manifest = self.get_package(name, requirements, url)
  File "/usr/local/lib/python3.6/dist-packages/platformio/managers/package.py", line 387:
    for manifest in self.get_installed():
  File "/usr/local/lib/python3.6/dist-packages/platformio/managers/package.py", line 377:
    manifest = self.load_manifest(pkg_dir)
  File "/usr/local/lib/python3.6/dist-packages/platformio/managers/lib.py", line 68:
    manifest = BasePkgManager.load_manifest(self, pkg_dir)
  File "/usr/local/lib/python3.6/dist-packages/platformio/managers/package.py", line 345:
    manifest = fs.load_json(manifest_path)
  File "/usr/local/lib/python3.6/dist-packages/platformio/fs.py", line 57:
    raise exception.InvalidJSONFile(file_path)
========================== [FAILED] Took 1.59 seconds ==========================

Anyone know what this is about and how to fix it?
I’ve search “all over my Raspberry Pi4” but can’t find any of the referenced file.

Thanks

In the ESPhome repository ( GitHub - esphome/home-assistant-addon: ESPHome Home Assistant Add-on ) in the addon store: