-
Notifications
You must be signed in to change notification settings - Fork 12
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
Controller v5.12 new openapi endpoints #31
Comments
Yes, I'm aware of the new API. Unfortunately, it isn't anything like the original API, and as a v1, I'm a bit worried about how stable it will be at this stage. |
With the open api schema, I was able to run their new one through a api generator and come up with at least some usable (but ugly) python code https://github.com/evanjarrett/omada-open-api I expect it will change over time, but if they do maintain openapi specs and versioning it shouldn't be hard to update. |
My Omada controller shows an API call counter, and it gets used up fast. My plan is to wrap the new API with the existing package interface so that anyone using it doesn't have to update. However, I haven't looked at how feasible that is yet. |
@evanjarrett Have you had much success with the OpenAPI endpoint? I'm considering making the switch, but I'm concerned about the API call limits. Are these being enforced? |
I looked into this today, it is being enforced.... I didn't dig in too closely, but I couldn't find a way to see the API call count via the responses until you hit that error message. I think the next course is to suggest they change the api limit on their forums, and maybe submit a fixed openapi schema to help them jump start proper documentation. |
It appears there may be some changes coming to the rate limit, but I'm not sure what version they would be in. which states |
@evanjarrett Are you seeing the rate limiting when connecting directly to the controller or is that going through the TP Link cloud? |
Directly to my controller's IP address and API. |
TP-Link is going to remove the new Open API from the OC200 controller, so this doesn't look like it's going to be a good long term option either. |
Yeah unfortunately its going away for the OC200. Really lame of them, I think they just undersized the hardware for that controller in general, because mine is always really slow navigating etc. That said, with the latest update v5.14 it seems like the 1000/day cap and the 10/sec cap are removed on my controller. For this project, I don't know if its worth investing time into open API if they are going to end support for their "home-user" device only a year after they added it. |
Yeah, I'm going to close this for now. If TP-Link reverses their decision, I'll consider switching over. |
In version 5.12 they now have released a more documented API with support for oauth and client tokens.
https://community.tp-link.com/en/business/forum/topic/619304?sortDir=ASC&page=1
The main difference in the urls is the
/openapi/v1
endpoint, and some of the parameters are changescurrentPage -> page
There is even API docs now hosted on the controller itself
(however, the page is terribly slow on my oc200, i don't think its powerful enough for whatever they are doing to generate them)
Does this repo have any intention on supporting this new "openapi" they have? I think it would be very useful for applications like home assistant to be able to use the new client tokens instead of username/password.
The text was updated successfully, but these errors were encountered: