Good morning, I have a template sensor which measures my heating consumption and multiplies by the cost of GJ used. This sensor works as intended.
I wanted to measure daily, weekly and monthly cost, so I used the utility sensor.
Code looks like this:
utility_meter:
daily_cost_heating_cooling:
source: sensor.daily_heating_cooling_cost
cycle: daily
weekly_cost_heating_cooling:
source: sensor.daily_heating_cooling_cost
cycle: weekly
monthly_cost_heating_cooling:
source: sensor.daily_heating_cooling_cost
cycle: monthly
The issue I have is that the values dont match, moreover the weekly and monthly are using the daily utility meter which is wrong, making the 3 counters useless at the moment. Waned to ask for some help, these are the results for the last 7 days:
|Time| source|counter|
|2020-10-15 00:00:00|1.48|1.48|
|2020-10-14 00:00:00|3.25|4.84|
|2020-10-13 00:00:00|2.39|2.39|
|2020-10-12 00:00:00|2.59|4.20|
|2020-10-11 00:00:00|2.52|2.52|
|2020-10-10 00:00:00|2.28|4.23|
|2020-10-09 00:00:00|0.64|1.27|
thx!