Batteries and Exported power

Hi,

I have started uploading battery information and have a question around how Exported power is calculated?

I presume exported is just Generation - Consumption
Currently I am not counting battery charging as Consumption as it is logged in Battery Power
However this creates incorrect Exported power values.

Is the intention of pvoutput that I should be adding battery charging as Consumption, I guess the problem with that is the battery could be charged from PV or Grid, and this also does not take into account round trip efficiencies.

I can collect the actual Imported and Exported power from the grid from the inverter. Ideally I would like to be able to explicitly set grid Imported and Exported power, overriding any calculations.

I could always just not send any Consumption data and use Extended data to store the Imported and Exported power.

Sorry that was a bit of a rambling question, that distills down to…
What is the intention for how Consumption, Battery charging and Exported power is intended to work in PVO?

Currently battery data doesn’t affect existing consumption data or the resulting net import/export results.