New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unifi device tracking is difficult to use with no opt-in method for device trackers #26921
Comments
Try using config entry options to change those settings if they don't apply properly |
Am I doing something wrong? Because it looks like this component is fundamentally flawed.
|
A common fault is that the wrong site name is given
It is always configured through the integrations page. The configuration.yaml/config entry options are only to alter certain behaviours.
This is a limitation of how the config entries work. Not everyone have the same use case as you. But I'm trying to follow up and improve as we go.
That is not yet supported through config entry options. Haven't gotten to that yet.
Apparently I missed this, I apologise. |
It doesn't seem to work though, I had it setup before I created the integration with
I'm not sure I understand the point of these settings if you can't set them before the integration creates the entities. FWIW, there's a ton of complaints about this on Discourse and reddit since the move to the new UniFi component. My use case isn't strange, I don't want the integration to create
|
Changing the options should disable the affected entities, isn't that the case? |
I don't think so, since I had to use the entity registry to turn them all off. Is there a delay between changing the setting and the entities being disabled? I don't think I waited very long. I can spin up an HA instance after work this evening to check. |
It should be near instant when updating options after unticking the include wired devices box Just tried it on my dev instance and works as expected. Please do try, it is better if I can focus on fixing the real problems :) BTW I think your site name is wrong; I wouldn't name my site "Default" |
Thanks, I tested it out and it does disable the relevant entities, however they are re-enabled after restarting HA, even though the relevant checkbox to not track them is still deselected. To get it to not re-enable them, and have it persist across restarts, you have to disable both (1) Would you like me to file separate GitHub issues? one for SSID filtering, and one for the issue with wired clients being enabled after restart? Thanks for taking the time to look at this. BTW: What's wrong with Default? I only have one site, and I don't remember if I gave it that name or if UniFi did. It's not something I ever look at 🤷♂️ |
Thats a step in the right direction but not home free yet! It seems I have the same issue as well. This is good! We're fixing what real issues there is!
That shouldn't be necessary. Some bug here...
Sure. It's easier to track what is what.
Hey! I want this integration to work as much as you do!
With the old implementation you used the site id to configure what you wanted, with the new it is the nice name that you give when creating the site |
Now I can't reproduce the change in wired devices. Did you restart too quickly perhaps? |
I would like to add that I have the unchecked "track wired clients" and "track network devices (Ubiquiti devices)" back when those options were added in 0.9x.x?? and manually deleted all the entities. I just noticed my entity registry filled with both wired and Ubiquiti devices again and all enabled. Wonder if there is something not working 100% with the code |
Hmm. They should be disabled if they get readded to the entity registry |
I previously opened an issue on this and wanted to build on this discussion to give feedback to @Kane610 and @balloob. I've honestly stopped using this component due to this change. It's nice that there is now some bit of control around what is tracked, but there's still the fact that this integration creates many entries in the entity registry without the ability to remove them or even just prevent them from being created in the first place. I have a lot of devices on my network and don't need nor want many of them in HA. But it really just clutters the entity registry and from my experience, disabled entities don't yet seem to be completed hidden or removed from all parts of HA. I'm sure there was a lot of thought and discussion put into this change, but from a user perspective it seems that this change was made without a lot of forethought or testing. It's been pretty disruptive to me (and I think most users) and still isn't fully resolved. I realize that there's a reason to get away from known_devices.yaml, but this change should have only been implemented once it was confirmed that functionality and user experience would be the same for the users. |
@dummptyhummpty I've raised a question to front end developers if we can get some kind of toggle of showing enabled disabled entities in entity registry |
@Kane610 That would be a good start. I think long term, it would be awesome to see the integration ask before adding entities and anything not selected by the user is never added to HA. |
The entity registry should not be something one should aim on keeping clean. It's all entities that Home Assistant has ever seen. Devices on your network are part of this. If this is a page that you visit often, I would love to hear your use case for that page. Yes, we can do a better job at management for devices/entities, including overviews, renaming etc. Constructive suggestions on how this can be done better is welcome in the Polymer repo. |
@stbenjam @glassbase upgrade to 0.100 beta and please verify if you still see issues with your disabling. |
For me, physical world clutter is stressful and distracting, so the tendency to try and stay clean and organized caries over into my digital world. I do understand what you're saying about the entity registry, but for someone who likes to tweak and change things, it's nice to have the entity registry only show me things I care about. It looks like the change in 0.100beta may help with this. I also do want to point out that the other part of my issue is that there are certain things that I just don't want in HA. So it's not only about keeping the entity registry clean, but also limiting what devices are actually imported in to HA. But I'm sure that's something that can be worked on.
Awesome, I wasn't aware of that so I'll definitely try to hang out there and contribute. |
Whilst I appreciate this is closed I wanted to offer some constructive criticism to @Kane610 and any others. I agree with @stbenjam that these breaking changes to Unifi were badly handled, resulting in a mess in the HA UI and no clear documentation or obvious way out. I understand that this is Open Source and some work is required on my side - but breaking a working system for no obvious reason seems like something was missed in this release process. Specifically for me:
To add insult to injury, I manually went through the entity registry disabling all the entires I didn't need. Updating from .99 to .100 has turned them all back on! What a frustrating process. If I have missed some crucial documentation notes then I apologise, but from the comments elsewhere on the internet it would appear I am not alone. |
Home Assistant release with the issue:
0.99.1
Last working Home Assistant release (if known):
0.94? Not entirely sure
Operating environment (Hass.io/Docker/Windows/etc.):
Docker
Component/platform:
https://www.home-assistant.io/components/unifi/
Description of problem:
The move to the UniFi platform for device tracking is the worst breaking change I've had in HA, and I'm not entirely sure how I'm supposed to be using it to get the same behavior I used to have.
I had a very long known_devices.yaml, with all my family and guests, their pictures and their names attached to the devices they have, all based on them connecting to my WiFi. It was a lot of work to get this exactly the way I wanted. I have automations based on certain people's arrival. It's all broken. The move to the UniFi didn't import any of this information, it just ignores it 😭
Now, with the Unifi integration every network device (well over 200) shows up in HA... do I really have to go through the UI and disable all the entities I don't want to use? Is there no easier way to do this?
Also, the devices names are ended called different names than the other platform for whatever reason, so I have to match things up based on mac addresses and rename the devices to what they used to be called so the automations work. This is all very painful. Since I'm not alone, and this is probably a couple hours of work, is there any chance to write something to import the data from known_devices.yaml?
Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):I added the Unifi integration in the UI, but I also tried the below
Traceback (if applicable):
N/A
Additional information:
The text was updated successfully, but these errors were encountered: