From source to socket
PV, battery and grid flow through the house, floors and rooms down to each consumer. One card instead of ten.
Open source · Home Assistant · v1.6.0
A Lovelace card that shows where your power goes: from PV, battery and grid through the house, floors and rooms down to each consumer.

Features
PV, battery and grid flow through the house, floors and rooms down to each consumer. One card instead of ten.
Floors and areas come straight from your instance, names and icons included. Floors sit side by side as pills of equal width with their icon, kept compact and centred on wide cards too. What is not there, you add as a room or floor of your own.
Lights outside the house, a wallbox, an off-grid system: consumers that belong to no room hang directly under the home as nodes of their own. They count in the total, the list, the Sankey diagram and the timeline.
A second card in the same download: the house as floors in an isometric view, with solar on the roof, a grid pole and the battery. Dashed lines carry the power to the floors. Tap a floor, a room or a source and the rest fades out. The editor draws the floor plan, and you drag rooms open on the grid.
Everything can be set up without YAML, in German and English. Sensors that are already assigned are hidden, and a double assignment is reported at the field. A new consumer without a sensor is a warning, not an error.
Charging and feeding in reverse the arrows, self-sufficiency sits in the top corner once a grid sensor is configured. With a second counter the grid and the battery also show the other direction (feed-in, charged), and a second badge gives the self-consumption of the solar energy. “Unassigned” shows what is missing.
Five switches, all off until you turn them on: a ring around the home shows the share of solar, battery and grid, the home takes the colour of the largest source, the battery has a charge bar with discharge and charge limits and says when it is full or how long it lasts, and under the solar source you see how much of the power goes into the home, the battery and the grid.
Three more switches, also off until you turn them on: the lines take the colours of the sources (below the home as strands in the mix), a banner reports a surplus, says what using it yourself saves per hour and, if you like, suggests idle devices that could use it, and tiles show today's values for solar, grid import, feed-in, battery, home and self-sufficiency.
One more switch, off until you turn it on: in the list of consumers a ring shows where the power of the selected room, floor or home comes from (solar, battery, grid). Every bar is coloured by origin, and a hint names the hours with the least grid import, the best time for big loads.
More switches, all off until you turn them on: a yearly budget as a bar with a projection, the same date last year as a marker in the timeline of a week and a month, a hint when values do not add up, an own tariff per grid meter (for example a heat pump) and difference consumers that work out their value from a meter minus the devices behind it.
Another switch that stays off until you turn it on: in the timeline of today a dashed line shows the forecast of the solar production, taken from the solar forecast of your Energy dashboard (Forecast.Solar, Solcast). You see when a lot of solar power is coming.
Lines and bars change colour with power, with a traffic-light preset. Each range can set its own line width, and sources, floors, rooms and consumers have their own limits: a floor naturally draws more than a single device. Single elements can have their own list too. Idle consumers fade out.
More than six rooms scroll or wrap into two rows, but only when the card is too narrow for one row. The selection can be remembered.
Besides the power now, the card shows how much energy flowed today, this week or this month. The values come from the long-term statistics of Home Assistant, a switch in the card changes the view. Sources, floors, rooms and consumers get an energy sensor for it. The arrows page back through earlier days, weeks and months.
Besides the tree, a Sankey diagram shows how wide the stream runs from the sources through floors and rooms to the consumers, and a timeline stacks hours, days or weeks by floor, room and consumer, with the previous day or week as a dashed outline. A small switch changes the view.
A distribution board or a metering plug gives a floor or a room its measured value. What the consumers do not explain is listed as “Unassigned”, and a warning shows when the consumers measure more than the meter.
Under the power sits the energy of today in small type, in the energy mode the power now instead, and the costs if you like.
With a fixed price or a dynamic tariff (hourly means from the statistics) the card works out what electricity from the grid costs, per floor, room and consumer. Solar and battery power cost nothing, the feed-in compensation is shown next to it, and if you like, how much you saved that way.
A badge gives the base load of the house: the lowest hourly value between 1 and 5 o'clock in the last nights. Consumers that never fall below a limit get a symbol in the list.
The same package holds a second card: the days row by row, the hours column by column, coloured by consumption. With the base load, the total and the most expensive hour.
Sources, floors, rooms and consumers take tap, hold and double tap with the actions of Home Assistant. A consumer with a switch gets a toggle in the list, with a question before it is turned off if you like.
Only sources, home and floors in small circles, without the list: fits a narrow card or the corner of a dashboard.
A wizard in the editor proposes floors, rooms and devices from the Energy dashboard and the areas of your Home Assistant, with a preview, and replaces the structure or adds what is missing.
If you like, the selected floor or room slides to the middle and the others fade out. A click on an element always shows its children.
The list under the diagram can be hidden, or limited to the consumers that draw power right now. The entity IDs under the names can be hidden.
Views


























Editor
Pick floors and rooms from the areas of your Home Assistant, and colours from a palette or as a hex value. Thresholds per level, the energy sensors, actions and switches are set up here too, and a wizard takes the structure over from the Energy dashboard.







Installation
type: custom:detailed-energy-card in YAML.type: custom:detailed-energy-card
title: Energiefluss
home:
total_entity: sensor.hausverbrauch_power
sources:
- { entity: sensor.pv_leistung, type: solar, name: PV }
- { entity: sensor.akku_leistung, type: battery, soc_entity: sensor.akku_soc }
- { entity: sensor.netz_leistung, type: grid }
floors:
- floor_id: erdgeschoss
rooms:
- area_id: kueche
consumers:
- entity: sensor.backofen_power
name: BackofenQuick start, all screenshots and the configuration reference with every option: README on GitHub ↗
Questions, ideas or a bug? An issue on GitHub helps, and so does an email.