@sok Your config is mostly correct. However, due to some changes in EPDiy make it incompatible with regular library import - you need to add is as an ESP-IDF component to the project.

This sadly at the moment isn't too straightforward to do - you need to manually clone the git repo into your project's components folder (and potentially create it if it doesn't exist, it's not a default folder created by the PIO init command), and add its path to the root CMakeLists.txt

Here is an example repo and project. I recommend focusing on the aforementioned components folder and CMakeLists.txt (specifically the list(APPEND EXTRA_COMPONENT_DIRS part of the latter).

Alternatively, you can use M5Unified as a lib_dep.