Just create a seperate overview with longterm statistics card and energy card…Energy Cards - Home Assistant
is this a hack, as in hacking the frontend code, or merely a hack, as entering electric devices in the gas section…?
If the latter, how does this not mess-up the true gas statistics/graphs/cost calculation? I dont want my 0 for gas to be replaced by any other electric device
Love this!
Hopefully this will be part of the Energy Dashboard (at the right place) one day, the only thing which is really missing (from my perspective).
This is a heck because people would like to see this level of detail for their appliances, possibly by updating or as an option on the existing energy dashboard monitor individual devices card. This is a heck because the data is already available in HA, it is isn’t visualised by default.
This is a hack, using the (gas) consumption card, as it is using the existing front-end as a temporary workaround by (mis) configuring some sensors (no coding changes required) to achieve the desired outcome but with some downsides. If you are tracking gas it mucks up the results, if you aren’t tracking gas the hack shows appliance electrical consumption as gas consumption which can be confusing and the daily $/€ totals are duplicated.
Yeah thx, I got it meanwhile
Seems to be a very useful (and dearly missing) feature.
If dashboard can calculate the totals, it should be just as possible to do so for individuals…
+1 Exactly my thoughts. We need the possibility to use all data present in our Home Assistant in the way we need it.
As using resources electricity / gas / water / oil / or whatever, has become an (huge) issue in so many peoples life for some time now in Europe / The Netherlands. Monitoring my smart meter with P1 module made me realize what I was missing out for many years. In Dutch we say “meten=weten!” Never to old to learn and to adjust your bad (and sometimes costly) habits accordingly.
True! and having the insight what actual usage might cost, even for people without solar solutions, provides insights and awareness on usage. I love the fact that the Energy dashboard now shows water. I am (mis)using this individual power devices in the GAS section of the dashboard, but it would be great if it actually was a separate section for these individual devices. Insights in what things (usage) might cost is what matters most in bringing awareness. Hopefully @frenck or @Bram_Kragten can play a role in this. It is very insightful and useful.
The gas hack does exactly what I want (not just costs, but hourly charts too). But yes, I am also stuck because I use the gas chart for its intended purpose too. We just need a third fuel type added to the energy dashboard. Or better yet change out the the “individual devices” section so it works just like the “energy usage” section.
Who coded the energy dashboard? I’d happily submit a pull request for this (or just make a fork) but I haven’t figured out where the code is yet.
2022.11 will introduce water
And the Energy integration is here I guess
do you know if this still works in the 11 release? I cannot seem to add any new ones.
Same trouble here with 2022.11, looks like the dialogue for adding gas consumption is missing some elements.
I also got a random error message in my logs about Wh not being a valid volume measurement.
hmmmm thanks for cconfirming. I was turning my head around it. Maybe we should log a bug for this?
I think this is the closest.
Did you pick up any movement on this?
No there has been no acknowledgement this is an issue?
@frenck there is a breaking change with the gas consumption dashboard with 2022.11 could I ask someone to have a look at this?
I fully agree with @Brad_Ford. It doesn’t have to be complex.
To able to track individual costs we first need to be able to set the cost for using self-produced energy, and/or the cost of using battery stored energy. As @rct is pointing out, it is not free from costs. With this information we always know what every kWh costs, and you can easily calculate what every device cost.
In my opinion it can not be more correct than this!
I do this today with the help of template sensors and the attribute last_period. The cost for using self-produced energy is set to the “write-off” for the equipment or the compensation for energy returned to the grid if that is greater. If I had a battery I would have set the cost for using energy from that to the write-of costs plus the cost of the the energy that I charged it with. This would be a little bit harder, because we would have to store the cost for charging, and then use that when consuming the energy. But it is far from complex. There is always, at any given time, an accumulated cost for the energy stored in the battery.
100 W costs nothing (0.1 kW x 0 s = 0 kWh). 0.1 kWh costs something, we just need to give the user a change to tell HA how much it costs.
It cost X times the cost per kWh.
Looking at my formula above, I treat this slightly differently, using the “write-off” is an sensible approach, “write-off” costs is around 3¢/ kWh. But I haven’t considered.
I treat the consumption of of energy from my solar or battery as the same as my feed-in price, as I alternatively could of exported that energy to the grid at that instant.
Currently my feed-in price is $0.02/ kWh and the house is consuming just under 2 kWh. So at this instant the house consumption rate is $0.04/ hr.
For energy I consume from the grid, I calculate my grid consumption cost at the general rate, which is currently $0.10/ kWh, I’m currently consuming 14W from the grid so that consumption rate rounds out to $0.00/hr
My overall household consumption cost rate is those two consumption rates added $0.04/ hr + $0.00/ hr = $0.04/ hr, which when divided by my overall consumption of just under 2 kW works out to be $0.02/ kWh. (Nb the total W don’t add up as I did my screenshot moments apart, but you should get the idea.
This means for any instant, I know what the consumption cost is and this can be applied to any appliance and takes into account the mixing of energy sources for solar PV, Battery and Grid.
If I had a battery I would have set the cost for using energy from that to the write-of costs plus the cost of the the energy that I charged it with. This would be a little bit harder, because we would have to store the cost for charging, and then use that when consuming the energy.
I found it very complex to calculate the cost of energy stored in the battery so you will see it doesn’t feature above, but you are correct it needs to be accounted for. I also haven’t accounted for SOLAR PV that wasn’t instantly consumed so I have created some additional counters for Solar Savings and Battery Savings.
My solar savings rate is:
+ solar2house * general_rate
+ solar2grid * feedIn_rate
+ solar2batt * feedin_rate
My battery savings rate is:
+ batt2house * general_rate
+ batt2grid * feedin_rate
- solar2batt * feedin_rate
- grid2batt * general_rate
This is an elegant solution as it treats solar2grid as a solar savings but a battery cost at the same time.
Which I can calculate and graph over time.
If would be great if I could get some validation from others that this produces sensible results for other use cases.