I’m trying to make a template sensor for estimated total cost this month based on actual cost so far.
Example: Only 10 days into a month I would take the the total cost for each day and get the average of them in total (Avg per day) and multiply with amount of days in that month.
I have a sensor from my energy company with actual cost reading per hour, that resets every hour.
Should I make a Monthly utility meter to get a continious reading?
So it would be something like this: ( Utility value / Day of the month) * Amount of days in this month ?
If you make a utility meter hourly with consumption(kwh)* energy price as utility 1
you can use that as a source in utility meter daily and get same result.