Home Dashboard Layout PackGuidesFree cards

Energy Wheel Card

A card for Home Assistant that shows solar, grid, home and (optionally) a battery as a wheel of animated arrows, with three views you can switch between: power now, energy for a period, and what it costs or saves. No dependencies, one JavaScript file, a visual editor included.

Energy Wheel Card screenshot

Free, MIT licensed. Version 1.0.0. Download energy-wheel-card.js (25 KB)

Manual install (about 2 minutes, no HACS)
  1. Download energy-wheel-card.js.
  2. Copy it into /config/www/dashpack/ on your Home Assistant (create the folder if needed; restart once if /config/www did not exist).
  3. Turn on Advanced mode in your profile. Then Settings > Dashboards > three dots > Resources > Add resource: URL /local/dashpack/energy-wheel-card.js, type JavaScript module.
  4. Hard-refresh the browser (Ctrl+Shift+R / Cmd+Shift+R). The card is now available as custom:energy-wheel-card.

Use

Add the card from the card picker ("Energy Wheel Card") or in YAML. The smallest useful config:

type: custom:energy-wheel-card
solar_power_entity: sensor.solar_power
grid_power_entity: sensor.grid_power

Everything works from YAML; the visual editor covers the common options and keeps the rest.

A fuller example with a battery, an energy view and a money view:

type: custom:energy-wheel-card
title_power: Power now
title_energy: Energy today
title_money: Costs today
solar_power_entity: sensor.solar_power
grid_power_entity: sensor.grid_power
production_is_positive: true      # positive grid value = exporting
battery_power_entity: sensor.battery_power
battery_soc_entity: sensor.battery_level
solar_energy_entity: sensor.solar_energy_today
grid_energy_consumption_entity: sensor.grid_import_today
grid_energy_production_entity: sensor.grid_export_today
energy_consumption_rate: sensor.electricity_price   # a number or an entity
energy_production_rate: 0.08
money_unit: "$"
initial_auto_toggle_view: true
auto_toggle_view_period: 8

The unit in the middle switches views; the "Auto" button in the corner cycles them. Tapping a value opens that entity's more-info dialog.

The three views

ViewNeedsShows
Powersolar_power_entity and a grid sensor (or an import/export pair)live power; arrows with values; optional battery
Energysolar_energy_entity plus either grid_energy_consumption_entity + grid_energy_production_entity, or grid_energy_entity + home_energy_entityenergy for whatever period your sensors cover (day, month...)
Moneythe Energy view plus energy_consumption_rategrid = bought minus sold (negative means you earned), solar = what it saved plus what it earned, home = consumption at the buying rate

Views you have not configured are simply not offered. Home power is calculated (solar plus grid import, minus export, minus battery charging) unless you give home_power_entity / home_energy_entity. In the Energy view, battery flows are not tracked. With only net grid and home energy sensors the Energy and Money views show values but no arrows, because a net number hides the direction of flow.

Options

OptionDefaultNotes
solar_power_entityrequiredone entity id or a list; a list is summed
grid_power_entitynet grid power. Or use the next two
grid_power_consumption_entity, grid_power_production_entityseparate import and export sensors
production_is_positivetruepolarity of the net grid sensors (grid_power_entity, grid_energy_entity)
home_power_entitycalculateduse a real home sensor for the home value
battery_power_entity, battery_soc_entitybattery power and its percentage
charging_is_positivetruepolarity of the battery sensor
solar_energy_entityone id or a list
grid_energy_consumption_entity, grid_energy_production_entitygrid import and export energy
grid_energy_entity, home_energy_entitynet grid energy and home energy, when you have no separate sensors
energy_consumption_rate, energy_production_rateprice per energy unit, a number or an entity id; production defaults to the consumption rate
money_unit€shown in the middle of the Money view
title, title_power, title_energy, title_moneynoneper-view titles override title
power_unit, energy_unitautomaticW, kW, MW / Wh, kWh, MWh; automatic = the unit of the first solar sensor. Sensors are converted, so W and kW can be mixed
power_decimals, energy_decimals, money_decimals0 (W) or 2 (kW); 0 (Wh) or 3; 2
min_flow0hide arrows at or below this value (in the displayed unit)
initial_viewpowerpower, energy or money
initial_auto_toggle_view, auto_toggle_view_periodfalse, 10automatic view switching, in seconds
color_icons, consuming_color, producing_color, invert_grid_colors, active_arrow_coloron, theme yellow, theme green, off, themeany CSS colors
solar_icon, grid_icon, home_icon, battery_iconsensor icon or defaultmdi icons
solar_name, grid_name, home_name, battery_nameSolar, Grid, Home, Batterylabels

