madpilot / hass-amber-electric

Home Assistant Component to pull the latest energy prices from Amber Electric
MIT License
26 stars 1 forks source link

Forecast value #8

Closed davewatson91 closed 3 years ago

davewatson91 commented 3 years ago

Just playing with the forecasts.

Have got them in, and working ok - but it appears the API is only providing a range, and not actually the value itself...

Example for the next period, I have 8.52c range_min & 1393.38c range_max. I can average these, but they distort the numbers.

The app itself is showing a flat 20c forecast for the same period. The API reports the spot price of 14c

Not sure how to handle this, or actually what the best course is (I'm not sure how the app determines the forecast from the range).

Thanks!

madpilot commented 3 years ago

I suspect I forgot to add the perKWH field to the attributes. I'll sort that out shortly

madpilot commented 3 years ago

Yep. That was it. Fixed.