Home Assistant 2025.12 adds a new setting in the energy dashboard for “Grid Power”, but it defines this power sensor as “Positive values indicate importing electricity from the grid, negative values indicate exporting electricity to the grid.”
SolarEdge inverters with an Export+Import meter provide a negative value when importing from grid and positive values when exporting to grid (positive for excess solar generation). This is the opposite of Home Assistant’s assumption for grid power.
I did a bit of digging after writing this (also after testing my own PR to add an inverted power sensor) and found that there is a frontend PR to add an option in HA to address this:
When the very first ‘battery’ was invented, and ‘current’ electricity was discovered, the scientists decided that electricity flowed, and went from A to B, hence one terminal of the battery was called “positive” and the other “negative” as in the electricity flowed from positive to negative.
It was only when the electron was discovered, that we found out that the electron was a particle and was actually going from negative to positive, hence electrons are now “negative”.
It does seem like it was a random choice where everyone involved in that choice has never used a grid tie solar system. Being forced to create templates is a step backwards for user friendly.
I don’t really like adding the inverted power sensor either because that opens up questions about why there’s two sensors for the same thing, and how does the user know which one to pick, extra documentation, etc. But at least it doesn’t have the extra steps of being forced to create a template sensor.