rnovacek / homeassistant_cz_energy_spot_prices

Home Assistant integration that provides current Czech electricity spot prices based on OTE.
Apache License 2.0
75 stars 17 forks source link

Prices shifted by one hour #47

Closed shaman79 closed 2 months ago

shaman79 commented 6 months ago

It seems that the prices are shifted by one hour. It may be a timezone problem, but I have HA currently set Central European Time/Prague+1:00 which should be OK.

Look at the example - OTE and raw data side by side. It shows that the price 1.2CZK/KWh starts at 09:00

image

Here is the time from HA where it starts at 08:00.

image

Basically HA shows the price one hour earlier than it should.

rnovacek commented 6 months ago

I think HA shows correct price but you might be interpreting OTE prices incorrectly. "9. hodina" on OTE means 10:00 - 11:00. The day starts with "1. hodina" and it means 0:00 - 1:00. Does it make sense?

kkoouu commented 6 months ago

I think HA shows correct price but you might be interpreting OTE prices incorrectly. "9. hodina" on OTE means 10:00 - 11:00. The day starts with "1. hodina" and it means 0:00 - 1:00. Does it make sense?

just a little correction: 9th hour is from 8:00-9:00

rnovacek commented 6 months ago

I think HA shows correct price but you might be interpreting OTE prices incorrectly. "9. hodina" on OTE means 10:00 - 11:00. The day starts with "1. hodina" and it means 0:00 - 1:00. Does it make sense?

just a little correction: 9th hour is from 8:00-9:00

Of course :facepalm: Thank you

shaman79 commented 6 months ago

OK, it might be actually problem with the "raw" data I received for testing. I will re-check.

rnovacek commented 2 months ago

Closing now. @shaman79 please reopen if you still face some problems.