Config issue

Posted on
Wed Jun 23, 2021 8:17 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Config issue

Is 2.1.11 the firmware version of the Cloud Key? I found this comment on the PHP library for the API:

Support for UniFi OS-based controllers (UniFi Dream Machine Pro or Cloud Key Gen2/Cloud Key Gen2 Plus with firmware version 2.0.24 or higher) has been added as of version 1.1.47. The class automatically detects UniFi OS devices and adjusts URLs and several functions/methods accordingly. If your own code applies strict validation of the URL that is passed to the constructor, please adapt your logic to allow URLs without a port suffix when dealing with a UniFi OS-based controller.


So that says with the version I think you have, it's actually running UnifiOS and not the "standard controller" software. But it's not responding to the initial query the same way the UDMP does.

Let's try that initial test again, but this time with just http (in which case we don't need the -k either):

Code: Select all
 curl -v http://IP-ADDRESS:PORT

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Jun 23, 2021 8:21 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Config issue

The other thing to try is to enable SSL (https) for the cloud key. The plugin always tries to connect via https, so that might be causing the 404 error.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Jun 23, 2021 9:36 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Config issue

Also, I just remembered that the UniFi OS units do NOT use a port number. So blank that out in the config dialog for your controller and see what happens.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Jun 24, 2021 7:35 am
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: Config issue

FlyingDiver wrote:
Also, I just remembered that the UniFi OS units do NOT use a port number. So blank that out in the config dialog for your controller and see what happens.


Removing the port number did it!

Thank you for all you do.

JP

Posted on
Thu Jun 24, 2021 8:20 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Config issue

I should have realized that when you posted the URL you use for the web interface, and there was no port number on it. So that last firmware update changed the cloud key to the new UniFiOS.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Who is online

Users browsing this forum: No registered users and 0 guests

cron