Home Assistant Community Add-on: UniFi Controller

Yeah tried those, unfortunately not working. How does authentication work on a controller, do the login details come from the cloud or are they configured into the controller ? If it’s the latter, should exporting and importing the site to the new controller have created the same user and password i had before ?

They are in the controller. This add-on does not need the UBNT cloud to operate

That would seem likely but I haven’t done it so can’t confirm

Hello !
Simple : where is <unifi_base>?

Not in /usr/lib/unifi as it shoud be on a debian system.
I need to change my USG interface.

Hi, is it possible install unifi controller different version as latest version? I’m looking for version 0.18.1. Thank you.

1 Like

Hello I am new to HA and Unifi controller with HA so may be stupide question :frowning:
I have installed the Unifi controller add-on in HA (running on RPi4) and I have migrated all my devices.
Everything works great.
But for some days now I am getting the message “controller sw update 6.0.36 is now available”. When I was on windows I used to click the download end execute the update. But here the download provides me with a 0764-debian-6.0.36-8c8301645f99450680c16f0759296db3.deb file but I have no idea what to do with this file. How do I update?
I just tried the “auto-update” switch in the add-on and restarted the add-on but still getting the same message?
Thanks - Jean

Yes Jean-Lous, you have to wait until the add-on is updated (packaged) with the updated version.
I wish I knew how to do that so I could help but unfortunately I don’t… so we just have to wait.

Thanks
I have seen that the new releases of Unifi are placed in new releases of the add-on

Is this add-on compatible with 64bit mode of Debian?
It was working great until I changed to 64 bit. Now It do not open webpage ip:81123 8443 nor connect in Android app. Other thing works great. Of course not sure is it main problem but can not indicate any other significant change I made.

The log looks ok., maybe expect WARNING:

The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /usr/lib/unifi/data/keystore -destkeystore /usr/lib/unifi/data/keystore -deststoretype pkcs12".

The log end-up with

[cont-init.d] unifi.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[11:50:10] INFO: Starting the UniFi Controller...

Does it mean it is started or never ending starting?

Yes. it is started. You should be able to reach the web version through the link in the add on (depends on your config, but normally IP address of your HA with port 8443 so https://yourip:8443/) or through mobile app.

Sorry, of course 8443. 81123 was mistyping in tha post above, already edited.
ip:8443 - was working, is not with error ERR_CONNECTION_REFUSED. Also via OPEN WEB UI link in add-on.

in my case it is working with the same log result as you. I recommend you to enable more detailed logging in the add-on configuration:

Option: log_level

The log_level option controls the level of log output by the addon and can be changed to be more or less verbose, which might be useful when you are dealing with an unknown issue. Possible values are:

  • trace : Show every detail, like all called internal functions.
  • debug : Shows detailed debug information.
  • info : Normal (usually) interesting events.
  • warning : Exceptional occurrences that are not errors.
  • error : Runtime errors that do not require immediate action.
  • fatal : Something went terribly wrong. Add-on becomes unusable.

@Piggyback, do You use 64-bit version of Debian?

Changing to debug giving not much more new info. Changing to trace - I am not able to get unambiguous conclusions. Can You read it? https://pastebin.com/AyK9h9ru

What about that info to change JKS to PKCS12. Do You have this message also?

No. I’m using HassOS and not sure what to read from the log. Do you have enough memory? The addon does consume quite some.

Ok. I am looking for somebody with knowledge/experience this Add-on of 64bit.

Anyway thank You for engagement.

Regarding to RAM - 40% free

For what it is worth. I am running the add-on without any issue on a Pi4-8GB and HassOS 64bit. The details:

Add-on version: 0.19.2
You are running the latest version of this add-on.
System: HassOS 5.2 (aarch64 / raspberrypi4-64)
Home Assistant Core: 0.117.6
Home Assistant Supervisor: 2020.11.0

It works out of the box, so I have no experience in troubleshooting it.

Thanks @Recte.
What is strange, for me Add-on indicate armv7

 Add-on version: 0.19.2
 You are running the latest version of this add-on.
 System: Raspbian GNU/Linux 10 (buster)  (armv7 / raspberrypi4)
 Home Assistant Core: 0.118.3
 Home Assistant Supervisor: 2020.11.0

There should be armv8 instead of armv7.

This is from RPi console:

Linux raspberrypi 5.4.77-v8+ #1371

Reinstall add-on also did not help.

I’d love to help but just don’t have knowledge nor info to help.
If you don’t have any reverse proxies or so running (scroll up, one had that issue), you might want to check the docker using Portainer. It’s a long and unlikely shot, but that’s the only thing I can think of.

Another option is to try Community Hass.io Add-ons | Discord Me

1 Like

Hi just installed Home Assistant and the unifi contoller Add-In. At first looks OK when opening Web UI, but when I try to restore a backup, then the controller site goes down and stays down. Can it be that the version of the controller I was running earlier on my rpi is newer then the version of the controller add-in?

Edit: version I ran on the rpi unifi controller was 5.12.66

Did you follow instructions as described here https://help.ui.com/hc/en-us/articles/115002869188 ?
I moved my Unifi Controller from a PC to HA running on RPi4. Sometime readopting devices can be tricky