AUGUST lock config error

Out of blue I got this error:

Invalid config

The following components and platforms could not be set up:

Please check your config.

I didn’t change a thing and now it no longer works.

Config looks fine.

What should I do?!

It’s August lock connected to August WiFi Hub (August Connect).

By the way, where can I enter the August lock authentication code?!

Per: “Once Home Assistant is started, a configurator will pop up asking you to enter verification code that is sent to your phone number or email.”

Log:

2019-08-20 16:36:30 ERROR (MainThread) [homeassistant.setup] Error during setup of component august
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 172, in _async_setup_component
component.setup, hass, processed_config # type: ignore
File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/components/august/init.py”, line 173, in setup
return setup_august(hass, config, api, authenticator)
File “/usr/src/homeassistant/homeassistant/components/august/init.py”, line 119, in setup_august
hass.data[DATA_AUGUST] = AugustData(hass, api, authentication.access_token)
File “/usr/src/homeassistant/homeassistant/components/august/init.py”, line 184, in init
self._doorbells = self._api.get_doorbells(self._access_token) or []
File “/usr/local/lib/python3.7/site-packages/august/api.py”, line 146, in get_doorbells
access_token=access_token).json()
File “/usr/local/lib/python3.7/site-packages/august/api.py”, line 296, in _call_api
response.raise_for_status()
File “/usr/local/lib/python3.7/site-packages/requests/models.py”, line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api-production.august.com/users/doorbells/mine

Solution:

Edit file /.august.config and delete the line you’ll find in it.

Restart hassio server.

1 Like

I just had the same issue, thank you @Damir_Colak for the solution. In this ./august.config file I realized that the “access_token_expires”: “2019-08-20T22:09:30.670Z”

After these steps, the new expiration date is 2019.12.19 - Does it mean I have to reconfigure it every 4 months?

that’s been my experience. Wish it didn’t require a reboot of the device though.