Unifi integration - offered to make sensors for rx and tx, but now my HA seems flooded

Hi,

I installed Unifi integration mainly for device_tracking.

But it offered to make sensors for rx and tx data. So I said “sure, why not”.

But this seems to be causing my HA many problems. My host is a pretty powerful pc. I’m getting about 20 sensor readings per minute into my logbook. But now my state history won’t load any more (not in 10 minutes anyway). Loading state history for one of the sensors is very slow too and makes this weird presentation rather than a chart:

Also my influx integration is now dropping many datapoints:

Catching up, dropped 36 old events
11:48 AM components/influxdb/__init__.py (WARNING) - message first occurred at 9:26 AM and shows up 8 times
Catching up, dropped 29 old events
11:47 AM components/influxdb/__init__.py (WARNING) - message first occurred at 8:26 AM and shows up 6 times
Catching up, dropped 37 old events
11:46 AM components/influxdb/__init__.py (WARNING) - message first occurred at 9:11 AM and shows up 7 times
Catching up, dropped 33 old events
11:45 AM components/influxdb/__init__.py (WARNING) - message first occurred at 6:31 AM and shows up 8 times
Catching up, dropped 30 old events
11:43 AM components/influxdb/__init__.py (WARNING) - message first occurred at 6:54 AM and shows up 10 times

So it looks like this is a fail and I want to drop these sensors (unless anyone can help with why they don’t work - the volume of data is really not much).

But if I have to turn it off, how to get rid of the sensors - removing things in HA seems hard…

There’s no option in the Unifi integration setup:

  • Find each of the _rx and _tx entities in Configuration > Entities
  • Open the properties by clicking on the relevant row
  • Slide the enabled toggle to disable.

Thanks.

What happens if a new device appears on the Unifi wifi?

Steve

If you’ve disabled the setting they will be disabled entities

Hi @Robban,

There’s no interface in the GUI to disable the creation of bandwidth sensors for new devices.

I found this in .storage/core.config_entries:

            {
                "connection_class": "local_poll",
                "data": {
                    "controller": {
                        "host": "10.64.X.Y",
                        "password": "redacted",
                        "port": 8443,
                        "site": "qkcpcg0n",
                        "username": "redacted",
                        "verify_ssl": false
                    }
                },
                "domain": "unifi",
                "entry_id": "775b92b1b0d84bb4b92f388e1c66255f",
                "options": {
                    "allow_bandwidth_sensors": true,  <================
                    "detection_time": 300,
                    "track_clients": true,
                    "track_devices": true,
                    "track_wired_clients": true
                },
                "source": "user",
                "system_options": {
                    "disable_new_entities": false
                },
                "title": "redacted",
                "version": 1
            },

It looks like I need to set that allow_bandwidth_sensors to false - but I can’t find it exposed anywhere in the UI?

Go inside the integration in hass and press the options button top right

As you see, no place to change this.

Press submit on options and it will be in the next step

Wow, there it is. How would have expected that.

Thanks,