mampfes / ha_epex_spot

Adds EPEX Spot data to Home Assistant.
MIT License
130 stars 19 forks source link

get lowest price interval reports wrong data #49

Closed derbadewaschl closed 11 months ago

derbadewaschl commented 11 months ago

Hi,

I just updated to 2.0.0. When I run the "Get lowest price interval" service from the Developer/Services menu with a duration of 2h, it will give me following answer:

start: "2023-10-09T01:00:00+00:00" end: "2023-10-09T03:00:00+00:00" price_eur_per_mwh: 152.4 price_ct_per_kwh: 15.24 net_price_ct_per_kwh: 22.081919999999997

However, when you look at the attached raw data, the cheapest 2h interval is 2:00 - 4:00, not 1:00-3:00. Also, the price should be 12.114, not 15,24ct/kWh.

I am using ha 2023.9.2.

epex_spot_data_net_price.txt

Regards

derbadewaschl

mr-p666 commented 11 months ago

Hej, this is because the service menu output does not show your local time. Try it out. ;-)

derbadewaschl commented 11 months ago

you're right. it works fine from the template. thanks.