JaccoR / hass-entso-e

Integration for Home Assistant to fetch day ahead energy prices from European countries via ENTSO-e Transparency Platform
159 stars 25 forks source link

Max retries exceeded with url #94

Closed Dominic-070 closed 1 year ago

Dominic-070 commented 1 year ago

Error, Max retries exceeded with url. Config: Sliding Log copy paste:

Deze fout is ontstaan door een aangepaste integratie.

Logger: custom_components.entsoe.coordinator Source: helpers/update_coordinator.py:168 Integration: ENTSO-e Transparency Platform (documentation, issues) First occurred: 00:25:59 (1 occurrences) Last logged: 00:25:59

Error fetching ENTSO-e coordinator data: Unexcpected error when fetching ENTSO-e prices: HTTPSConnectionPool(host='web-api.tp.entsoe.eu', port=443): Max retries exceeded with url: /api?documentType=A44&in_Domain=10YNL----------L&out_Domain=10YNL----------L&securityToken=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxdxd&periodStart=202212142300&periodEnd=202212192200 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cdfac0a30>: Failed to establish a new connection: [Errno -2] Name does not resolve'))

Screenshot_20221217_083129_Home Assistant

Screenshot_20221217_082821_Home Assistant

Screenshot_20221217_083143_Home Assistant

Tommi-V commented 1 year ago

I think this due Entso E name server failing. It's nasty - killing all automations running based on price.

timothius123 commented 1 year ago

Have exactly the same.

Koterak commented 1 year ago

Exactly same issue here

ksvard commented 1 year ago

Same issue here and when checking their web site there is no data in their own tables. Operational error, we need to wait for them to fix it. As resident in Sweden I have backup data from Nordpool to manage automations.

Tommi-V commented 1 year ago

How do you get the data from nordpool?

Tommi

la 17. jouluk. 2022 klo 12.02 ksvard @.***> kirjoitti:

Same issue here and when checking their web site there is no data in their own tables. Operational error, we need to wait for them to fix it. As resident in Sweden I have backup data from Nordpool to manage automations.

— Reply to this email directly, view it on GitHub https://github.com/JaccoR/hass-entso-e/issues/94#issuecomment-1356150147, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALY7BKHRXGU7MKUBK77B6Y3WNWFSRANCNFSM6AAAAAATBZ2FSU . You are receiving this because you commented.Message ID: @.***>

stigvi commented 1 year ago

How do you get the data from nordpool? Tommi la 17. jouluk. 2022 klo 12.02 ksvard @.> kirjoitti: Same issue here and when checking their web site there is no data in their own tables. Operational error, we need to wait for them to fix it. As resident in Sweden I have backup data from Nordpool to manage automations. — Reply to this email directly, view it on GitHub <#94 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALY7BKHRXGU7MKUBK77B6Y3WNWFSRANCNFSM6AAAAAATBZ2FSU . You are receiving this because you commented.Message ID: @.>

https://github.com/custom-components/nordpool

Tommi-V commented 1 year ago

Thank you, need to set it up for back up.

Tommi

la 17. jouluk. 2022 klo 12.35 stigvi @.***> kirjoitti:

How do you get the data from nordpool? Tommi la 17. jouluk. 2022 klo 12.02 ksvard @.

> kirjoitti: … <#m-240783853171568948> Same issue here and when checking their web site there is no data in their own tables. Operational error, we need to wait for them to fix it. As resident in Sweden I have backup data from Nordpool to manage automations. — Reply to this email directly, view it on GitHub <#94 (comment) https://github.com/JaccoR/hass-entso-e/issues/94#issuecomment-1356150147>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALY7BKHRXGU7MKUBK77B6Y3WNWFSRANCNFSM6AAAAAATBZ2FSU https://github.com/notifications/unsubscribe-auth/ALY7BKHRXGU7MKUBK77B6Y3WNWFSRANCNFSM6AAAAAATBZ2FSU . You are receiving this because you commented.Message ID: @.>

https://github.com/custom-components/nordpool

— Reply to this email directly, view it on GitHub https://github.com/JaccoR/hass-entso-e/issues/94#issuecomment-1356162891, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALY7BKGNXIIHCCQC4QEFDHTWNWJOHANCNFSM6AAAAAATBZ2FSU . You are receiving this because you commented.Message ID: @.***>

flippz commented 1 year ago

Same issue

StSaens commented 1 year ago

I think a graceful way to handle these kinds of errors is preferred.

JaccoR commented 1 year ago

Yes, the error should not cause sensors to go down. Were working on a fix in #86 . Any help is welcome!

Heronimonimo commented 1 year ago

Maybe an option for fallback to the Nordpool integration would be an option? I'm using https://github.com/jpulakka/nordpool_diff for switching stuff and they provide the option to fallback to Nordpool prices which works really nice.

jyrkih commented 1 year ago

As an interim solution I switched to https://transparency.entsoe.eu/api which seems to work. Need to override it in entsoe-py package, so not really good.

3vdo commented 1 year ago

As an interim solution I switched to https://transparency.entsoe.eu/api which seems to work. Need to override it in entsoe-py package, so not really good.

Noticed this also. I tried to find where to put this new endpoint, but I couldn't find. Where to put this https://transparency.entsoe.eu/api ?

sfstar commented 1 year ago

running this in the homeassistant core docker container causes the desired change: sed -i "s/web-api.tp./transparency./g" /usr/local/lib/python3.10/site-packages/entsoe/entsoe.py After which you restart and everything is working again.

Piloteer1 commented 1 year ago

@sfstar , any idea how I can access that file in homeassistant supervised? I can find such a file (entsoe.py) but I can't access it and I don't like to run the command before I know what I'm doing.

user@raspberrypixxxx:/ $ sudo find / -name entsoe.py

/var/lib/docker/overlay2/b13662acb289143ee7fed6a80368e7721d06d59f2ad0a8333cb4bd1b5de0bdda/diff/usr/local/lib/python3.10/site-packages/entsoe/entsoe.py /var/lib/docker/overlay2/b13662acb289143ee7fed6a80368e7721d06d59f2ad0a8333cb4bd1b5de0bdda/merged/usr/local/lib/python3.10/site-packages/entsoe/entsoe.py

jyrkih commented 1 year ago

web-api.tp.entsoe.eu seems to resolve again

sfstar commented 1 year ago

@JaccoR #95 is tested and ready to be merged