Arrows stop animating if the browser asks for reduced motion.

Example dashboard

A small sample view you can paste into the raw configuration editor (replace the placeholder entity ids with your own):

max_columns: 1
sections:
  - type: grid
    cards:
      - type: custom:energy-wheel-card
        title: Energy
        solar_power_entity: sensor.solar_power
        grid_power_entity: sensor.grid_power
        solar_energy_entity: sensor.solar_energy_today
        grid_energy_consumption_entity: sensor.grid_import_today
        grid_energy_production_entity: sensor.grid_export_today
        energy_consumption_rate: 0.25
      - type: grid
        columns: 2
        square: false
        cards:
          - type: tile
            entity: sensor.solar_power
          - type: tile
            entity: sensor.grid_power
          - type: tile
            entity: climate.thermostat
          - type: tile
            entity: switch.ev_charger

8 more ready-made views (living room, bedroom, kitchen, cameras, security, energy, mobile) are in the Home Dashboard Layout Pack ($9): https://dashpack.strahmdigital.com/

Free dashboard guides with copy-paste YAML: https://dashpack.strahmdigital.com/guides/ Related guide: https://dashpack.strahmdigital.com/guides/home-assistant-energy-dashboard-card/

Coming from custom:power-wheel-card

That card (gurbyz/power-wheel-card) has not been updated since 2022. Its open issues include a battery icon that shows twice (#81), a home value that is calculated even when you give a home sensor (#80), no second solar sensor (#78) and no entity for the price (#88). This card is an independent rewrite that keeps the same option names for the common settings, so most configs work after changing the card type:

  1. Change type: custom:power-wheel-card to type: custom:energy-wheel-card.
  2. Check the options below, then the layout: it is a similar but not pixel-identical design (battery gets its own slot at the bottom).
Old optionHere
solar_power_entity, grid_power_entity, grid_power_consumption_entity, grid_power_production_entity, production_is_positivesame
solar_energy_entity, grid_energy_consumption_entity, grid_energy_production_entity, grid_energy_entity, home_energy_entitysame
energy_consumption_rate, energy_production_rate, money_unitsame; the rates may now also be an entity id
title, title_power, title_energy, title_moneysame
power_decimals, energy_decimals, money_decimalssame; default depends on the unit
initial_view, initial_auto_toggle_view, auto_toggle_view_periodsame
color_icons, consuming_color, producing_color, invert_grid_colors, active_arrow_colorsame
solar_icon, grid_icon, home_iconsame
battery_power_entity, battery_soc_entity, charging_is_positive, battery_iconsame, no longer marked beta
home_power_entity, home_energy_entity (used for the icon only)now also the value shown for home; remove them if you want the calculated value
debugnot needed, ignored
style (card-mod)use card-mod's own card_mod: on the card; the inner class names differ
(none)new: power_unit, energy_unit (mixed W and kW sensors work), a list for solar_*_entity, min_flow, *_name, hass-more-info on tap

The money view's numbers are defined as described above; compare them with your old card before relying on them.

This project is not affiliated with the author of that card.

All free cards · Dashboard guides