Communication with Home Assistant

I am hoping it is possible to report power from MTTP (MPPT 2420 ex.) to home assistant.

I am pretty certain that it is possible to do by using a ESP32 ESPHOME to translate CAN/Thinkset and communicate with for ex. a Home Assistant Green - Home Assistant.
But if I need an aditional board to communicate with the MPPT, I might as well get a board/clamp to measure DC current.

I would like to ask if it is possible and how I would go about communicating directly with a non-RTOS computer running linux/openbsd.

I am guessing I could assign two pins of GPIO and assign a CAN driver to them?