Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuki battery level and status not refreshed #164

Open
p2923260 opened this issue Nov 4, 2023 · 2 comments
Open

Nuki battery level and status not refreshed #164

p2923260 opened this issue Nov 4, 2023 · 2 comments

Comments

@p2923260
Copy link

p2923260 commented Nov 4, 2023

The sensor battery does not refresh. I have charged the battery from 78% to 100% and it's correctly reported on Nuki App but the HA sensor does not change. In general I see a lot of repetitive warnings in the Nuki integration log.

File "/config/custom_components/nuki_ng/nuki.py", line 40, 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/(redacted)/auth: 401 Unauthorized
2023-11-04 08:30:04.447 WARNING (MainThread) [custom_components.nuki_ng.nuki] Despite being configured, Web API request has failed
2023-11-04 08:30:04.447 ERROR (MainThread) [custom_components.nuki_ng.nuki] Error while fetching auth:
Traceback (most recent call last):
File "/config/custom_components/nuki_ng/nuki.py", line 419, in _update
item["web_auth"] = await self.api.web_list_all_auths(web_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nuki_ng/nuki.py", line 216, in web_list_all_auths
response = await self.web_async_json(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nuki_ng/nuki.py", line 185, in web_async_json
return await self.async_json(

@p2923260 p2923260 changed the title Nuki battery level and status not updated Nuki battery level and status not refreshed Nov 4, 2023
@parkflyer
Copy link

Just installed my new Nuki 4.0 pro including this HA integration. Everything works fine except battery infos, the state is always at 0% and the charging indicator is constantly at false.
Bonus question: How can I change the poll interval (default 30 sec) which I have set when installing the integration?

THX,
parkflyer

@parkflyer
Copy link

Update: With the firmware update of today battery state is working again, so it was an issue of Nuki, not the integration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants