The HA developers regard the energy system as House-Centric. Everyone (probably everyone) else on the planet regards the home energy system as Grid-Centric. Hence the battery power and grid power +/- are reversed to usual convention.
I believe that requests have been raised to offer an inverting option in HA for the settings.