Open thphilipp opened 6 months ago
@thphilipp in order to help you, you need to provide debug logs from the add-on.
After Update to 0.5.0
2024-01-09 08:22:27.453 ERROR (MainThread) [custom_components.nuki_ng.nuki] Error while fetching auth: Http response for https://api.nuki.io/smartlock/18007158349/auth: 401 Unauthorized Traceback (most recent call last): File "/config/custom_components/nuki_ng/nuki.py", line 454, in _update item["web_auth"] = await self.api.web_list_all_auths(web_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/nuki_ng/nuki.py", line 253, in web_list_all_auths response = await self.web_async_json( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/nuki_ng/nuki.py", line 186, in web_async_json return await self.async_json( ^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/nuki_ng/nuki.py", line 41, in async_json raise HomeAssistantError(f"Http response for {response.request.url}: {response.status_code} {response.reason}") homeassistant.exceptions.HomeAssistantError: Http response for https://api.nuki.io/smartlock/18007158349/auth: 401 Unauthorized 2024-01-09 08:22:27.455 ERROR (MainThread) [custom_components.nuki_ng.nuki] Failed to get latest data: 'NoneType' object has no attribute 'get' Traceback (most recent call last): File "/config/custom_components/nuki_ng/nuki.py", line 454, in _update item["web_auth"] = await self.api.web_list_all_auths(web_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/nuki_ng/nuki.py", line 253, in web_list_all_auths response = await self.web_async_json( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/nuki_ng/nuki.py", line 186, in web_async_json return await self.async_json( ^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/nuki_ng/nuki.py", line 41, in async_json raise HomeAssistantError(f"Http response for {response.request.url}: {response.status_code} {response.reason}") homeassistant.exceptions.HomeAssistantError: Http response for https://api.nuki.io/smartlock/18007158349/auth: 401 Unauthorized
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/config/custom_components/nuki_ng/nuki.py", line 458, in _update item["web_auth"] = self.device_data(dev_id).get("web_auth", {}) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/nuki_ng/nuki.py", line 536, in device_data return self.data.get("devices", {}).get(dev_id, {}) ^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'get' 2024-01-09 08:22:48.272 WARNING (MainThread) [custom_components.nuki_ng.nuki] Despite being configured, Web API request has failed 2024-01-09 08:22:48.272 ERROR (MainThread) [custom_components.nuki_ng.nuki] Error while fetching auth: Http response for https://api.nuki.io/smartlock/18007158349/auth: 401 Unauthorized Traceback (most recent call last): File "/config/custom_components/nuki_ng/nuki.py", line 454, in _update item["web_auth"] = await self.api.web_list_all_auths(web_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/nuki_ng/nuki.py", line 253, in web_list_all_auths response = await self.web_async_json( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/nuki_ng/nuki.py", line 186, in web_async_json return await self.async_json( ^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/nuki_ng/nuki.py", line 41, in async_json raise HomeAssistantError(f"Http response for {response.request.url}: {response.status_code} {response.reason}") homeassistant.exceptions.HomeAssistantError: Http response for https://api.nuki.io/smartlock/18007158349/auth: 401 Unauthorized 2024-01-09 08:22:48.274 ERROR (MainThread) [custom_components.nuki_ng.nuki] Failed to get latest data: 'NoneType' object has no attribute 'get' Traceback (most recent call last): File "/config/custom_components/nuki_ng/nuki.py", line 454, in _update item["web_auth"] = await self.api.web_list_all_auths(web_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/nuki_ng/nuki.py", line 253, in web_list_all_auths response = await self.web_async_json( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/nuki_ng/nuki.py", line 186, in web_async_json return await self.async_json( ^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/nuki_ng/nuki.py", line 41, in async_json raise HomeAssistantError(f"Http response for {response.request.url}: {response.status_code} {response.reason}") homeassistant.exceptions.HomeAssistantError: Http response for https://api.nuki.io/smartlock/18007158349/auth: 401 Unauthorized
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/config/custom_components/nuki_ng/nuki.py", line 458, in _update item["web_auth"] = self.device_data(dev_id).get("web_auth", {}) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/nuki_ng/nuki.py", line 536, in device_data return self.data.get("devices", {}).get(dev_id, {}) ^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'get'
homeassistant.exceptions.HomeAssistantError: Http response for https://api.nuki.io/smartlock/18007158349/auth: 401 Unauthorized
Your web token doesn't have the required permissions. Double check that you've granted permissions to manage authorization entries
homeassistant.exceptions.HomeAssistantError: Http response for https://api.nuki.io/smartlock/18007158349/auth: 401 Unauthorized
Your web token doesn't have the required permissions. Double check that you've granted permissions to manage authorization entries
NAIS!!! Thx!
Hi all,
since yesterday i cant connect with home assistant and this addon (hass_nuki_ng). Everytime i get this error:
Fehler in der Kommunikation mit der Nuki Bridge Errors in communication with the Nuki Bridge
Is this a generell problem or only for me? In front of it everything worked out perfectly.