erlendsellie/priceanalyzer

tomorrow_valid not in sync

Opened this issue · 3 comments

The tomorrow_valid flag will sometime show "true", even if data for tomorrow is not available from Nordpool. Everything else is working, but I use this flag to show/hide a visualization for next days prices. I haven't checked if the Nordpool integration behave in a similar way.

image

Thanks for creating an issue for this bug!
This is a bug inherited from the Nordpool integration, which this integration is forked from. I've tried to fix it a few times, but don't think i've solved it quite yet.
I'm adding some debug data to my environment so that i can figure it out.

Do you also experience the issue where raw_tomorrow is filled with today's prices, when this happens (or otherwise)?

Do you also experience the issue where raw_tomorrow is filled with today's prices, when this happens (or otherwise)?

Yes, excacly - raw_tomorrow is always populated with todays prices when this occur.

I tried to fix this issue the same way the Nordpool-integration did, and just released a new version. Let me know if it worked for you or not.
I suspect it still may be an issue if there is multiple instances of this integration set up on the same Home Assistant instance. Do you just one, or multiple?