elupus / hass_nibe

Home Assistant Nibe Uplink Integration
185 stars 54 forks source link

Too many requests #177

Closed ouranos6 closed 1 year ago

ouranos6 commented 1 year ago

Hi!

i have an issue with the addon. Sometimes it works and most of the time not.

`This error originated from a custom integration.

Logger: custom_components.nibe Source: custom_components/nibe/init.py:179 Integration: Nibe Uplink Heat Pumps (documentation) First occurred: May 8, 2023 at 4:24:57 PM (217 occurrences) Last logged: 6:47:44 PM

Unexpected error fetching Nibe Uplink data: RATE_LIMIT: Rate limit. Too many requests. {'httpStatusCode': 400, 'errorCode': 28, 'timestamp': '2023-05-13T16:46:47.41097Z', 'details': ['You have exceeded the API request rate limit and have been blocked temporarily.'], 'data': None} Unexpected error fetching Nibe Uplink data: RATE_LIMIT: Rate limit. Too many requests. {'httpStatusCode': 400, 'errorCode': 28, 'timestamp': '2023-05-13T16:47:14.317435Z', 'details': ['You have exceeded the API request rate limit and have been blocked temporarily.'], 'data': None} Unexpected error fetching Nibe Uplink data: RATE_LIMIT: Rate limit. Too many requests. {'httpStatusCode': 400, 'errorCode': 28, 'timestamp': '2023-05-13T16:47:17.3330847Z', 'details': ['You have exceeded the API request rate limit and have been blocked temporarily.'], 'data': None} Unexpected error fetching Nibe Uplink data: RATE_LIMIT: Rate limit. Too many requests. {'httpStatusCode': 400, 'errorCode': 28, 'timestamp': '2023-05-13T16:47:17.4112119Z', 'details': ['You have exceeded the API request rate limit and have been blocked temporarily.'], 'data': None} Unexpected error fetching Nibe Uplink data: RATE_LIMIT: Rate limit. Too many requests. {'httpStatusCode': 400, 'errorCode': 28, 'timestamp': '2023-05-13T16:47:44.2883874Z', 'details': ['You have exceeded the API request rate limit and have been blocked temporarily.'], 'data': None} aiohttp.client_exceptions.ClientResponseError: 429, message="{'httpStatusCode': 400, 'errorCode': 28, 'timestamp': '2023-05-08T14:24:57.3316541Z', 'details': ['You have exceeded the API request rate limit and have been blocked temporarily.'], 'data': None}", url=URL('https://api.nibeuplink.com/api/v1/systems')

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 258, in _async_refresh self.data = await self._async_update_data() File "/config/custom_components/nibe/init.py", line 179, in _async_update_data systems_raw = await self.uplink.get_systems() File "/usr/local/lib/python3.10/site-packages/nibeuplink/uplink.py", line 194, in get_systems data = await self.get("systems") File "/usr/local/lib/python3.10/site-packages/nibeuplink/uplink.py", line 82, in get return await self.session.request( File "/usr/local/lib/python3.10/site-packages/nibeuplink/session.py", line 186, in request await raise_for_status(response) File "/usr/local/lib/python3.10/site-packages/nibeuplink/session.py", line 26, in raise_for_status raise UplinkResponseException(data.get("errorCode"), data) from e nibeuplink.exceptions.UplinkResponseException: RATE_LIMIT: Rate limit. Too many requests. {'httpStatusCode': 400, 'errorCode': 28, 'timestamp': '2023-05-08T14:24:57.3316541Z', 'details': ['You have exceeded the API request rate limit and have been blocked temporarily.'], 'data': None} `

do you mind to have look into the logs?

thaks in advance

elupus commented 1 year ago

Strange. We should not be that close to the limit. You have not modified the update rate?

ouranos6 commented 1 year ago

Hi,

I didn’t touch anything. I’ve followed the instructions 1,5 years ago and then nothing


