Home Assistant’s Energy dashboard can use separate measurements for electricity flowing from the grid and solar into a battery, and from the battery to the home and grid. Its charts use those readings directly instead of guessing the split, preventing grid charging from appearing as solar charging.

The battery editor asks whether a system measures total charging and discharging or each direction separately. Each direction accepts an energy sensor and an optional power sensor; if only power is available, setup offers to create the sensor that accumulates energy. Missing grid or solar setup produces a warning.

Petar Petrov connects the configuration, calculations and charts. Existing batteries configured with total input and output keep working. The power-flow diagram also follows the same split as the energy cards, and can show one battery discharging while another charges.