nickovs / unificontrol

A high-level Python interface to the Unifi controller software
Apache License 2.0
96 stars 41 forks source link

Anyone able to connect to CloudKey with 6.0.43 #18

Closed MEntOMANdo closed 3 years ago

MEntOMANdo commented 3 years ago

Version 6 has similar changes as the UDM Pro, where the admin is now on port 443, and some of the endpoints are tweaked. I gave this only 1 minute, and it wasn't able to connect. I figure I would ask before spending time troubleshooting it. Does this work with 6.0 backends?

nickovs commented 3 years ago

I believe that the v6 code on the CloudKey is pretty much the same as the v6 code on the UDM. In fact the UDM that I bought had v5 software on it when it arrived which was identical to that on my CloudKey and I have to upgrade it to make it now work! As such I expect that the new UDM support should help. There's a long thread about this over in Issue #12 and if you want to try out the branch with embryonic UDM support the this comment discusses how to install it. You will need to include server_type=UnifiServerType.UDM on the arguments to the client constructor to enable this support. It would be great if you could give this a try and let me know how you get on, specifically around which functions work for you want which ones do not.

stevehoek commented 3 years ago

@MEntOMANdo I am using the udm-support branch with a UDM-Pro f/w 1.8.6 and Controller 6.0.43 and it is working well for login, clients, and devices call. Logout is not working, and I have reported that. I'll be playing around with more of the API this week.

MEntOMANdo commented 3 years ago

I'm in! Great stuff!

To clarify: I'm able to login and poll the controller. I can see APs and wired/wireless client data. I didn't try all the functions, but many of the list_ functions work. I could not get stats stuff to work (which is, as luck would have it, my original objective). Getting 404 on those. But I know those endpoints have changed, so I'll watch this space for updates. Thanks!

nickovs commented 3 years ago

Thanks @MEntOMANdo It seems that the new controller has totally re-worked the way that stats are reported. It looks like I am going to have to investigate and that and reverse-engineer a whole new API there. If you have the opportunity to post a list of the specific stats calls that fail for you it would be helpful.