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

Sometimes wrong calculated price appears. Noticed so far two times. #84

Open
Lipown opened this issue Jan 27, 2025 · 4 comments
Open

Sometimes wrong calculated price appears. Noticed so far two times. #84

Lipown opened this issue Jan 27, 2025 · 4 comments

Comments

@Lipown
Copy link

Lipown commented Jan 27, 2025

I might have some issue in template, but I do not think so. This happened also prior the updated.

Calculation

Image

{{ (value + states('sensor.adjusted_electricity_price_v2') | float) * 1.21 }}

(3.30426 Kč/kWh + 1.416 CZK/kWh)*1.21 = 5,7115146 Kč/kWh vs caluculated price per sensor 5.09

Sensors used for final calculation dump:

sensor.adjusted_electricity_price_v2

Image

sensor.current_spot_electricity_price

Image

sensor.current_buy_electricity_price

Image

@Paja-git
Copy link

Paja-git commented Jan 28, 2025

What happen at 10AM? Is it a same/similar case?

Image

@Lipown
Copy link
Author

Lipown commented Jan 29, 2025

No idea, but it happens seems multiple time per day. How to debug?

Image

  • but when it happened it is certainly not at the same place as the "teeth"

Image

The tariff sensor changes at approx each hour and :21 seconds, that's why there are those teehts. That should not matter.

@Paja-git
Copy link

@Lipown Mel jsem ideu, ze tam vznika nejaky "prechodovy" dej, kdyz se integraci na vstupu meni vice hodnot v jednom case. Jinja je prece jen interpret, ktery ma nejakou dobu behu.

@Lipown
Copy link
Author

Lipown commented Jan 31, 2025

Skvělá nápad. Tímto jevem se mi spouští automatizace, které spouštět nechci a tak u nich mám nastavené zpoždění kontroly podmínek.

...za tím výpočtem nesprávné ceny je něco jiného...

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

2 participants