home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.06k stars 29.73k forks source link

[Unifi] MAC address is reported incorrectly in device tracker. #122622

Open bonstio opened 1 month ago

bonstio commented 1 month ago

The problem

I discovered this issue when creating an automation which will trigger in response to my phone roaming between access points in my house. The device tracker for my phone reports the following:

attribute value
Source Router
IP 192.168.2.156
MAC ac:80:fb:78:74:57
Host name my-phone
Oui Samsung Electronics Co.,Ltd
is guest by uap false
Ap MAC 68:d7:9a:21:42:1c #This is wrong

However,the Unifi UI clearly shows the phone is connected to device with MAC 68:d7:9a:21:60:b2.

I have tried disconnected for a period sufficient for the device tracker to consider the device away and then reconnecting. Because I'm not using a randomized MAC on the phone, home/away detection is working as expected but the Ap MAC attribute remains incorrect upon reconnection.

What version of Home Assistant Core has the issue?

core-2024.7.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Unifi

Link to integration documentation on our website

https://www.home-assistant.io/integrations/unifi

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 month ago

Hey there @kane610, mind taking a look at this issue as it has been labeled with an integration (unifi) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `unifi` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign unifi` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


unifi documentation unifi source (message by IssueLinks)

Kane610 commented 1 month ago

This is affected by some rework done in other to limit state updates on device tracker, best is probably that I create a separate sensor with this data instead.

bonstio commented 1 week ago

Just checking in on this: I was wondering when an update on this work might be expected, please? Thanks for any info!

Kane610 commented 1 week ago

Currently i dont know