Guides

Solar and battery power flow in Home Assistant

Live watts, from the power sensors you already have. The card draws the lines. You do not need the Energy dashboard for this.

The sensors

Power Flow Card Plus and Home Flow Card read instantaneous power. Give them a grid sensor, a solar sensor and a battery sensor, in watts or kilowatts. A state-of-charge sensor (a percentage) is optional and shows on the battery. Leave a sensor out and that part of the drawing is omitted.

Home consumption can be its own sensor. With Power Flow Card Plus you can also leave it unset and let the card work from the other flows. Individual devices, up to four of them, are extra circles on Power Flow Card Plus. Home Flow Card draws an optional car and heat pump, and it does not draw arbitrary individual devices.

Install and add the card

On Home Assistant 2026.11 and newer, install Power Flow Card Plus from the Marketplace. Before that, install it from HACS. It is in the default catalog. Add the card on a dashboard and pick the sensors in the visual editor, or paste a config:

yaml
type: custom:power-flow-card-plus
entities:
  grid:
    entity: sensor.grid_power
  solar:
    entity: sensor.solar_power
  battery:
    entity: sensor.battery_power
    state_of_charge: sensor.battery_soc

Replace the entity ids with yours. A single entity may be positive in one direction and negative in the other. If a line runs the wrong way, set invert_state: true on that entity, or give the card separate consumption and production entities. Both are documented on the configuration page.

The same sensors, as a house

Home Flow Card is the isometric house power card. Solar sits on the roof, the battery on the wall, and the grid cable runs out to the street. It reads the same kind of power sensors, with the keys at the top level of the config:

yaml
type: custom:home-flow-card
grid:
  entity: sensor.grid_power
solar:
  entity: sensor.solar_power
battery:
  entity: sensor.battery_power
  state_of_charge: sensor.battery_soc

Set mode: energy when you want the house to show energy for the dashboard's selected period. For kilowatt-hours on the circle diagram, use Energy Flow Card Plus with Energy Period Selector Plus. Those read energy sensors and need long-term statistics, the same requirement as the built-in energy cards.

More comparisons