fbjerggaard / home-assistant-barry

Barry integration for Home Assistant
3 stars 1 forks source link

Ignore tomorrow before prices are updated #4

Open PalleRaa opened 2 years ago

PalleRaa commented 2 years ago

The Nordpool integration (https://github.com/custom-components/nordpool) has an bolean attribute whether tomorrows data is valid or not. This is very helpful when trying to display future prices in a bar graph. image

fbjerggaard commented 2 years ago

I think this should ideally be solved in the Barry API not sending out incorrect prices before they are published, since I don't think I can trust an accurate time before showing whether prices for tomorrow are valid or not.

I could implement the tomorrow_valid attribute and flip it to true between 12:00 and 23:00 UTC, but that seems like a bit of a hack