Ingesting power generation from inverter so that energy dashboard will recognise value

hi all
as what do we need to bring power generated from a inverter, from total grid usage, total pv created so that the energy dashboard will recognise it.
I got all these values coming from my inverter, as mqtt values. I can push it via NodeRed if I need to create HA sensors (atm the sensors are mqtt based).
G