Hi!
Is it possible to extract the energy cost automatically calculated on the energy dashboard using a template? I want to display the value in a specific way on a dashboard?
Thanks
Hi!
Is it possible to extract the energy cost automatically calculated on the energy dashboard using a template? I want to display the value in a specific way on a dashboard?
Thanks
The calculated values do not have entities associated with them that you can access in a template.
If you know SQL you might be able to query the recorder database to obtain the value you want with an SQL sensor.
Good point
I do know SQL, but as the cost does not have an entity, I am unable to find any information about it in the DB. These are the tables I see:
Any idea where I might find the energy information? It MUST be there, unless it is calculated on the fly from the previous energy usage and kWh costs (?)
it would be in the statistics tables.
But, isn’t everyting in the statistics table linked to entities as well?
I don’t know, I haven’t looked in the tables. FYI this isn’t something that people are going to know off the top of their head. You’re going to have to look for it yourself. It’s also possible that it’s not in the tables and you have to perform a summation on the data yourself.