Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prices not loading #412

Closed
developerfromjokela opened this issue Oct 8, 2024 · 30 comments
Closed

Prices not loading #412

developerfromjokela opened this issue Oct 8, 2024 · 30 comments

Comments

@developerfromjokela
Copy link
Contributor

Hi.

Prices seem not to load, tried to access API manually, it seems to be down. 503 error.
There was an article on nordpool site that they're deprecating some APIs, can this be the cause?

@corove
Copy link

corove commented Oct 8, 2024

I have the same issue.
Not loading any API from Nordpool at all. Tried to set up new API connection, but still no response.

@ykii
Copy link

ykii commented Oct 8, 2024

Same here, died this morning at 6am.

@developerfromjokela
Copy link
Contributor Author

It's also causing major slowdowns in Home Assistant because of it. Restarts take >5 min.

@jarube
Copy link

jarube commented Oct 8, 2024

yup, same here!

@Hellowlol
Copy link
Collaborator

Maybe they finally has pulled the plug for the old API that we have been using. The new API seems to be a lot simpler to use, unfortunately, i dont have time update this integration for a couple of weeks. If you need another good alternative i can recommend: https://github.com/JaccoR/hass-entso-e

@developerfromjokela
Copy link
Contributor Author

What's the new API? Can you link it here? @Hellowlol

@developerfromjokela
Copy link
Contributor Author

I'll try to implement it, thanks!

@pistegif
Copy link

pistegif commented Oct 8, 2024

The prices seem to load again. At some point after 14:00 when the tomorrow download triggered, the tomorrow prices appeared, and then HA restart loaded today's prices too.
But since it is still in the dark how long the old API will hold, I'd be happy to throw few sponsor bucks to @developerfromjokela or @Hellowlol if you have the time/will to migrate to new API :)

@developerfromjokela
Copy link
Contributor Author

The prices seem to load again. At some point after 14:00 when the tomorrow download triggered, the tomorrow prices appeared, and then HA restart loaded today's prices too.

But since it is still in the dark how long the old API will hold, I'd be happy to throw few sponsor bucks to @developerfromjokela if you have the time/will to migrate to new API :)

Just checked, no prices on my instance. Probably better to migrate

@lightheaded
Copy link

My prices are back as well after a restart. They were down from around 7am UTC, and came back just now after I restarted after installing the ENTSO-E integration 😅 there's some irony for you

@jannesaarinen
Copy link

For me the prices reapperead after I reloaded the integration (didn't have to restart homeassistant).

I'm also happy to offer you coffee @developerfromjokela , if you have the time to migrate to new API. I can bring the coffee to you in person, if you live really in Jokela / Tuusula, as I'm based also in Tuusula. :)

@developerfromjokela
Copy link
Contributor Author

If some people want to test the new API, copy over files modified in the commit and restart HA 😉

@developerfromjokela
Copy link
Contributor Author

Significant performance improvement was a positive side-effect of this migration 😄

@karlis99
Copy link

karlis99 commented Oct 8, 2024

If some people want to test the new API, copy over files modified in the commit and restart HA 😉

Thanks, works for me to!

@dana-se
Copy link

dana-se commented Oct 9, 2024

If some people want to test the new API, copy over files modified in the commit and restart HA 😉

Works for me with SE4, and the Integration startup time went from five to under one second 😄
Is there something special you want us to test?

Thanks

@jvuotila
Copy link

jvuotila commented Oct 9, 2024

If some people want to test the new API, copy over files modified in the commit and restart HA 😉

I also replaced the changed files and omg how fast integrations starts after HA restart. Seems that old version have been hanging the whole startup quite a much!

@developerfromjokela
Copy link
Contributor Author

If some people want to test the new API, copy over files modified in the commit and restart HA 😉

Works for me with SE4, and the Integration startup time went from five to under one second 😄

Is there something special you want us to test?

Thanks

Just to make sure everything works as it should and no new issues come up. Nothing specific :)

@developerfromjokela
Copy link
Contributor Author

Now that tomorrow's prices are available, check your raw_today attribute. Is it veery long? Or is it only on my home assistant?

@dana-se
Copy link

dana-se commented Oct 9, 2024

Everything is right here, but didn't merge the latest changes a1332b3

@developerfromjokela
Copy link
Contributor Author

Everything is right here, but didn't merge the latest changes a1332b3

Ok. I had that issue yesterday on first commit, curious if anybody else has this also.

@jvuotila
Copy link

jvuotila commented Oct 9, 2024

Now that tomorrow's prices are available, check your raw_today attribute. Is it veery long? Or is it only on my home assistant?

