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
173 stars 28 forks source link

Bug: High, Min, Max and avg (etc) today values are updated at next day data available time #58

Closed sfstar closed 1 year ago

sfstar commented 1 year ago

The entities containing today's high, low etc points are updated with today's data when tomorrow's data becomes available. This causes these entities to calculate today's x value when the day is halfway past over. Causing (for example) lowest and highest cost to contain data in the past when they are calculated. It would be better to either calculate them at 00:01 or (my preference) calculate them with all available future data.

However, the 2nd option would require new entities or changing the purpose of existing entities. So for backwards compatibility option 1 is preferable.

sfstar commented 1 year ago

With the merge of #71 This issue can now be closed since it is now user configureable