Open source · Home Assistant · v1.6.0

Detailed Energy Card

A Lovelace card that shows where your power goes: from PV, battery and grid through the house, floors and rooms down to each consumer.

Detailed Energy Card: power flow with floors, rooms and the appliances of the kitchen
Licence
MIT
Install
HACS
Home Assistant
2024.8 or later
Languages
DE · EN

Features

The whole flow at a glance.

From source to socket

PV, battery and grid flow through the house, floors and rooms down to each consumer. One card instead of ten.

Floors and rooms from Home Assistant

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.

Consumers without a floor or room

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.

3D card for the house

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.

Visual editor

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.

Feed-in, battery, self-sufficiency

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.

Sources at a glance

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.

Overview at a glance

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.

Origin of the power

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.

Budget, last year and hints

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.

Solar forecast in the timeline

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.

Thresholds

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.

Many rooms

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.

Energy mode

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.

Three views

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.

Meters for floors and rooms

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.

A second value under every node

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.

Costs

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.

Base load and always-on devices

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.

A heatmap as a second card

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.

Actions and switches

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.

Compact view

Only sources, home and floors in small circles, without the list: fits a narrow card or the corner of a dashboard.

Take it over from the Energy 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.

Selection in the middle

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.

Consumer list your way

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

Click a floor, click a room.

Editor

Without a line of YAML.

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.

3D editor: options with live preview
3D editor: grid and floor plan per floor
Editor: general and options
Editor: thresholds per level
Editor: energy sensors
Wizard: structure from the Energy dashboard
Editor: structure with energy sensors

Installation

On your dashboard in three steps.

Open in HACS ↗

  1. Search for Detailed Energy Card in HACS, or use the button above: it opens the card straight in your Home Assistant instance.
  2. Download it and reload the browser.
  3. Add card → Detailed Energy Card, or 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: Backofen

Quick start, all screenshots and the configuration reference with every option: README on GitHub ↗

Built by Anton Graichen-Hartl.

Questions, ideas or a bug? An issue on GitHub helps, and so does an email.

Contact
stacknoise · terminal