custom-components / nordpool

This component allows you to pull in the energy prices into Home-Assistant.
467 stars 112 forks source link

Prices not loading #412

Closed developerfromjokela closed 1 month ago

developerfromjokela commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

Same here, died this morning at 6am.

developerfromjokela commented 1 month ago

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

jarube commented 1 month ago

yup, same here!

Hellowlol commented 1 month ago

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 commented 1 month ago

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

Hellowlol commented 1 month ago

Here is an example: https://dataportal-api.nordpoolgroup.com/api/DayAheadPrices?date=2024-10-08&market=DayAhead&deliveryArea=AT,BE,FR,GER,NL,PL,NO1,SYS&currency=NOK

https://data.nordpoolgroup.com/auction/day-ahead/prices?deliveryDate=latest&currency=NOK&aggregation=Hourly&deliveryAreas=AT,BE,FR,GER,NL,PL,NO1,SYS

developerfromjokela commented 1 month ago

I'll try to implement it, thanks!

pistegif commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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

developerfromjokela commented 1 month ago

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

karlis99 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

Everything is right here, but didn't merge the latest changes https://github.com/custom-components/nordpool/pull/413/commits/a1332b333ee89b5eef2c0c727a3e327024a40bd4

developerfromjokela commented 1 month ago

Everything is right here, but didn't merge the latest changes https://github.com/custom-components/nordpool/pull/413/commits/a1332b333ee89b5eef2c0c727a3e327024a40bd4

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

jvuotila commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

I meant this, is it very very long:

Yes, I edit my reply. See above.

developerfromjokela commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

Ok, thanks for info.

I've implemented new data page API on my repository and working on getting it merged

On Thu 10. Oct 2024 at 12.02, Teme @.***> wrote:

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."

— Reply to this email directly, view it on GitHub https://github.com/custom-components/nordpool/issues/412#issuecomment-2404518420, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJU4T5VZL2JVJGP6R2Z6S53Z2Y7CBAVCNFSM6AAAAABPRWHYMGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBUGUYTQNBSGA . You are receiving this because you were mentioned.Message ID: @.***>

oakmountainsweden commented 1 month ago

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

jvuotila commented 1 month ago

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

Just upgrade the integration.

bilalhp commented 1 month ago

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