[PROJECT] Driver for Unifi Network Controllers

So, few questions:

  1. What type of Unifi controller are you using and what did you select for the Unifi Controller Type Preference? Many newer controllers (or versions) will need to be set to Unifi Dream Machine even if they are not one. But it is possible to have other controllers and need to use the other method. It looks like you had Unifi Dream Machine (from the log snippet) but need to be sure.
  2. Are you able to get to your Unifi Controller's webpage normally? The first log entry appears to have been a timeout when it tried to reach the IP entered. This typically only happens if it cannot reach that IP at all.
  3. What version of Unifi Network are you running?

Hi Snell

  1. I selected UDM Pro and am runnign a UDM Pro
  2. I can get there and can ping from the Hubitat controller to the UDM
  3. Unif Network Version Network 8.6.9

Ok, you have the same controller I have and we are running the same network version... So there should not be any issues there.

The next thing I would check is whether you have any odd specialty characters in the account name or password you are using. I seem to recall someone hitting an issue with Hubitat and some password characters. I cannot recall if it was this driver or my Protect one (pretty sure it was not my Connect one).

That could be it - complex passwords. I will simplify and report back

Still the same error - they are on different subnets - not sure f that would make a difference - there are no firewall restrictions in place.

Solved - I had some MAC addresses in there for presense check - took them out and he bingo - all working.

BTW how often does the presesne check occur and can you vary it?

Presence check cannot be controlled unfortunately, because it is running pretty frequently and it is set to be automatic. If you have 5 or less MACs it checks every minute. If you have 6 to 10 (the max I allow) it does it every other minute. The whole purpose with those is to keep it very up-to-date but try to avoid overloading the controller with requests.

If you have something you just need a general check on, there is the ClientCheck feature that will monitor up to 20 MACs but only checks them once per hour.

1 Like

Updated Version(s):

  • UnifiNetworkAPI.groovy = 0.4.72
  • UnifiNetworkChild-UCGMax.groovy = New - added to list in first post

Change(s):

  • Added model recognition for a new variant of the USW Lite 8 PoE switch
  • Added model recognition for U7PIW (U7 Pro In-Wall AP) as a Basic AP device
  • Added model recognition and a new child driver for the Unifi Cloud Gateway Max device (UCGMax)
  • Consolidated ChildType code from Event & State functions
1 Like

Thanks for the update!!!. While most items look good, It seems even when a port is disconnected the result in the device info is that it is connected.

I do not have anything plugged into port 3.

Port 03 Status
{Speed=10, Connected=false, PoE=false, Media=2.5GE, PoE_Status=NA, PortID=3, Enabled=true, PoE_Usage=NA}

That port is showing nothing connected in the status "Connected=false". Is there one that is true that should not be?

Updated Version(s):

  • UnifiNetworkAPI.groovy = 0.4.73

Change(s):

  • Correction for typo when recognizing the USL8LPB (Unifi 8 Port Lite PoE Switch variant)

Well crap. I just can't read when I was going through everything. Yep it is listed correctly.

1 Like

With the new UI, when you define devices, does the driver have any control over the icons chosen? WIFI APs have a generic icon, but there is several WIFI icons available.

No, it does not appear to. I asked the Hubitat team during the beta and it is something they will look into. It is not even clear if there is an order or such of what icons it chooses from. Some of my devices have very strange selections.

Yeah, I have gone through my devices manually and assigned icons to many of them.

1 Like

Yeah, it would be nice if I could set the default to something that seems reasonable though.

I just tried installing this for the first time.

I am running 4.1.1.3 on UDM Pro

I got the error message:

"No Cookie, please Login again."

Checked previous messages here on how to handle that and it did not provide anything conclusive. One user had an issue but had setup a firewall rule locally to block some types of access. I haven't done that so unless something is installed by default then I don't think this is the issue.

Any thoughts on next steps? Thanks.

You can't use your two-factor authentication login. You have to create a local login for Hubitat to use.

1 Like

The first thing to check for as @kanewolf mentioned is that it must be an account with local access, not using MFA.

1 Like

Thanks - I could not figure out how to create a user on my UDM Pro with userid/password. But then realized if you change the user type to "restrict to local access" then it changes the user requirement from a ui.com email to userid/password. And now I am connected.