I2C Rotary encoder in ESPHome

Hello,

I want to use the M5stack core with faces and a rotary encoder to build a HA dimmer.

The rotary encoder from the M5stack face is not directly connected but via I2C. I cannot find a I2C rotary encoder component in ESPHome.
Does anyone know how I can add this component to ESPHome?

Kind regards,
Remco

There is an Arduino library for this - maybe you could write a custom component…

https://esphome.io/custom/i2c

Otherwise jump onto the ESPHome discord and see if one of the devs wants to add support for it.