No wonder I couldnt see the energy dash, I needed to manually add “energy:” to the yaml. The price seems to update well there, however I’m having trouble adding all my entities due to the “bug” even tho my entities have the device_class and measurement attribute they dont show up.
I cannot see how any of this could solve the problem.
The energy dashboard gives me the total cost for my consumption so far this month, fine.
But what we need is the average of the hourly price per unit
Not sure i understand you, the price is from your energy provider, you use that to put into HA and from your energy usage it calculates the cost, not the otherwayround
Fortunately I get the current invoice updated each day from my provider as a sensor in ha. So I took that value and divided it by my used kWh and got the current price per kwh so far of the current month.
I gave up on getting the “average price per day so far” every month but I’m sure it can be done for anyone who can code json better than me. One only needs to know the number of the current day of the month and divide the summed up invoice by that number