-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Netatmo] Rest call failed: statusCode=MAXIMUM_USAGE_REACHED #13358
Comments
Same here. But for me it just started on 17th sept. Checked logs from beginning of July
Similar setup: OH3.3.0 Release with release Netatmo binding running on debian x86_64 host. Thanks Sebastian |
@clinique : does Netatmo communicate on what are the API limits? We could have a counter of the requests in the last hour, and show it in a channel? |
I found some elements here :
This means 8 requests per minute in average as a limit. I think this can be reached quite easily. We'll have to see how to be cautious on this. |
Oh yes, especially if you own several devices. |
Yes, I suspect it's the getEvents request of security modules and persons that may multiply the number of requests. I'm going to take a look at this. |
This is targetted to decrease the number of requests transmitted to Netatmo API. Solves openhab#13358 Signed-off-by: clinique <gael@lhopital.org>
In complement to @clinique PR that reduces the number of requests, I propose to create another PR that will allow the user to monitor the number of requests executed during the last hour. The chance is that any executed request is finally handled by a unique method in the code and this method is even localized in the bridge handler. As a consequence, it will be very easy to implement that feature through an advanced new channel, that is probably just few lines of new code. |
I thought I will do it in 10 minutes but ... no. |
I'll do it if you want. |
* Buffer last event requests per child modules This is targetted to decrease the number of requests transmitted to Netatmo API. Solves #13358 Signed-off-by: clinique <gael@lhopital.org>
For information, with the new monitoring channel, I can see that I was before at an average of 103 requests per hour and now with the different improvements I am now at around 82 requests per hour' with my setup. |
Minus 20%. Not that bad ! Thanks for reporting @lolodomo |
What value do you get @clinique with your own setup ? I have now blocks of 3 requests, rather than 4 before. PS: note that it is when running snapshot built last night, so not with the last fix. |
This means that the event is served by the buffer instead of issuing a dedicated request. |
Note that my home refresh interval is set to 150s, rather than the default 180s. |
Hey guys, Will test the new milestone as soon as the Shelly DEV merged some buxfixes, so I can test both. |
@clinique : did you check how many requests you generate ? |
For documentation, the 3 requests occurring at each refresh for security stuff: homesdata, homestatus and getevents. |
* Buffer last event requests per child modules This is targetted to decrease the number of requests transmitted to Netatmo API. Solves openhab#13358 Signed-off-by: clinique <gael@lhopital.org>
* Buffer last event requests per child modules This is targetted to decrease the number of requests transmitted to Netatmo API. Solves openhab#13358 Signed-off-by: clinique <gael@lhopital.org> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
* Buffer last event requests per child modules This is targetted to decrease the number of requests transmitted to Netatmo API. Solves openhab#13358 Signed-off-by: clinique <gael@lhopital.org>
* Buffer last event requests per child modules This is targetted to decrease the number of requests transmitted to Netatmo API. Solves openhab#13358 Signed-off-by: clinique <gael@lhopital.org>
* Buffer last event requests per child modules This is targetted to decrease the number of requests transmitted to Netatmo API. Solves openhab#13358 Signed-off-by: clinique <gael@lhopital.org>
I have the following Netatmo devices in my OH3.3 system:
Reconnect Interval for Netatmo Account is set to 600.
There are warnings in the log saying I have reached the maximum user usage:
Regardless of the warnings, the Binding/Things/Channel/Items work properly.
Are there any parameters to limit the number or the interval of Rest calls so that the maximum usage limit will not be reached?
Many thanks for your help!
Kind regards,
Joachim
openHAB 3.3.0 Release Build
Netatmo binding 3.3.0
Raspberry / Linux/5.10.103-v7l+ (arm)
Java Raspbian 11.0.16
The text was updated successfully, but these errors were encountered: