core: August 531 Error when trying to Lock

The problem

When I try to lock my August Lock, I get the following error. It actually does lock, I can see it in the August app, but that state is never reported back to homeassistant. I've deleted the integration, added it again, reauthenticated the token but it doesn't seem to work.

Environment

  • Home Assistant Core release with the issue: 0.108.8
  • Last working Home Assistant Core release (if known): 0.108.6
  • Operating environment (Home Assistant/Supervised/Docker/venv): Hassio
  • Integration causing this issue: August
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/august/

Problem-relevant configuration.yaml

no YAML, Configured via the UI.

Traceback/Error logs

Logger: homeassistant.core
Source: components/august/__init__.py:327 
First occurred: 12:51:28 PM (2 occurrences) 
Last logged: 12:51:49 PM

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 1255, in _execute_service
    await handler.func(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
    self._platforms.values(), func, call, required_features
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 412, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 600, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 443, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/august/lock.py", line 46, in async_lock
    await self._call_lock_operation(self._data.async_lock)
  File "/usr/src/homeassistant/homeassistant/components/august/lock.py", line 53, in _call_lock_operation
    activities = await lock_operation(self._device_id)
  File "/usr/src/homeassistant/homeassistant/components/august/__init__.py", line 309, in async_lock
    device_id,
  File "/usr/src/homeassistant/homeassistant/components/august/__init__.py", line 327, in _async_call_api_op_requires_bridge
    ret = await func(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/august/api_async.py", line 178, in async_lock_return_activities
    await self._async_lock(access_token, lock_id)
  File "/usr/local/lib/python3.7/site-packages/august/api_async.py", line 157, in _async_lock
    API_LOCK_URL, access_token, lock_id
  File "/usr/local/lib/python3.7/site-packages/august/api_async.py", line 150, in _async_call_lock_operation
    url_str, access_token, lock_id, self._command_timeout
  File "/usr/local/lib/python3.7/site-packages/august/api_async.py", line 255, in _async_dict_to_api
    _raise_response_exceptions(response)
  File "/usr/local/lib/python3.7/site-packages/august/api_async.py", line 276, in _raise_response_exceptions
    raise err
  File "/usr/local/lib/python3.7/site-packages/august/api_async.py", line 262, in _raise_response_exceptions
    response.raise_for_status()
  File "/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 946, in raise_for_status
    headers=self.headers)
aiohttp.client_exceptions.ClientResponseError: 531, message='unknown', url='https://api-production.august.com/remoteoperate/1A4DD50BDC634B18AFF6BC985ACE7EAD/lock

Additional information

If I copy the URL at the end of that traceback error, I get the following:

{“code”:“MethodNotAllowed”,“message”:“GET is not allowed”}

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (7 by maintainers)

Most upvoted comments

So that did fix I apparently, I see no difference in the operation of the lock but something must be working better since I don’t get the error any more. Thanks for all the help!