AS5600 custom sensor component

Has anyone succeeded in getting an AS5600 contactless rotation sensor to work with ESPHome?

I’ve got it working with an Arduino Due so I know it works and that I have suitable libraries and am trying to work through the custom sensor component tutorial but am really struggling!

Any help or suggestions gratefully received!

I’ve been asked to explain how I got this to work so here goes! :wink:

I ran out of options to use I2C on ESPHome so ended up using the analogue output from the AS5600 and the ADC on the ESP32 in ESPHome. It works, but isn’t particularly elegant!

I was ablre to read the position and other information by creating a Custom Sensor Component based on RobTillaart/AS5600.