raw_today
[{'start': datetime.datetime(2024, 10, 9, 0, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'end': datetime.datetime(2024, 10, 9, 1, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'value': 0.0}, {'start': datetime.datetime(2024, 10, 9, 1, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'end': datetime.datetime(2024, 10, 9, 2, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'value': 0.0}, {'start': datetime.datetime(2024, 10, 9, 2, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'end': datetime.datetime(2024, 10, 9, 3, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'value': 0.0}, {'start': datetime.datetime(2024, 10, 9, 3, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'end': datetime.datetime(2024, 10, 9, 4, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'value': 0.0}, {'start': datetime.datetime(2024, 10, 9, 4, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'end': datetime.datetime(2024, 10, 9, 5, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'value': 0.0}, {'start': datetime.datetime(2024, 10, 9, 5, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'end': datetime.datetime(2024, 10, 9, 6, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'value': 0.0}, {'start': datetime.datetime(2024, 10, 9, 6, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'end': datetime.datetime(2024, 10, 9, 7, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'value': 0.42}, {'start': datetime.datetime(2024, 10, 9, 7, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'end': datetime.datetime(2024, 10, 9, 8, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'value': 0.61}, {'start': datetime.datetime(2024, 10, 9, 8, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'end': datetime.datetime(2024, 10, 9, 9, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'value': 1.24}, {'start': datetime.datetime(2024, 10, 9, 9, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'end': datetime.datetime(2024, 10, 9, 10, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'value': 1.4}, {'start': datetime.datetime(2024, 10, 9, 10, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'end': datetime.datetime(2024, 10, 9, 11, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'value': 1.43}, {'start': datetime.datetime(2024, 10, 9, 11, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'end': datetime.datetime(2024, 10, 9, 12, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'value': 1.41}, {'start': datetime.datetime(2024, 10, 9, 12, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'end': datetime.datetime(2024, 10, 9, 13, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'value': 1.18}, {'start': datetime.datetime(2024, 10, 9, 13, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'end': datetime.datetime(2024, 10, 9, 14, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'value': 1.0}, {'start': datetime.datetime(2024, 10, 9, 14, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'end': datetime.datetime(2024, 10, 9, 15, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'value': 0.91}, {'start': datetime.datetime(2024, 10, 9, 15, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'end': datetime.datetime(2024, 10, 9, 16, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'value': 0.95}, {'start': datetime.datetime(2024, 10, 9, 16, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'end': datetime.datetime(2024, 10, 9, 17, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'value': 1.02}, {'start': datetime.datetime(2024, 10, 9, 17, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'end': datetime.datetime(2024, 10, 9, 18, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'value': 1.12}, {'start': datetime.datetime(2024, 10, 9, 18, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'end': datetime.datetime(2024, 10, 9, 19, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'value': 1.19}, {'start': datetime.datetime(2024, 10, 9, 19, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'end': datetime.datetime(2024, 10, 9, 20, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'value': 1.09}, {'start': datetime.datetime(2024, 10, 9, 20, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'end': datetime.datetime(2024, 10, 9, 21, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'value': 0.82}, {'start': datetime.datetime(2024, 10, 9, 21, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'end': datetime.datetime(2024, 10, 9, 22, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'value': 0.19}, {'start': datetime.datetime(2024, 10, 9, 22, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'end': datetime.datetime(2024, 10, 9, 23, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'value': 0.0}, {'start': datetime.datetime(2024, 10, 9, 23, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'end': datetime.datetime(2024, 10, 10, 0, 0, tzinfo=zoneinfo.ZoneInfo(key='Europe/Helsinki')), 'value': 0.0}]

today
[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.42, 0.61, 1.24, 1.4, 1.43, 1.41, 1.18, 1.0, 0.91, 0.95, 1.02, 1.12, 1.19, 1.09, 0.82, 0.19, 0.0, 0.0]

@developerfromjokela
Copy link
Contributor Author

developerfromjokela commented Oct 9, 2024

Now that tomorrow's prices are available, check your raw_today attribute. Is it veery long? Or is it only on my home assistant?

[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.42, 0.61, 1.24, 1.4, 1.43, 1.41, 1.18, 1.0, 0.91, 0.95, 1.02, 1.12, 1.19, 1.09, 0.82, 0.19, 0.0, 0.0]

I meant this, is it very very long: image

@jvuotila
Copy link

jvuotila commented Oct 9, 2024

I meant this, is it very very long:

Yes, I edit my reply. See above.

@developerfromjokela
Copy link
Contributor Author

I meant this, is it very very long:

Yes, I edit my reply. See above.

On my HA it contained today's prices + 10x duplicate of tomorrow prices. Yours is normal.

@Teme-V
Copy link

Teme-V commented Oct 10, 2024

Nordpool have sent following info:
"dear customer... "Please be aware that on Monday 14th October 2024 we will be closing our old market data pages, which until now have been hosted on nordpoolgroup.com.

These legacy pages were replaced some time ago - Market Data is now available on our new Data Portal, which you can find here."

@developerfromjokela
Copy link
Contributor Author

developerfromjokela commented Oct 10, 2024 via email

@oakmountainsweden
Copy link

Hi, I have this issue. What can I do to make it work again?

@jvuotila
Copy link

Hi, I have this issue. What can I do to make it work again?

Just upgrade the integration.

@bilalhp
Copy link

bilalhp commented Oct 15, 2024

What's the way to upgrade this integration without upgrading the HA?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests