Description:
The current energy-devices-graph card in the Energy Dashboard provides a great overview of individual energy consumption per device using bar charts with different colors. However, I would like to extend this functionality by introducing segments within each bar to show a breakdown of the energy sources contributing to each device’s total consumption.
Proposed Functionality:
For each device in the energy-devices-graph, the bar should be segmented to represent the following categories:
Direct PV Consumption: The amount of energy consumed directly from solar production. (e.g. with green color)
Battery Discharge Contribution: The energy provided from the battery. (e.g. with yellow color)
Grid Consumption: The energy drawn from the grid. (e.g. with red color)
Each segment should be color-coded within the existing bar, while the device-specific color (currently used) could remain as a border or background for consistency.
Benefits:
Provides deeper insights into energy usage patterns.
Highlights the efficiency of self-consumption and battery usage.
Enhances decision-making for optimizing energy utilization.
Example Use Case:
A user with PV panels, a battery storage system, and multiple energy-consuming devices wants to visualize how much energy each device draws from the PV system, battery, or the grid. For example to show in Graph:
Device A: 30 kWh PV, 20 kWh Battery, 50 kWh Grid
Device B: …
Additional Considerations:
The segmentation logic would rely on existing energy sensors in Home Assistant.
Support for tooltips or legends to clarify segment details.
I believe this feature would significantly enhance the usability and analytical capabilities of the Energy Dashboard in Home Assistant.
I’ve created a visual concept for a feature that I think would be a great addition to the Home Assistant Energy Dashboard:
→ Showing per-device energy source breakdowns (PV, battery, grid), without interfering with the existing color scheme for each device.
Why this matters:
We already get total energy consumption per device – but not where the energy came from.
This info is already available in HA, just not presented this way.
It would help optimize self-consumption, battery usage, automation decisions, and more.
Are you saying you are already attributing for each device where the energy is sourced from. Dividing energy usage in a complex battery/solar/gridpeak/offpeak environment is possible but relatively complex.
The advantage of the energy dashboard is that I can use the time picker to set various time ranges, e.g., last year, this year, this month, etc. This eliminates the need to perform complex calculations for different time periods using templates. I’ve abandoned this practice; it’s not feasible with too many consumers if you want to create templates for different time periods.
Sorry I should have been more clear with my question.
I totally understand you want the energy dashboard to display a breakdown of device energy values into solar / battery / grid ‘source’ categories. I like the idea, and I voted for your suggestion. And it has given me some ideas.
My question is: Do you currently have device entities for energy values that represent the different values for battery, solar, grid ? (And want to display them in the energy dashboard)
If you do, I would be interested in the process you used to split the energy values of a device into the different categories.
I have a process that accumulates real $ costs of devices based on different peak/offpeak/solar/tariff values and I have an idea on how to include splitting the energy consumption for each device into source categories.
So in summary just asking if or how far you might have gone down road for doing this?