esphome / feature-requests

ESPHome Feature Request Tracker
https://esphome.io/
420 stars 26 forks source link

Using native esp-idf components #1605

Open dudanov opened 2 years ago

dudanov commented 2 years ago

Describe the problem you have/What new integration you would like

Option to use native esp-idf components in ESPHome project.

Please describe your use case for this integration and alternatives you've tried:

I need to use native esp-idf components, but there is no such possibility yet. It would be nice if there was an option like libraries that either copied the components specified in YAML to the project's optional components folder in build directory, or used the EXTRA_COMPONENT_DIRS option in the root CMakeLists.txt file. These 2 ways are currently supported by Platformio.

Additional context

dudanov commented 2 years ago

Although in this case, the functionality of the external_components component is more suitable than the libraries option of the root component.

vidplace7 commented 1 year ago

https://github.com/esphome/esphome/pull/4000

mag1024 commented 4 months ago

esphome/esphome#4000

This looks promising, but have you been able to get it to work?

I'm trying

esp32:
  variant: esp32s3
  board: lolin_s3_mini
  framework:
    type: esp-idf
    version: latest
    ...
    components:
      - name: esp_tinyusb 
        source: github://espressif/esp-usb
      - name: tinyusb
        source: github://espressif/tinyusb

and it doesn't appear to have any effect....