MCP23017 configuration

Hi, I am really interested in hard wired systems using GPIO pins, no issues there. The problem is when i try to integrate the MCP23017 chip using i2c port. I tried several methods and went through many forums but i just can’t find a way to configure it and get it working. Is there someone that managed to do so? I edited the config file to enabled the i2c port, but then when it comes to select the platform it always says that it is not recognized.

https://community.home-assistant.io/search?q=mcp23017
The third topic looks promising.

And there is also something to use it with esphome.
https://esphome.io/components/mcp23017.html