fjhorrillo / homebridge-airzone-cloud

Homebridge Airzone Cloud
Apache License 2.0
21 stars 3 forks source link

0.5.2 Causing API Rate Limiting #45

Open uxdiogenes opened 3 months ago

uxdiogenes commented 3 months ago

Describe Your Problem: Airzone devices fail to update, looks like the Airzone cloud API is rate limiting the homebridge.

Logs:

[ 14/03/2024,00:00:10][AirzoneCloud] Error in getDeviceStatus. Error
[14/03/2024,00:00:10][AirzoneCloud] [Fetch] Error calling to AirzoneCloud. Status: 429 Too Many Requests

Plugin Config:

See image below

Screenshots: image image

Environment:

uxdiogenes commented 2 months ago

Here's a (possibly bad) translation to Spanish and some more thoughts:

Los dispositivos Airzone no se actualizan, parece que la API de Airzone Cloud está limitando la frecuencia de acceso del homebridge.

There should be a rate limiting behavior where the plugin backs off the frequency of polling the API to prevent these cases. I've downgraded to the previous version and have seen better results than 0.5.2.

Here's the translation for the additional text:

Debería haber un comportamiento de limitación de frecuencia donde el plugin reduzca la frecuencia de sondeo a la API para evitar estos casos. He vuelto a la versión anterior y he obtenido mejores resultados que con la 0.5.2.

chbuilds commented 2 weeks ago

@uxdiogenes FWIW, I've had less of this issue on the previous version 0.5.1.

It still happens about 11-13 hours after restarting the child bridge I have it running on, but every once in a while it will stay live for several days. It might depend on how often someone is opening the Home app, but with four users in our home I can't reliably test.

With 0.5.2, it would fail pretty quickly and repeatably.

uxdiogenes commented 2 weeks ago

Same, I downgraded and have been using 0.5.1 for a while and it's mostly good.