De : Joakim Plate @.> Envoyé : Saturday, May 13, 2023 9:14:17 PM À : elupus/hass_nibe @.> Cc : ouranos6 @.>; Author @.> Objet : Re: [elupus/hass_nibe] Too many requests (Issue #177)

Strange. We should not be that close to the limit. You have not modified the update rate?

— Reply to this email directly, view it on GitHubhttps://github.com/elupus/hass_nibe/issues/177#issuecomment-1546733463, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AE6CJKB2W7FLW2QOK2GFVCDXF7MQTANCNFSM6AAAAAAYAU4N6Q. You are receiving this because you authored the thread.Message ID: @.***>

elupus commented 1 year ago

"then nothing"? Is it that old version of the component, you should start by updating it.

ouranos6 commented 1 year ago

Yes i’ve done that two days ago restarted my hassio and even the SMO40 but nothing


De : Joakim Plate @.> Envoyé : Saturday, May 13, 2023 9:28:04 PM À : elupus/hass_nibe @.> Cc : ouranos6 @.>; Author @.> Objet : Re: [elupus/hass_nibe] Too many requests (Issue #177)

"then nothing"? Is it that old version of the component, you should start by updating it.

— Reply to this email directly, view it on GitHubhttps://github.com/elupus/hass_nibe/issues/177#issuecomment-1546735436, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AE6CJKCWOW2UNMSXQQJ33D3XF7OEJANCNFSM6AAAAAAYAU4N6Q. You are receiving this because you authored the thread.Message ID: @.***>

elupus commented 1 year ago

You have only one configuration instance set up? And you are not using the same connection parameters from some other tool reading data from nibe?

ouranos6 commented 1 year ago

Nop only the addon.

I’ve bought an LilyGo T-CAN485 sometimes ago to use it with another addon but I had no time and no wiring schema to make the connections so I let it down brand new


De : Joakim Plate @.> Envoyé : Saturday, May 13, 2023 9:32:52 PM À : elupus/hass_nibe @.> Cc : ouranos6 @.>; Author @.> Objet : Re: [elupus/hass_nibe] Too many requests (Issue #177)

You have only one configuration instance set up? And you are not using the same connection parameters from some other tool reading data from nibe?

— Reply to this email directly, view it on GitHubhttps://github.com/elupus/hass_nibe/issues/177#issuecomment-1546736135, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AE6CJKAJXPU4XIXCFQZKBLDXF7OWJANCNFSM6AAAAAAYAU4N6Q. You are receiving this because you authored the thread.Message ID: @.***>

ouranos6 commented 1 year ago

Let me try deleting everything and starting from scratch with the hacs installer.

Is it some files do I need to remove from ./Storage or elsewhere?


De : Ivan Morgade @.> Envoyé : Saturday, May 13, 2023 9:37:23 PM À : elupus/hass_nibe @.>; elupus/hass_nibe @.> Cc : Author @.> Objet : Re: [elupus/hass_nibe] Too many requests (Issue #177)

Nop only the addon.

I’ve bought an LilyGo T-CAN485 sometimes ago to use it with another addon but I had no time and no wiring schema to make the connections so I let it down brand new


De : Joakim Plate @.> Envoyé : Saturday, May 13, 2023 9:32:52 PM À : elupus/hass_nibe @.> Cc : ouranos6 @.>; Author @.> Objet : Re: [elupus/hass_nibe] Too many requests (Issue #177)

You have only one configuration instance set up? And you are not using the same connection parameters from some other tool reading data from nibe?

— Reply to this email directly, view it on GitHubhttps://github.com/elupus/hass_nibe/issues/177#issuecomment-1546736135, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AE6CJKAJXPU4XIXCFQZKBLDXF7OWJANCNFSM6AAAAAAYAU4N6Q. You are receiving this because you authored the thread.Message ID: @.***>

ouranos6 commented 1 year ago

Ok so after removing everything and recreate the credentials on the api page AND authorize it, now it’s working.!!

But I want to try the lilygo with ESPHOME to be offline and more reliable.

If i can do it maybe i want to make a small tuto for the others.


De : Joakim Plate @.> Envoyé : Saturday, May 13, 2023 9:32:52 PM À : elupus/hass_nibe @.> Cc : ouranos6 @.>; Author @.> Objet : Re: [elupus/hass_nibe] Too many requests (Issue #177)

You have only one configuration instance set up? And you are not using the same connection parameters from some other tool reading data from nibe?

— Reply to this email directly, view it on GitHubhttps://github.com/elupus/hass_nibe/issues/177#issuecomment-1546736135, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AE6CJKAJXPU4XIXCFQZKBLDXF7OWJANCNFSM6AAAAAAYAU4N6Q. You are receiving this because you authored the thread.Message ID: @.***>

elupus commented 1 year ago

Did you see: https://github.com/elupus/esphome-nibe/blob/master/examples/lilygo-t-can485.png