JohNan / homeassistant-wellbeing

Get the status from your Electrolux devices connected to Wellbeing
MIT License
83 stars 23 forks source link

API rate limit, how to keep it down? (API returns HTTP status code 429) #144

Closed AndersRipa closed 1 month ago

AndersRipa commented 1 month ago

On the API developers page [(https://developer.electrolux.one/documentation/quotasAndRateLimits)] it states Understanding rate limits Rate limits are applied based on a combination of three factors:

With the values

When this is exceeded the API returns HTTP status code 429. This happens daily for me. Is there a way to limit/throttle the amount of calls and if so how do I set it?

Thank you for a very nice Wellbeing integration, work very much appreciated!

AndersRipa commented 1 month ago

After finding the setting for it in the Integration configuration "API update interval (seconds)" and changed it to 240 from the initial value of 60. Now it works without interruption. (For your information I have 2 air cleaners. )

AndersRipa commented 1 month ago

Thank you for the integration!

Knigge commented 1 month ago

Thanks for keeping this updated and working!