Help to build esp-idf using arduino as an external component

Hi,
I’m trying to convert an arduino project from here GitHub - ginkage/MHI-AC-Ctrl-ESPHome: ESPHome integration for MHI-AC-Ctrl project to a esp-idf on my esp32 but no sucess so far.
I’ve modified my yaml to this :

esp32:
  board: wemos_d1_mini32
  framework:
    type: esp-idf
    version: latest

Since this file reported to #include <Arduino.h>, I’ve tried to compile it but gives error and can’t manage to add arduino as an esp-idf component like documented here.
https://docs.espressif.com/projects/arduino-esp32/en/latest/esp-idf_component.html

I’ve searched and I don’t know if it is possible in esphome :