hass-gardena-smart-system: Integration stopped working
Hi,
my integration stopped working today. I am on HA 2023.05
I get the following issues in the log:
Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht
Logger: gardena.smart_system
Source: custom_components/gardena_smart_system/__init__.py:86
Integration: Gardena Smart System integration (documentation, issues)
First occurred: 14:27:37 (7 occurrences)
Last logged: 14:28:11
403 : {'Message': 'User is not authorized to access this resource with an explicit deny'}
Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht
Logger: homeassistant.config_entries
Source: custom_components/gardena_smart_system/__init__.py:86
Integration: Gardena Smart System integration (documentation, issues)
First occurred: 14:28:16 (1 occurrences)
Last logged: 14:28:16
Error setting up entry for gardena_smart_system
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/backoff/_async.py", line 151, in retry
ret = await target(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/gardena/smart_system.py", line 141, in __call_smart_system_get
if self.__response_has_errors(response):
File "/usr/local/lib/python3.10/site-packages/gardena/smart_system.py", line 131, in __response_has_errors
response.raise_for_status()
File "/usr/local/lib/python3.10/site-packages/httpx/_models.py", line 749, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '403 Forbidden' for url 'https://api.smart.gardena.dev/v1/locations'
For more information check: https://httpstatuses.com/403
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/gardena_smart_system/__init__.py", line 49, in async_setup_entry
await gardena_system.start()
File "/config/custom_components/gardena_smart_system/__init__.py", line 86, in start
await self.smart_system.update_locations()
File "/usr/local/lib/python3.10/site-packages/gardena/smart_system.py", line 146, in update_locations
response_data = await self.__call_smart_system_get(
File "/usr/local/lib/python3.10/site-packages/backoff/_async.py", line 183, in retry
await asyncio.sleep(seconds)
File "/usr/local/lib/python3.10/asyncio/tasks.py", line 605, in sleep
return await future
asyncio.exceptions.CancelledError
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 7
- Comments: 24 (1 by maintainers)
Hi,
Gardena renew the Portal. You have to Login to the dev Portal of Gardena and autorize the App to communicate with API. You get the Question by Login.
After that i have deleted the old API cretentials and create new cretentials with New Application Key / Client ID and Application secret / client secret.
At the end i deleted the integration in Home Assistant and Install it New with the New cretentials.
And now it works again in Home Assistant š.
Good luck.
Are you sure about that? At first I thought adding the new APIs is enough but that didnāt work for me.
Delete the Application, click on āNEW APPLICATIONā fill out the information and connect the āAuthentication APIā and āGARDENA smart system APIā.
After that connect the integration in HA again.
You can use āhttp://localhost:8080ā for redirect url
Same here. It works again.