August lock - Error: Too Many Requests

Here is how I solved the issue given v0.10.1 of the py-august library has been released (see: https://pypi.org/project/py-august/#history)

  1. Git cloned / downloaded the full home-assistant repo from https://github.com/home-assistant/home-assistant
  2. Copied the files from /homeassistant/components/august into my /custom_components
  3. Changed manifest.json so it referred to py-august==0.10.1
  4. Restarted home assistant

Worked just like it always used to. Now I will just wait until these changes make it back into the mainline Home Assistant code and then I will remove the august folder from custom_components.

5 Likes

Thanks! This fixed it

Thanks your comment, this fixed it.

Thank you for sharing this.

I was able to copy the entire august folder into my custom components folder. I did also make the change to the manifest.json. Restarted home assistant and everything is working as expected.

Iā€™m a newbie, would be really happy to get bit more detailsā€¦

Where can i create the custom_components folder?
Do I delete the components/august?

Thanks
Math

@Mathblais You create the custom_components under the ā€œconfigā€ folder (the same place you have your config files). you leave the components/august.

@TryingHA
So I just create /custom_components folder same place i have configuration yamlsā€¦ then move over the downloaded August folder from the gitā€¦

And need update that json file in the folder moved.
Stop - start and all should be goodā€¦
Is that correct?

@Mathblais Thatā€™s correct.

@TryingHA, @Mathblais - note that the fix from BDraco was integrated into dev yesterday. If youā€™re pulling from that branch thereā€™s no need to modify anything.

Thank you, everything is working great!

It seems that the folks at August were not so thrilled with the number of API calls unofficial integrations were making, which likely lead to the implementation of the HTTP 429s. That might seem understandable given how many requests the current component is making, especially if you have many August devices.

The good news is that https://github.com/home-assistant/home-assistant/pull/31558 has merged, and it reduces the number of API calls. It looks like it should be in 0.105.3

The goal is to make home assistant more sustainable for August, and reduce the amount of load on their servers as much as possible. The hope is that there isnā€™t any need for them to do any more disruptive rate-limiting, and the component stays working for everyone.

Work on further reducing the number of API calls is here: https://github.com/home-assistant/home-assistant/pull/31685

3 Likes

@bdraco Thanks for jumping in and getting a fix in place!

@bdraco is there anything preventing Home Assistant from becoming an officially supported partner? Google, Control4, and a few other usual suspects are listed in the ā€œworks withā€ section. Maybe those companies pay for the privilege, but maybe not?

I donā€™t have any insight into Augustā€™s business practices; however Google and Control4 likely more wall known to August than Home Assistant. I think the next step would be to try to establish contact with someone in August who can help build a partnership on moving to an official integration status.

You might start with the process contact ([email protected]), and continue to the leadership team (CCO https://www.linkedin.com/in/yvesbehar/) if you donā€™t find someone willing to help.

1 Like

Before it was Ring and now August
429 Client Error: Too Many Requests for url: https://api-production.august.com/users/doorbells/mine

@bdraco Thanks! I had previously written a very friendly letter to August support about the issue, and asking how Home assistant could become an officially supported partner. I did get several responses from 2 different employees and they ultimately suggested starting the process of having an official integration developed for Home Assistant through a partnership. The last response I received below:

Hello Timothy,

Thanks for reaching out to us. We recommend contacting Home Assistant directly to request they begin the process of partnering with us to create an integration. You can reach them by sending an email to: [email protected]

please let us know if you have any further questions or concerns.

Thank you,
Jack
Team August

I donā€™t think they fully understand the nature of open-source projects, so I guess they would expect to be contacted by an employee of a companyā€¦ Iā€™m not sure if it would be out of place for me to contact August on behalf of the Home Assistant project, or if a more experienced contributor should take on that role, but Iā€™m happy to carry the torch if others agree. Is there anyone we should run this by before proceeding? @balloob perhaps?

2 Likes

it is fixed in 105.3 :slight_smile:

1 Like

Iā€™ve updated to that version, reset the .august.conf file and added my two factor authentication code but I am still getting:

requests.exceptions.HTTPError: 429 Client Error: Too Many Requests for url: https://api-production.august.com/users/locks/mine

This is 8 hours after updating. Not sure what the fix is with August from here, maybe they have blocked static IPs but this is unfortunate.

I did not change anything, I simply updated and the integration started to work. Maybe you should remove the .aufust.conf file and reboot HA and make the authentication process again.

Hi, @bdraco I noticed in https://github.com/home-assistant/home-assistant/tree/dev/homeassistant/components/august, the version of august still shows py-august 0.8.1. Is this the version that is in 105.3? In the custom component I put 10.1 to get it working in the mean time. I see py-august is at 0.11.0. I know there were a lot of improvements from 0.8.1 to 0.11.0. Thanks again for all your work on that.