Jup, the HACS integration GitHub - suaveolent/ha-hoymiles-wifi: Home Assistant custom component for Hoymiles DTUs and the HMS-XXXXW-2T microinverters is the best option.
You get two devices (DTU and Inverter), and you get a daily summation of the Energy from the DTU, and all the rest from the Inverter.
(Its currently dark here)