Energy cards
This is a list of all the cards and badges used in the energy dashboard. You can also place them anywhere you want in your dashboard.
You can add these cards using the visual card editor or by editing the YAML directly. In the visual editor, these are located in the Energy cards section of the card picker dialog.
You can configure them on the energy configuration page.
To show or hide cards on the built-in Energy dashboard, see customizing the Energy dashboard.
Energy date picker
Screenshot of the Energy date selection card.
This card allows you to pick what data to show. Changing it in this card will influence the data in all other cards.
Specific dates and ranges can be selected by opening the date range picker. The current period can be compared to the previous one using the compare data option within the menu.
With show_combine_sources, the menu also has a Combine sources option for the energy cards linked to this date picker. The Energy dashboard turns it on for its Electricity, Gas, and Water tabs when they have two or more sources of the same type. For more information, see combining sources of the same type.
YAML configuration
The following YAML options are available:
Configuration Variables
Collection key to use for the card. This links the card to a specific energy dashboard collection. If not provided, defaults to the current dashboard page URL.
up, down or auto. Determines the vertical direction to open the date range picker. auto changes it based on the screen size.
left, right, center or auto. Determines the horizontal direction to open the date range picker. auto changes it based on the screen size.
When true, will disable the option to compare data periods.
Example
type: energy-date-selection
Energy compare alert
Screenshot of the energy compare alert card.
This card shows which date ranges are being compared, and provides the option to switch between different compare modes.
The card is only visible when comparing data periods, otherwise it will be hidden.
YAML configuration
The following YAML options are available:
Example
type: energy-compare-card
Energy usage graph
Screenshot of the Energy usage graph card.
The energy usage graph card shows the amount of energy your house has consumed, and from what source this energy came. It will also show the amount of energy you have returned to the grid. The legend lets you show or hide individual components in the graph, like solar and battery, so you can focus on grid usage.
YAML configuration
The following YAML options are available:
Configuration Variables
Collection key to use for the card. This links the card to a specific energy dashboard collection. If not provided, defaults to the current dashboard page URL.
When defined, shows a card header with the title string and total energy consumed chip.
Show or hide the legend. You can select items in the legend to show or hide components in the graph, like solar and battery, so you can focus on grid usage more clearly.
Show all legend items when the card loads. By default, a long legend is collapsed and you select More to see the remaining items.
When true, shows all grid sources and all batteries as one entry per direction, for example one Grid consumed series instead of one per grid tariff. If not set, the card follows the Combine sources option of a linked energy date picker once that option is shown. A source type with only one source is not changed.
Example
type: energy-usage-graph
Solar production graph
Screenshot of the Solar production graph card.
The solar production graph card shows the amount of energy your solar panels have produced per source, and if setup and available the forecast of the solar production.
YAML configuration
The following YAML options are available:
Configuration Variables
Collection key to use for the card. This links the card to a specific energy dashboard collection. If not provided, defaults to the current dashboard page URL.
When defined, shows a card header with the title string and total solar produced chip.
When true, shows all solar panels as one production series and one forecast line. If not set, the card follows the Combine sources option of a linked energy date picker once that option is shown. A source type with only one source is not changed.
Example
type: energy-solar-graph
Gas consumption graph
Screenshot of the gas consumption graph card.
The gas consumption graph card shows the amount of gas consumed per source.
YAML configuration
The following YAML options are available:
Configuration Variables
Collection key to use for the card. This links the card to a specific energy dashboard collection. If not provided, defaults to the current dashboard page URL.
When defined, shows a card header with the title string and total gas consumed chip.
When true, shows all gas sources as one series. If not set, the card follows the Combine sources option of a linked energy date picker once that option is shown. A source type with only one source is not changed.
Example
type: energy-gas-graph
Gas Sankey graph
Screenshot of the gas Sankey graph card.
The gas Sankey graph shows the flow of gas consumption in your home. It visualizes how gas flows from sources to the various consumers. Devices are grouped into floors and areas if these are configured. Devices combined into the Other node are not part of any floor or area.
This card displays historical gas data based on the selected date range from the energy date picker.
YAML configuration
The following YAML options are available:
Configuration Variables
Collection key to use for the card. This links the card to a specific energy dashboard collection. If not provided, defaults to the current dashboard page URL.
vertical, horizontal or auto. Determines the orientation (flow direction) of the card. auto changes it based on the screen size.
Maximum number of devices shown under your home and under each upstream device. Devices beyond the limit are combined into a single Other node, smallest first, so their totals are still included. On the devices energy graph, max_devices hides the extra devices instead. The limit applies per upstream device, not per floor or area.
Examples
type: gas-sankey
The following example orients the flow from left to right:
type: gas-sankey
layout: horizontal
Gas flow Sankey graph
Screenshot of the gas flow Sankey graph card.
The gas flow Sankey graph shows the real-time flow of gas in your home. Unlike the gas Sankey card, which shows historical gas data based on the selected date range, this card displays current flow values and is not affected by the date picker selection.
To use this card, configure a gas flow rate sensor for each source or individual device you want to display on the energy configuration page. Cumulative gas consumption sensors alone cannot supply data to this card.
It visualizes the instantaneous gas flow from sources to the various consumers. Devices are grouped into floors and areas if these are configured. Devices combined into the Other node are not part of any floor or area.
YAML configuration
The following YAML options are available:
Configuration Variables
Collection key to use for the card. This links the card to a specific energy dashboard collection. If not provided, defaults to the current dashboard page URL.
vertical, horizontal or auto. Determines the orientation (flow direction) of the card. auto changes it based on the screen size.
Maximum number of devices shown under your home and under each upstream device. Devices beyond the limit are combined into a single Other node, smallest first, so their totals are still included. On the devices energy graph, max_devices hides the extra devices instead. The limit applies per upstream device, not per floor or area.
Examples
type: gas-flow-sankey
The following example orients the flow from left to right:
type: gas-flow-sankey
layout: horizontal
Water consumption graph
Screenshot of the water consumption graph card.
The water consumption graph card shows the amount of water consumed per source.
YAML configuration
The following YAML options are available:
Configuration Variables
Collection key to use for the card. This links the card to a specific energy dashboard collection. If not provided, defaults to the current dashboard page URL.
When defined, shows a card header with the title string and total water consumed chip.
When true, shows all water sources as one series. If not set, the card follows the Combine sources option of a linked energy date picker once that option is shown. A source type with only one source is not changed.
Example
type: energy-water-graph
Water Sankey graph
Screenshot of the water sankey graph card.
The water Sankey graph shows the flow of water consumption in your home. It visualizes how water flows from sources to the various consumers. Devices are grouped into floors and areas if these are configured. Devices combined into the Other node are not part of any floor or area.
This card displays historical water data based on the selected date range from the energy date picker.
YAML configuration
The following YAML options are available:
Configuration Variables
Collection key to use for the card. This links the card to a specific energy dashboard collection. If not provided, defaults to the current dashboard page URL.
vertical, horizontal or auto. Determines the orientation (flow direction) of the card. auto changes it based on the screen size.
Maximum number of devices shown under your home and under each upstream device. Devices beyond the limit are combined into a single Other node, smallest first, so their totals are still included. On the devices energy graph, max_devices hides the extra devices instead. The limit applies per upstream device, not per floor or area.
When true, shows all water sources as one Water node. If not set, the card follows the Combine sources option of a linked energy date picker once that option is shown. A source type with only one source is not changed.
Examples
type: water-sankey
The following example orients the flow from left to right:
type: water-sankey
layout: horizontal
Water flow Sankey graph
Screenshot of the water flow Sankey graph card.
The water flow Sankey graph shows the real-time flow of water in your home. Unlike the water Sankey card, which shows historical water data based on the selected date range, this card displays current flow values and is not affected by the date picker selection.
It visualizes the instantaneous water flow from sources to the various consumers. Devices are grouped into floors and areas if these are configured. Devices combined into the Other node are not part of any floor or area.
YAML configuration
The following YAML options are available:
Configuration Variables
Collection key to use for the card. This links the card to a specific energy dashboard collection. If not provided, defaults to the current dashboard page URL.
vertical, horizontal or auto. Determines the orientation (flow direction) of the card. auto changes it based on the screen size.
Maximum number of devices shown under your home and under each upstream device. Devices beyond the limit are combined into a single Other node, smallest first, so their totals are still included. On the devices energy graph, max_devices hides the extra devices instead. The limit applies per upstream device, not per floor or area.
When true, shows all water sources as one Water node. If not set, the card follows the Combine sources option of a linked energy date picker once that option is shown. A source type with only one source is not changed.
Examples
type: water-flow-sankey
The following example orients the flow from left to right:
type: water-flow-sankey
layout: horizontal
Energy distribution
Screenshot of the Energy distribution card.
The energy distribution card shows how the energy flowed, from the grid to your house, from your solar panels to your house and/or back to the grid.
If setup, it will also tell you how many kWh of the energy you got from the grid was produced without using fossil fuels.
If you have a home battery, the card also shows where its energy comes from and where it goes. If your battery has sensors for each direction, these flows are measured. Otherwise, the card estimates them from your battery’s totals.
The card has no flow from one battery to another. If one battery charges another, what the card shows depends on your batteries:
- With sensors for each direction, the card shows what those sensors measure. For example, energy from the first battery to your home, and energy from the grid or solar into the second battery.
- With only total in and out, the charging and the discharging can cancel each other out. The card might then not show the transfer at all.
YAML configuration
The following YAML options are available:
Configuration Variables
Collection key to use for the card. This links the card to a specific energy dashboard collection. If not provided, defaults to the current dashboard page URL.
Example
type: energy-distribution
link_dashboard: true
Energy sources table
Screenshot of the Energy sources table card.
The energy sources table card shows all your energy sources, and the corresponding amount of energy. If setup, it will also show the costs and compensation per source and the total.
YAML configuration
The following YAML options are available:
Configuration Variables
If defined, table displays listed types of consumption only. Valid values are: grid, solar, battery, gas, and water.
Display table as a summarized version with only the resource totals listed.
When true, shows one row per type and direction instead of one row per source. If not set, the card follows the Combine sources option of a linked energy date picker once that option is shown. A source type with only one source is not changed.
Example
type: energy-sources-table
types:
- gas
- water
Grid neutrality gauge
Screenshot of the Grid neutrality gauge card.
The grid neutrality gauge card represents your energy dependency. If the needle is in the purple, you returned more energy to the grid than you consumed from it. If it’s in the blue, you consumed more energy from the grid than you returned.
Example
type: energy-grid-neutrality-gauge
Grid energy balance
Screenshot of the Grid energy balance card.
The grid energy balance card shows your net grid energy as an equation: imported energy minus exported energy. A positive value means you imported more energy from the grid than you exported. A negative value means you exported more energy to the grid than you imported. It includes a visual bar gauge that represents the ratio between imported and exported energy, with the bar filling from a center line toward the dominant direction.
Example
type: energy-grid-balance
Solar consumed gauge
Screenshot of the Solar consumed gauge card.
The solar consumed gauge represents how much of the solar energy was used by your home and was not returned to the grid. If you frequently return a lot, try to conserve this energy by installing a battery or buying an electric car to charge.
Example
type: energy-solar-consumed-gauge
Carbon consumed gauge
Screenshot of the Carbon consumed gauge card.
The carbon consumed gauge card represents how much of the energy consumed by your home was generated using non-fossil fuels like solar, wind and nuclear. It includes the solar energy you generated your self.
Example
type: energy-carbon-consumed-gauge
Self-sufficiency gauge
Screenshot of the self-sufficiency gauge card.
The self-sufficiency gauge represents how self-sufficient your home is. If you rely on grid imports, this value decreases. You can increase this value by adding more solar capacity or battery storage.
Example
type: energy-self-sufficiency-gauge
Devices energy graph
Screenshot of the devices energy graph card.
The devices energy graph shows the energy usage per device. It is sorted by usage.
YAML configuration
The following YAML options are available:
Configuration Variables
By default, this card will show all your devices. Optionally, the number of devices can be limited by adding the max_devices option and specifying the maximum number of devices to show. If there are more devices available than shown, the devices with the highest energy usage are shown.
Hide upstream energy devices like breakers. These are devices that are set as included_in_stat of another device.
Examples
type: energy-devices-graph
The following example limits the number of shown devices to 5:
type: energy-devices-graph
max_devices: 5
Detail devices energy graph
Screenshot of the detail devices energy graph card.
The Detail devices energy graph card is similar to the Devices energy graph card, but shows the individual usage on a time scale.
YAML configuration
The following YAML options are available:
Configuration Variables
Collection key to use for the card. This links the card to a specific energy dashboard collection. If not provided, defaults to the current dashboard page URL.
By default, this card will show all your devices. Optionally, the number of devices can be limited by adding the max_devices option and specifying the maximum number of devices to show. If there are more devices available than shown, the devices with the highest energy usage are shown.
Examples
type: energy-devices-detail-graph
The following example limits the number of shown devices to 5:
type: energy-devices-detail-graph
max_devices: 5
Sankey energy graph
Screenshot of the sankey energy graph card.
The sankey energy graph shows the flow of energy in your home. It starts with sources and flows into the various consumers. Devices are grouped into floors and areas if these are configured. Devices combined into the Other node are not part of any floor or area.
If your battery has sensors for each direction, the energy flowing into and out of the battery is measured. Otherwise, the card estimates these flows from your battery’s totals.
The graph has no flow from one battery to another. If one battery charges another, what the graph shows depends on your batteries:
- With sensors for each direction, the graph shows what those sensors measure. For example, energy from the first battery to your home, and energy from the grid or solar into the second battery.
- With only total in and out, the charging and the discharging can cancel each other out. The graph might then not show the transfer at all.
YAML configuration
The following YAML options are available:
Configuration Variables
vertical, horizontal or auto. Determines the orientation (flow direction) of the card. auto changes it based on the screen size.
Maximum number of devices shown under your home and under each upstream device. Devices beyond the limit are combined into a single Other node, smallest first, so their totals are still included. On the devices energy graph, max_devices hides the extra devices instead. The limit applies per upstream device, not per floor or area.
When true, shows one node per source type, like one Solar node for all your solar panels. When false, each source gets its own node. If not set, the card follows the Combine sources option of a linked energy date picker once that option is shown. A source type with only one source is not changed.
Examples
type: energy-sankey
The following example orients the flow from top to bottom:
type: energy-sankey
layout: vertical
Power flow Sankey graph
Screenshot of the power Sankey graph card.
The power Sankey graph shows the real-time flow of power in your home. Unlike the energy Sankey card, which shows historical energy data based on the selected date range, this card displays current power values and is not affected by the date picker selection.
It visualizes the instantaneous power flow from sources (like the grid, solar panels, and battery) to consumers in your home. Devices are grouped into floors and areas if these are configured. Devices combined into the Other node are not part of any floor or area.
For a battery with sensors for each direction, the card shows the power that the battery’s power sensors measure. A direction without a power sensor counts as 0 W. For a battery with only total in and out, the card estimates these flows from the battery’s net power.
The graph has no flow from one battery to another. If one battery charges another, what the graph shows depends on your batteries:
- With power sensors for each direction, the graph shows what those sensors measure. For example, power from the first battery to your home, and power from the grid or solar into the second battery.
- With only total in and out, the charging and the discharging power cancel each other out. The graph might then not show the transfer at all.
YAML configuration
The following YAML options are available:
Configuration Variables
Collection key to use for the card. This links the card to a specific energy dashboard collection. If not provided, defaults to the current dashboard page URL.
vertical, horizontal or auto. Determines the orientation (flow direction) of the card. auto changes it based on the screen size.
Maximum number of devices shown under your home and under each upstream device. Devices beyond the limit are combined into a single Other node, smallest first, so their totals are still included. On the devices energy graph, max_devices hides the extra devices instead. The limit applies per upstream device, not per floor or area.
When true, shows one node per source type, like one Solar node for all your solar panels. When false, each source gets its own node. If not set, the card follows the Combine sources option of a linked energy date picker once that option is shown. A source type with only one source is not changed.
Examples
type: power-sankey
The following example orients the flow from left to right:
type: power-sankey
layout: horizontal
Power profile graph
Screenshot of the Power profile graph card.
The power profile graph shows historical power data.
YAML configuration
The following YAML options are available:
Configuration Variables
Collection key to use for the card. This links the card to a specific energy dashboard collection. If not provided, defaults to the current dashboard page URL.
Show all legend items when the card loads. By default, a long legend is collapsed and you select More to see the remaining items.
When true, shows one area per source type, like one Solar area for all your solar panels. When false, each source gets its own area. If not set, the card follows the Combine sources option of a linked energy date picker once that option is shown. A source type with only one source is not changed.
Examples
type: power-sources-graph
Power consumption badge
Screenshot of the power consumption badge.
The power consumption badge displays the current total power consumption of your home. It calculates the total power by combining grid import, solar, and battery sources.
YAML configuration
Example
type: power-total
Gas flow rate badge
Screenshot of the gas flow rate badge.
The gas flow rate badge displays the current total gas flow rate from all configured gas sources.
YAML configuration
Example
type: gas-total
Water flow rate badge
Screenshot of the water flow rate badge.
The water flow rate badge displays the current total water flow rate from all configured water sources.
YAML configuration
Example
type: water-total
Using multiple collections
By default, all energy cards on the current dashboard are linked together. Any energy-date-selection cards on this dashboard control what data is shown. If there are none, a default date of today is used. When you add multiple date selection cards, they always show the same date. Any energy-date-selection card on a different dashboard does not affect energy cards on the current dashboard.
To show different dates on the same dashboard, link the cards to different collections with the collection_key option.
All energy cards support collection_key.
Each key starts with energy_, followed by any text you choose, like energy_2.
- In the visual editor, the Energy card collection key field already shows
energy_, so enter only the part after it, like2. - In YAML, enter the full key, like
energy_2. A key that doesn’t start withenergy_causes an error.
Examples
Example view with multiple collections:
type: masonry
path: example
cards:
- type: energy-date-selection
- type: energy-date-selection
collection_key: energy_2
# This card is linked to the first (default) date selection
- type: energy-usage-graph
# This card is linked to the second date selection
- type: energy-usage-graph
collection_key: energy_2