Home Assistant Community Add-on: UniFi Controller

Yes. Just a different port. In the addon once installed, you’ll have the link to open web ui. Or use the same as your Hassio.local:8443 (if you haven’t changed any settings).

Couldn’t get it going with the hassio.local hostname, changed it to the hassio IP, tadaaa all devices adopted.

Next challenge though, I’m using Mosquitto as my MQTT broker. It has a port setup for TCP traffic, which is 8883? Could this be conflicting with the TCP port on the unifi controller software? Because my MQTT devices will not show up anymore. Even the Zigbee2MQTT devices are gone.

Edit: nevermind, I feel big noob again,changing my IP range from 192.168.0.x to 192.168.1.x does require a change of the Mosquitto broker in the config.yaml :relaxed:

1 Like

So, got it going finally, went to bed way too late, but I was a happy man. Only to discover this morning, the controller wasn’t accessible anymore. Reboot of the Home Assistant, nada. Eventually I ended up with a fresh image of the Home Assistant install, restored my snapshot from several weeks ago and then installed the addon.
All was running, but I had to configure my MQTT IP again. Changed the IP in config.yaml and restarted Home Assistant for my changes to take effect. Now the controller is not accessible again…

Stopped the mosquito addon, now the controller is accessible. Looking in the addon configs of both, I don’t see any conflicting ports?

I know there is a warning, but I’ve got mosquito and controller running without any issues.

I stopped the Mosquitto addon, but later started it again. Due to networking magic, both addons are running succesfully now… :astonished:
Or was I too impatient, does the Unifi addon really take ~20 minutes or longer to start?

Takes somewhat longer but definitely not 20 min. Rather 2-3 mins for me on my rpi3

Home Assistant 0.109.6 how to update add-on uniFi controller? Reminds you that version 5.12.72.0 is available.

The only way to update is when the new controller version is embedded in a new release of the add-on. So just wait patiently I´d suggest.

I understood! Thank!

Yeah, I’ve had a couple of reboots now (fixing bugs after recovery from snapshot), and the addon is booting just fine. Als MQTT working as expected. Anyway, it is fixed and thanks for your help René.

1 Like

I currently run this add-on through the hassio supervisor on an Rpi 3B+. I just ordered the Rpi 4B and was wondering how I would migrate? I know I have to create a snapshot on the Rpi 3, put it in the samba share of the Rpi4 backup folder and reboot de Rpi4 and restore the snapshot. But since I noticed that unifi has separate directories inside the backup folder, should I also transfer those or are those included in the snapshot?

The snapshot will backup all the folders inside the backup folder. On Top it will also backup the content of your Addon Container. So if you restore, it should be back to the previous state.

EDIT Sorry… big mistake. The Backup WILL NOT backup your BACKUP Folder at all.

1 Like

The addon have the controller outdated, the new version of controller is 5.13.29.

Hi @frenck,
First of all, thanks for this super easy way of installing the UniFi Controller.
I am running it on a Pi3+ and seems to work perfect. Good to know for all though, is that the initial startup takes a little longer than you’d might expect, since the ‘open GUI link’ is shown before it’s ready for use. You can see this in the log.

No problem in daily life, but since I am a newbie I thought it didn’t work. Because I was short on time, I therefor decided to install the Windows controller. So, give it a minute to start :wink:

Anyway. Now I’d like to migrate to your add-on but unfortunately bump into the same (version) issue as @HillNet. As a result of that and without the intention to put any pressure or what soever, I am curious if you have an indication on releasing the new version :slightly_smiling_face:

Hi @frenck,

Is it posible to update de controler to version 5.13.29 (Build: atag_5.13.29_13635)? I need this version to restore the configuration from an other controller.

Or does anybody knows how to migrate the USG & AP form one controller to the other :grimacing:

Thanks! Tinus

Migrating only works if the controllers are the same version. Also the advanced adoption failed when I tried to adopt them to an older controller version. The only thing that you can do to “adopt them” to an older version is to factory reset them and connect them to the older version controller.

But before you do, rebuild your config manually on the older version controller. This way you know for sure the used features are available in both versions of the controller and once adopted, you have a working network without the (time)pressure of rebuilding :slight_smile:

Based on the indication of @frenck, I decide what to do because one of the things I am missing while waiting is not having presence-data. I use it within several automations.

1 Like

Thank you very much @frenck for this update of the Add-On.
I just updated it and migrated my network towards it and it works like a charm!

How do I delete all the data related to this add-on? Uninstalling doesn’t remove it. When I reinstall the old configuration is still there.

Hi

Do you uninstall the AddOn?
Or the integration?

This is a common problem for many.
On the Home Assistant side you install an Integration which is a bit of software that adds a function to Home Assistant. In this case the interface to a Unifi controller.

This Unifi controller can be a piece of hardware from Ubiquiti. It can be a piece of Ubiquiti software you install on a different server.

The Addon is the Unifi controller software neatly packaged so it can be installed from Home Assistant.

If you uninstall the Addon you will remove the Ubiquiti software but the HA integration remains and will keep its config but will no longer have someone to connect to.

If you remove the integration, the Addon keeps on working happily and you can keep on using it as a Unifi controller. When you add the integration again all the devices and entities will be created inside HA from fresh.

When you remove an integration with the purpose to clean things up it is usually a good idea to restart home assistant before adding it again to be sure all the old is flushed away.

This is true for all integrations that works with an Addon.

Check your folder at \\ipofyourha\backup\unifi

There is some unifi controller information stored there. Try removing it and seeing if that helps.