core: August component broken for many people.
–>
Home Assistant release with the issue:
Last working Home Assistant release (if known):
Operating environment (Hass.io/Docker/Windows/etc.):
Running on Ubuntu 18.04Component/platform:
https://www.home-assistant.io/components/august/Description of problem: August component is broken. It is not a username/pass issue. Error messages typically look like this:
Line 40: 2019-05-09 21:20:17 INFO (MainThread) [homeassistant.setup] Setting up august
Line 85: 2019-05-09 21:20:19 ERROR (MainThread) [homeassistant.setup] Error during setup of component august
Line 91: File "/usr/local/lib/python3.7/site-packages/homeassistant/components/august/__init__.py", line 166, in setup
Line 92: return setup_august(hass, config, api, authenticator)
Line 93: File "/usr/local/lib/python3.7/site-packages/homeassistant/components/august/__init__.py", line 113, in setup_august
Line 93: File "/usr/local/lib/python3.7/site-packages/homeassistant/components/august/__init__.py", line 113, in setup_august
Line 95: File "/usr/local/lib/python3.7/site-packages/homeassistant/components/august/__init__.py", line 177, in __init__
Line 97: File "/usr/local/lib/python3.7/site-packages/august/api.py", line 146, in get_doorbells
Line 99: File "/usr/local/lib/python3.7/site-packages/august/api.py", line 296, in _call_api
Line 103: requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api-production.august.com/users/doorbells/mine
Others are reporting the same issue as seen at:
https://community.home-assistant.io/t/august-lock-invalid-config/112172/2
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
Traceback (if applicable):
Additional information:
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 19 (5 by maintainers)
Commits related to this issue
- Refresh the august access token when needed. Currently august will stop working when the token expires about every six month. This resolves issue #23788 — committed to bdraco/home-assistant by bdraco 4 years ago
- Refresh the august access token when needed. Currently august will stop working when the token expires about every six month. This resolves issue #23788 — committed to bdraco/home-assistant by bdraco 4 years ago
- Refresh the august access token when needed (#31735) * Refresh the august access token when needed. Currently august will stop working when the token expires about every six month. This resol... — committed to home-assistant/core by bdraco 4 years ago
I opened a PR on the upstream library used to interact with the August API which adds support for refreshing the access token:
https://github.com/snjoetw/py-august/pull/23
As soon as this is merged, it should be pretty straightforward to leverage the support in the HomeAssistant component. The end result would be that you’d never need to go through the authentication flow again. The token would stay active forever (until August changes their API).
have you tried the fix you did in this issue? https://github.com/home-assistant/home-assistant/issues/19286
Thanks @sidoh This is being integrated as part of #31735
Why don’t we inspect the JWT token and delete the file if it’s expired or handle this better? There is no way the normal user is going to do know to do this.