fsaris / home-assistant-zonneplan-one

Unofficial Zonneplan integration for Home Assistant
https://github.com/fsaris/home-assistant-zonneplan-one
MIT License
105 stars 17 forks source link

Sometimes the current elek/gas tarif is nothing #59

Closed Senshin86 closed 10 months ago

Senshin86 commented 1 year ago

So sometimes the system forgets the prices, when it updates new hourly data for gas and elec it doesnt register a updated price. Is there something possible between refreshing when it fails it can keep the old/current price in stead of forgetting the price for like 5 minutes becuase of the update.

hopefully you know what i mean.

Sjoerd

jhjdekker98 commented 1 year ago

Seems like this could be solved pretty easily using a globally scoped variable in coordinator::_fetch_data that holds the values for the result-object that gets returned by that function.

I'm not familiar at all with the codebase and I can't find any usage reference to the calling method coordinator::_async_update_data using GitHub's search function - so I'm not sure this possible solution would cause any other problems.

fsaris commented 1 year ago

Do you only have this for the price sensors? And multiple times a day or only at a specific time a day?

kababoom commented 1 year ago

I got this too, not found a pattern yet..

It's annoying since it messes up the estimated energy costs.

image
DaWacko87 commented 1 year ago

I am having the same issue since 12 o'clock today for the current electricity price sensor only.

hmmbob commented 1 year ago

I am having the same issue since 12 o'clock today for the current electricity price sensor only.

See #63 and the solution in #64.

Or, if you are using HACS, choose to reinstall with selecting version "main"

Paul1865 commented 1 year ago

Thanks!! Just updated :)