Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Average calculation #13

Open
tmjo opened this issue Oct 16, 2023 · 0 comments
Open

Average calculation #13

tmjo opened this issue Oct 16, 2023 · 0 comments

Comments

@tmjo
Copy link

tmjo commented Oct 16, 2023

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"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant