Skip to content
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

support for adding device by name #229

Open
mogorman opened this issue Jul 2, 2024 · 1 comment
Open

support for adding device by name #229

mogorman opened this issue Jul 2, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@mogorman
Copy link

mogorman commented Jul 2, 2024

Is your feature request related to a problem? Please describe.
My headphones generate a random mac address every boot. making them difficult to track.
Describe the solution you'd like
The mac address changes every time, but the name is always the same. so i would like to be able to track by name like we can track by uuid.

Describe alternatives you've considered
I could make an automation that handles this, but it would be gross

@agittins
Copy link
Owner

agittins commented Jul 3, 2024

Describe alternatives you've considered

I could make an automation that handles this, but it would be gross

🤣

I agree this is a pretty solid use-case.

I'm thinking that implementing this as a regex but defaulting to a case-insensitive substring match will be a reasonable solution, probably as a multi-line text area in the config. So someone can put a full regex in if they have particular needs, or they can simply put the plain name and either way it will match.

There are a few important caveats, but I don't think they're so severe that this isn't worth doing:

  • Multiple devices of the same model won't be distinguishable, whether they are cohabitants, neighbours or passing traffic. So it might give some bogus info from time to time, but this is still better than not having any info.
  • Device names are not always provided in the advertisement, but via followup query-response packets. This means that a device might be present but we haven't discovered its name yet, so wouldn't be able to tag and act on it appropriately. This might lead to delays in "seeing" the device from Bermuda's perspective. But again, better than not tracking it at all.

So I am keen to implement this, and it sort of fits into how Bermuda treats iBeacons and IRK(Private BLE) devices as "meta-devices", so the bones of doing it are there, I just need to be able to implement it without breaking anything :-)

@agittins agittins self-assigned this Jul 3, 2024
@agittins agittins added the enhancement New feature or request label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants