Home Assistant Community Add-on: UniFi Controller

Wait… now that I think of it… I´m mixing 2 things:

  1. The client devices you see in the application. This is in the Unifi Add-on, network application (stored in the Add-on docker). This has nothing to do with Home assistant and thus neither known_devices.yaml. If you wonder how to remove these, you need to ask in the Unifi forum.
  2. I use separately the unifi_direct integration to see if anyone is at home and have the devices appear in Home assistant. This writes the entries in the known devices file.

Now I am totally lost. My UniFi controller I thought could only see stuff on the UniFi network. Which in my case is WiFi kit. One Ubiquiti AP with a small number of attached devices (phones, printers, laptop) and lots of visitors.

I have an EdgeOS router that doesn’t talk to the UniFi Controller that sees all the ethernet items. (Different HA addon to handle that)

Most of these odd items are listed as device_tracker.unifi_default_12_34_55_aa_bb_cc and that unifi in the name made me assume it was from this addon. And by looking at /root/config/unifi_data seems to confirm that is the case. That list of “wireless_clients” way too long… it seems to be remembering everything that has visited. I want to tell it to forget.

I can’t see this list in the actual Unifi network dashboard. And attempting to interact with those items in the Unifi HA addon tells me they are disabled. These items that are “disabled” I want to delete.

Try this …

Thanks. That service looks promising… but I may need to change the definition of “short period of time”. These devices are usually around a day or three. Ideally once it has gone AWOL for a week I’d like to drop it. Or manually remove.

Running that service did not change the list of disabled items for me.

This requires the Unifi Network integration ( UniFi Network - Home Assistant (home-assistant.io)). Something I have not added as it states it conflicts with MQTT which I use for my Zigbee network integration (Zigbee2MQTT)

I already have the Unifi Network Integration. It is what I am talking about. The bit that integrates with the controller. Am I posting in the wrong thread?

I think you’ll find it works perfectly. That’s been my setup for 4 years and I’ve had zero issues. (as in Unifi Network, Z2M and MQTT).

1 Like

That’s the same UniFi Network Application Add-on icon I have. But also think I may be in the wrong thread. Trying to read through this now as I see someone with similar issues of entities that won’t go away. Just a long way to read to find if they ever found a solution… :grin:
-=-=-
After a lot of reading that thread, and experimenting the solution to delete my dead entities is: Enable each duff entity in the Entities list. Then restart HA. Now manually delete each entity…

Thanks to the new multi-select on the entities list it is fairly quick to enable them all and delete en-masse. After a few restarts.

Spoke too soon… still stuck with three that don’t wanna go… but certainly better than the 50 I had.

Hi
I just installed this addon and migrated my settings from Docker instance. All working BUT automatic backups don’t work. They are set to run but I find no backups in /backup/unifi. Manual backups via download are fine.
What could be wrong?

How do you users of this addon safeguard the backups that are being made in the /backup/unifi folder? I would like to save them at another location in case I want to nuke the HA installation.

TIA

Has anyone gotten unifi to work with HA in 2024???

Constantly get Invalid Authentication…

Meanwhile I can ssh into via terminal, login via my home domain url, login via ip…just HA can’t seem to do it. Should I log a bug?

You need to set up a local admin for HA. Then it works perfectly. I’m pretty sure that’s stated further up this thread.

image

Also make sure this setting is OFF

image

Hey, thanks for this addon!

Is there a way how not having to use https for this?

Hi. thanks for the excellent add-in.
i installed it in a couple of RPi HASSIO and while it works ok in one of them, on the other one it keeps stopping the HASSIO and rebooting the Rpi every 1 hour or so.
I have installed the 3.3.0 version with
HASSIO 13,
HA Core 2024.10 and
HA Supervisor 2024.09.1
on RPi 4-64 with 2GB RAM

I would say 2GB RAM isn’t enough and you are running out of memory. You can limit the amount of RAM it uses but I think you will still struggle with 2GB.

In configuration for the add-on you can set the following :

1 Like

I did the changes but still have the problem. I also have a tplink deco in the network that is crashing. Do you think that this might cause the issues?
On the network that work ok i only have unifi products.

I have installed the AddOn in Home Assistant and all runs ok, it opens correctly in the browser, but I can’t get it to adopt the UniFi Lite Access Point. How can I adopt it so I can configure the entire WiFi network from the Home Assistant console?

Did you closely follow all the instructions, including the inform host update? That is normally one of the reasons why adoption is not happening.

Where can I see the detailed instructions? I believe I have followed them.

You can find that here: addon-unifi/unifi/DOCS.md at 088c9665ac2ba5a53dfd596182e3937632c2441c · hassio-addons/addon-unifi · GitHub