How to add an external component

I have to add this external component, but I have no idea where to actually do it

external_components:
  - source: github://j5lien/[email protected]

Been looking through this but I don’t understand, do I have to create a file somewhere, or is this supposed to go into the yaml file uploaded to the ESP32?

You have to add this to your yaml file.

However the yaml file is not uploaded to the ESP32. The yaml file is the input for the code-generation of a C++ file. This C++ file is compiled and linked with the other C++ components. This results in a binary file which is uploaded to the ESP32. And this all happens if you hit the “Update” or “Install” button in the ESPHome dashboard.

During the code-generation phase, the external component is automatically downloaded to a build directory on your HA-device or local PC depending on the way you use ESPHome.

2 Likes

That worked, thanks

Any idea how i can get this LVGL into ESPHome??

https://docs.lvgl.io/master/intro/add-lvgl-to-your-project/getting_lvgl.html#

Well, a good start would be to add:

lvgl:

To your YAML. You will need a display configured, otherwise that’s enough to get started and will display a default screen. Then read the ESPHome docs you linked to, and the LVGL cookbook entries.