energytariff icon indicating copy to clipboard operation
energytariff copied to clipboard

Average calculation

Open tmjo opened this issue 8 months ago • 0 comments

Hi! Thanks for this integration, I'm really enjoying it.

Not all of my power management automations are ideal or fully implemented yet, so I got pretty close to my tariff threshold this month. In fact, it so close that the integration reports that I am over my threshold, while my grid provider says I'm spot on the limit (so better stay low for the rest of the month😂).

Seems like my grid provider is using only to decimals to the kWh/h calculation, whilst the integration is using quite a lot. The good part is that both agree on the number, time and date perfectly, so things are really working great! I don't know if different grid providers use different calculation methods, but look at the below example:

Integration: image

Grid provider: image

Grid provider doesn't give me more decimals, so I can't know for sure if it is the exact same numbers in the background as the integration. However, it seems like they use maximum two decimals, and that they don't round 5,195 to 5,20 or 4,995 to 5,00 but rather discards whatever comes beyond the two decimals. Not uncommon in the finance world, but perhaps less common in the scientific world. As seen from the screenshot they still maintain me on the lower threshold while the integration has calculated me for the next step.

On the grid provider site I am spot on 5.0 which is my threshold limit.

Perhaps other users have similar or even contradicting experience? Any way we could know for sure if all grid providers use the "same math"?

tmjo avatar Oct 16 '23 12:10 tmjo