jpgorganizer / ioBroker.smartgarden

GARDENA smart system adapter for ioBroker
Other
21 stars 8 forks source link

Mehrere Ventile ansteuern schlägt fehl (Fehler 429 und 400) #53

Closed reutli closed 2 years ago

reutli commented 2 years ago

Ich versuche über ein Skript mehrere Ventile zeitgesteuert hintereinander zu schalten. Der erste Zyklus (zwei Ventile) klappt meistens noch, aber beim nächsten Zyklus kommt es dann zum Fehler 429 des WebSockets.

Auszug aus dem Log:

2022-07-25 20:47:26.742 - info: smartgarden.0 (2816) 1/ Valve command failure, options.url=https://api.smart.gardena.dev/v1/command/78186d8a-4e1e-4c23-bdb7-b1dfaa08102e:2
2022-07-25 20:47:26.743 - info: smartgarden.0 (2816) 1/ Valve command failure.response.statusCode/Message=429/
2022-07-25 20:47:26.743 - error: smartgarden.0 (2816) Error: request returned 429
2022-07-25 20:47:26.765 - info: smartgarden.0 (2816) 1/ Valve Set command failure, options.url=https://api.smart.gardena.dev/v1/command/78186d8a-4e1e-4c23-bdb7-b1dfaa08102e
2022-07-25 20:47:26.765 - info: smartgarden.0 (2816) 1/ Valve Set command failure.response.statusCode/Message=429/
2022-07-25 20:47:26.766 - error: smartgarden.0 (2816) Error: request returned 429
2022-07-25 20:47:26.776 - info: smartgarden.0 (2816) 1/ Valve command failure, options.url=https://api.smart.gardena.dev/v1/command/78186d8a-4e1e-4c23-bdb7-b1dfaa08102e:4
2022-07-25 20:47:26.776 - info: smartgarden.0 (2816) 1/ Valve command failure.response.statusCode/Message=400/Bad Request
2022-07-25 20:47:26.776 - error: smartgarden.0 (2816) Error: request returned 400 Bad Request
2022-07-25 20:47:26.778 - info: smartgarden.0 (2816) 1/ Valve Set command failure, options.url=https://api.smart.gardena.dev/v1/command/78215d60-dda3-4dda-bfe5-b9c56bec702c
2022-07-25 20:47:26.778 - info: smartgarden.0 (2816) 1/ Valve Set command failure.response.statusCode/Message=429/
2022-07-25 20:47:26.778 - error: smartgarden.0 (2816) Error: request returned 429
2022-07-25 20:47:54.241 - info: smartgarden.0 (2816) 1/ Valve command failure, options.url=https://api.smart.gardena.dev/v1/command/78186d8a-4e1e-4c23-bdb7-b1dfaa08102e:4
2022-07-25 20:47:54.242 - info: smartgarden.0 (2816) 1/ Valve command failure.response.statusCode/Message=400/Bad Request
2022-07-25 20:47:54.242 - error: smartgarden.0 (2816) Error: request returned 400 Bad Request
2022-07-25 20:47:54.298 - info: smartgarden.0 (2816) 1/ Valve command failure, options.url=https://api.smart.gardena.dev/v1/command/78186d8a-4e1e-4c23-bdb7-b1dfaa08102e:2
2022-07-25 20:47:54.299 - info: smartgarden.0 (2816) 1/ Valve command failure.response.statusCode/Message=400/Bad Request
2022-07-25 20:47:54.299 - error: smartgarden.0 (2816) Error: request returned 400 Bad Request
2022-07-25 20:49:04.497 - info: smartgarden.0 (2816) 1/ Valve command failure, options.url=https://api.smart.gardena.dev/v1/command/78186d8a-4e1e-4c23-bdb7-b1dfaa08102e:2
2022-07-25 20:49:04.497 - info: smartgarden.0 (2816) 1/ Valve command failure.response.statusCode/Message=429/
2022-07-25 20:49:04.498 - error: smartgarden.0 (2816) Error: request returned 429
2022-07-25 20:49:04.503 - info: smartgarden.0 (2816) 1/ Valve command failure, options.url=https://api.smart.gardena.dev/v1/command/78186d8a-4e1e-4c23-bdb7-b1dfaa08102e:4
2022-07-25 20:49:04.503 - info: smartgarden.0 (2816) 1/ Valve command failure.response.statusCode/Message=429/
2022-07-25 20:49:04.504 - error: smartgarden.0 (2816) Error: request returned 429
XerXes777 commented 2 years ago

Ich kann ein Ventil nicht ansteuern und bekomme immer die Meldung: Error: request returned 429 Mit der neuen 2.0 version. Ich habe bei anmelde verfahren geprüft. Bei beiden kommt der Fehler

Ich habe NODEJS v12.20.0 ist das ein Problem?

XerXes777 commented 2 years ago

Rate Limits

Rate limits are in place to prevent malicious use of the API that would impact other users.

Applications share a pool of keys that each are assigned certain quota. An application that behaves as a good citizen of the Gardena eco system should not exceed the following limits:

On average one call every fifteen minutes.
3'000 requests per month.

These limits should not pose a problem if you use REST calls only to update the state of your location once and then use the real time API to stay in sync (see sections below for more information). If you feel your application absolutely cannot adhere to these limits and your use case is interesting for Gardena, please get in touch to see whether we can grant you higher rate limits.

jpgorganizer commented 2 years ago

this is no bug of the adapter, it's related to the Gardena Cloud Server API