I created a custom integration, which monitors current, voltage, and power through a three-channel INA3221. The integration is configurable via the UI and automatically creates the sensors for the up to three channels.
Currently, to the best of my knowledge, it is only possible to integrate measurements from an INA3221 to Home Assistant via an ESP and ESPHome. However, I didn’t want an extra device, but rather directly use the I2C interface from my Raspberry Pi running Home Assistant. This is now possible with this integration.
I did not (yet) submit the integration to HACS, but you can test it as custom repository. The repository with more details can be found here:
I am happy for any questions or feedback. So if you have any suggestions, issues, or requests feel free to write them here or open an issue or PR in the repository.
Finally, I want to make clear that large parts of the integration have been written by and together with GitHub Copilot, but I went through the code myself and tested it. I do not extend any warranty though.