JaccoR / hass-entso-e

Integration for Home Assistant to fetch day ahead energy prices from European countries via ENTSO-e Transparency Platform
Apache License 2.0
172 stars 27 forks source link

Entsoe api response parsing issue: PT15M data is not handled correctly #179

Open rwegnerGermany opened 2 days ago

rwegnerGermany commented 2 days ago

Hi, starting with v0.5, the forecast for tomorrow seems to be wrong and is not corrected/updated when the today comes closer.

grafik

Yesterday I saw, that prices for Sep. 22nd 00:00 onwards are most likely wrong (left magenta box) and was curious to see if they get corrected. No, today morning prices where wrong.

So I deleted the integration and re-added it. Prices for today are correct now (orange instead of green line) but for tomorrow they again do look not reasonable and I assume they will not get updated.

With v0.4.2 it worked perfectly!

(Germany. Prices checked with EVCC entso-e and my energy provider's website.) Modification template: {% set s = {"Arbeitspreis": 0.1984,"VAT": 1.19 } %}{{(current_price + s.Arbeitspreis/s.VAT) | float}}

rwegnerGermany commented 2 days ago

I just downgraded to v0.4.0 and I only see today's correct prices again: grafik

In the afternoon prices for tomorrow will be available and downloaded and most likely be correct. :heavy_check_mark:

Maybe v0.5 downloads too far in the future and doesn't update already downloaded timestamps?

The "sawtooth" data for tomorrow in the post above looks a bit like PT15M forecast: big step up, about 4 small steps down, big step up,... grafik

Roeland54 commented 2 days ago

Hi thanks for reporting this issue. It seems like the data is not parsed correctly when there is also "PT15M" returned in the response.

Roeland54 commented 2 days ago

Released v0.5.1 with a fix for this. Can you test this?

rwegnerGermany commented 1 day ago

Thanks, looks good so far!