Support cost savings calculation with solar panels, battery storage, and dynamic electricity pricing #1065
Replies: 3 comments
-
|
I think a pre-requisite of this would be for home assistant to understand the changing "cost" of electricity, taking account of what fraction of the electricity being produced and consumed (in a given time period) is from grid vs solar vs battery, and understanding the varying costs for each (grid costs vary depending on your electricity tariffs by time of day, solar is approximately zero cost, battery costs depend on the cost of electricity used to charge the battery,...) I wrote up an approach which I think would work for this here: https://community.home-assistant.io/t/energy-cost-for-the-individual-devices/334932/183?u=vincedd (in the "Energy: cost for individual devices" feature request thread with 1143 votes over there!), reposted below for clarity: If I understand correctly, one of the challenges with this request is that while it seems straightforward. It is only straightforward for those without solar or home-batteries. If you have solar and/or batteries then the cost of electricity in any time period is more difficult to determine - when an individual device consumes electricity, what is the cost of that combination of grid/solar/battery at that moment? However, “difficult” is not the same as “impossible”. Having thought this through, here’s how it can be done. 3 sources of electricity: Grid (cost given by electrical supplier - can often change every half hour) EP_grid (the kWh provided by the grid) (zero if off-grid or exporting…) And similarly when charging the battery, there is a EP_solar_charging (the kWh used from solar to charge the battery) The cost of electricity in any interval of time is the weighted cost of the electricity from each provider. So the real-time cost per kWh for any device consuming electricity then, is: Cost of electricity in any interval ‘C_elec’ = C_grid * EP_grid/EP_total + C_solar * EP_solar/EP_total + C_battery * EP_battery/EP_total. (where, as above, EP_xxx is zero if that provider is not currently providing electricity, so if the battery is not discharging, EP_battery is zero). How do we calculate each of C_grid, C_solar, C_battery? C_solar is easy (it is zero). C_grid is also easy - it is the cost per kWh charged by the grid in that time period. C_battery needs to be calculated. To do that we must maintain a total cost (money) that has been stored in the battery. This is updated any time that the grid is used to charge the battery at all: Total_cost_in_battery = Last_period_total_cost_in_battery + EP_grid_charging * C_grid + EP_solar_charging * C_solar. So, using the above we can calculate ‘C_elec’, and hence know the cost of electricity in our system in the current time interval. That is the cost that should be applied to any consumer of electricity in this time interval: mostly that is all of your household devices. If you are exporting to the grid, then it is also your supply cost for that export (so the grid should be paying you more than C_elec if you are choosing to export!). |
Beta Was this translation helpful? Give feedback.
-
|
This is a very well-explained feature request, and it highlights a real gap in Home Assistant’s current Energy Dashboard. For households using solar panels, battery storage, and dynamic electricity tariffs, the financial impact of smart energy shifting is just as important as the energy-flow data. Being able to compare “with battery” vs. “without battery” cost scenarios directly in the dashboard would make the system far more practical, especially for users who rely on hourly pricing models like Nord Pool. Integrating these calculations natively—rather than requiring custom templates or external tools—would give people a much clearer view of how much they’re actually saving by charging batteries with solar or during off-peak hours. It’s a feature many solar-powered homes could benefit from, similar to how advanced monitoring tools are used in commercial solar brisbane setups to showcase real-time cost optimization and load shifting. Adding this capability would definitely make Home Assistant’s energy management more powerful, transparent, and user-friendly. |
Beta Was this translation helpful? Give feedback.
-
|
I support this feature too and just in case anyone isn't aware, this feature received over 1140 upvotes on the Home Assistant community forum |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe your core improvement
I would like Home Assistant’s core energy management to support cost savings calculations that combine: solar production, battery storage behavior, and dynamic electricity prices (time-of-use tariffs).
Specifically, the system should calculate the monetary savings when:
Currently, the Energy Dashboard shows consumption, production, and export, but it does not calculate what the actual monetary savings are when using a battery to shift load between expensive and cheap hours.
The enhancement would allow Home Assistant to:
This would make Home Assistant much more useful for households with solar panels, storage batteries, and hourly electricity pricing models (like Nord Pool in Europe), by clearly showing the financial benefits of optimizing battery usage.
Current limitations
The current Energy Dashboard provides insights into energy flows (consumption, production, export, and battery usage), but it has several key limitations:
These limitations prevent Home Assistant from showing the full financial impact of battery and solar optimization for households with time-of-use electricity tariffs.
Technical benefits
Implementing this feature would enhance Home Assistant’s core capabilities by:
This improvement would strengthen the core energy management functionality, making it more useful for households with solar panels, storage batteries, and time-of-use electricity tariffs.
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions