I get an error now on home connect integration that I’m using more than 1000 API calls per day.
homeconnect.api.HomeConnectError: {'key': '429', 'description': 'The rate limit "1000 calls in 1 day" was reached. Requests are blocked during the remaining period of 2814 seconds.'}
If scan_interval is one minute then 60 calls per hour multiplied with 24 hours = 1440 API calls.
I did not have this issue before though, anyone else have this issue now? I guess this limit has been enforced lately from Home connect
I know the 1000 API calls a day has been there before. I ran into this issue in the beginning with making many setup errors. I haven’t had the problem for ages, but now since the latest update of HA Core I ran into the issue as well. So maybe it is a change in the core…?
Emulate rate limit errors
image
We recognize that up to this point testing how your application handles rate limits involved overwhelming the Home Connect API with requests to trigger those specific responses. Undesirable, to say the least!
We have added this case to our error emulation tool, so you will now be able to instruct the API to behave as if you exceeded the limits on command. Because we all know you would never hit these limits on your own!
Check it out here!
As far as I understand from the API documentations you have 1000 API calls per application.
So you could create two applications and switch which one to use when the first one hits the limit using automations to trigger the update entity call.
I lowered my API calls to every two hours and use the update entity to get more often updates when my washing machine is running.
If you don’t use the API key for more than the integration then I don’t know.
I was using it for own API calls and I lowered them.
Not sure about how the integration can be lowered.