hass-gardena-smart-system: ERROR (MainThread) [gardena.smart_system] 429 : Limit Exceeded

Every time I restart my HA, i get the following error and the intergartion is not working:

2022-07-16 08:56:37 ERROR (MainThread) [gardena.smart_system] 429 : Limit Exceeded
2022-07-16 08:56:37 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry  for gardena_smart_system
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 353, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/gardena_smart_system/__init__.py", line 48, in async_setup_entry
    await gardena_system.start()
  File "/config/custom_components/gardena_smart_system/__init__.py", line 85, in start
    await self.smart_system.update_locations()
  File "/usr/local/lib/python3.10/site-packages/gardena/smart_system.py", line 142, in update_locations
    response_data = await self.__call_smart_system_get(
  File "/usr/local/lib/python3.10/site-packages/gardena/smart_system.py", line 137, in __call_smart_system_get
    if self.__response_has_errors(response):
  File "/usr/local/lib/python3.10/site-packages/gardena/smart_system.py", line 128, in __response_has_errors
    raise Exception(msg)
Exception: Limit Exceeded

When I re-enter my credentials it works perfectly, but after a restart it is broken again.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (4 by maintainers)

Most upvoted comments

same issue here. removed integration from ha, updated to latest 1.0.0-0b907, restarted ha and tried to add integration again.

2022-07-28 23:56:40 ERROR (MainThread) [gardena.smart_system] 429 : Limit Exceeded
2022-07-28 23:56:40 INFO (MainThread) [gardena.smart_system] Backing off __call_smart_system_get(...) for 0.9s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/locations'
For more information check: https://httpstatuses.com/429)
2022-07-28 23:56:41 ERROR (MainThread) [gardena.smart_system] 429 : Limit Exceeded
2022-07-28 23:56:41 INFO (MainThread) [gardena.smart_system] Backing off __call_smart_system_get(...) for 1.8s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/locations'
For more information check: https://httpstatuses.com/429)
2022-07-28 23:56:43 ERROR (MainThread) [gardena.smart_system] 429 : Limit Exceeded
2022-07-28 23:56:43 INFO (MainThread) [gardena.smart_system] Backing off __call_smart_system_get(...) for 2.9s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/locations'
For more information check: https://httpstatuses.com/429)
2022-07-28 23:56:46 ERROR (MainThread) [gardena.smart_system] 429 : Limit Exceeded
2022-07-28 23:56:46 INFO (MainThread) [gardena.smart_system] Backing off __call_smart_system_get(...) for 0.2s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/locations'
For more information check: https://httpstatuses.com/429)
2022-07-28 23:56:47 ERROR (MainThread) [gardena.smart_system] 429 : Limit Exceeded
2022-07-28 23:56:47 INFO (MainThread) [gardena.smart_system] Backing off __call_smart_system_get(...) for 15.2s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/locations'
For more information check: https://httpstatuses.com/429)
2022-07-28 23:57:02 ERROR (MainThread) [gardena.smart_system] 429 : Limit Exceeded
2022-07-28 23:57:02 INFO (MainThread) [gardena.smart_system] Backing off __call_smart_system_get(...) for 30.3s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/locations'
For more information check: https://httpstatuses.com/429)

Unfortunately, it wasn’t fixed, no more data for me:

2022-07-23 11:35:36 INFO (MainThread) [gardena.smart_system] Backing off __get_ws_url(...) for 0.6s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/websocket'
For more information check: https://httpstatuses.com/429)
2022-07-23 11:35:36 INFO (MainThread) [gardena.smart_system] Backing off __get_ws_url(...) for 0.3s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/websocket'
For more information check: https://httpstatuses.com/429)
2022-07-23 11:35:37 INFO (MainThread) [gardena.smart_system] Backing off __get_ws_url(...) for 1.0s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/websocket'
For more information check: https://httpstatuses.com/429)
2022-07-23 13:35:48 INFO (MainThread) [gardena.smart_system] Backing off __get_ws_url(...) for 0.9s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/websocket'
For more information check: https://httpstatuses.com/429)
2022-07-23 23:36:42 INFO (MainThread) [gardena.smart_system] Backing off __get_ws_url(...) for 0.8s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/websocket'
For more information check: https://httpstatuses.com/429)
2022-07-23 23:36:43 INFO (MainThread) [gardena.smart_system] Backing off __get_ws_url(...) for 1.0s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/websocket'
For more information check: https://httpstatuses.com/429)
2022-07-24 01:36:54 INFO (MainThread) [gardena.smart_system] Backing off __get_ws_url(...) for 0.7s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/websocket'
For more information check: https://httpstatuses.com/429)
2022-07-24 01:36:55 INFO (MainThread) [gardena.smart_system] Backing off __get_ws_url(...) for 1.9s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/websocket'
For more information check: https://httpstatuses.com/429)
2022-07-24 01:36:57 INFO (MainThread) [gardena.smart_system] Backing off __get_ws_url(...) for 1.9s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/websocket'
For more information check: https://httpstatuses.com/429)
2022-07-24 01:36:59 INFO (MainThread) [gardena.smart_system] Backing off __get_ws_url(...) for 1.3s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/websocket'
For more information check: https://httpstatuses.com/429)
2022-07-24 01:37:01 INFO (MainThread) [gardena.smart_system] Backing off __get_ws_url(...) for 11.5s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/websocket'
For more information check: https://httpstatuses.com/429)
2022-07-24 01:37:12 INFO (MainThread) [gardena.smart_system] Backing off __get_ws_url(...) for 16.6s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/websocket'
For more information check: https://httpstatuses.com/429)
2022-07-24 01:37:29 INFO (MainThread) [gardena.smart_system] Backing off __get_ws_url(...) for 60.5s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/websocket'
For more information check: https://httpstatuses.com/429)
2022-07-24 01:38:30 INFO (MainThread) [gardena.smart_system] Backing off __get_ws_url(...) for 101.6s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/websocket'
For more information check: https://httpstatuses.com/429)
2022-07-24 01:40:11 INFO (MainThread) [gardena.smart_system] Backing off __get_ws_url(...) for 112.6s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/websocket'
For more information check: https://httpstatuses.com/429)
2022-07-24 03:42:14 INFO (MainThread) [gardena.smart_system] Backing off __get_ws_url(...) for 0.4s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/websocket'
For more information check: https://httpstatuses.com/429)
2022-07-24 03:42:15 INFO (MainThread) [gardena.smart_system] Backing off __get_ws_url(...) for 1.8s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/websocket'
For more information check: https://httpstatuses.com/429)
2022-07-24 03:42:17 INFO (MainThread) [gardena.smart_system] Backing off __get_ws_url(...) for 3.8s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/websocket'
For more information check: https://httpstatuses.com/429)
2022-07-24 03:42:21 INFO (MainThread) [gardena.smart_system] Backing off __get_ws_url(...) for 3.5s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/websocket'
For more information check: https://httpstatuses.com/429)
2022-07-24 03:42:24 INFO (MainThread) [gardena.smart_system] Backing off __get_ws_url(...) for 7.8s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/websocket'
For more information check: https://httpstatuses.com/429)
2022-07-24 03:42:32 INFO (MainThread) [gardena.smart_system] Backing off __get_ws_url(...) for 27.0s (httpx.HTTPStatusError: Client error '429 ' for url 'https://api.smart.gardena.dev/v1/websocket'
For more information check: https://httpstatuses.com/429)
--
2022-07-24 07:43:30 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/gardena/smart_system.py", line 185, in start_ws
    ws_url = await self.__get_ws_url(location)
  File "/usr/local/lib/python3.10/site-packages/backoff/_async.py", line 133, in retry
    ret = await target(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/gardena/smart_system.py", line 209, in __get_ws_url
    r = await self.client.post(
  File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1842, in post