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

HA Bluetooth manager singleton doesn't support integrations needing repeated advertisements #141662

Open
ronnnnnnnnnnnnn opened this issue Mar 28, 2025 · 0 comments

Comments

@ronnnnnnnnnnnnn
Copy link

The problem

I've recently created a custom integration for a Bluetooth scale that seems to communicate in a way that's different than other currently supported bluetooth devices. The way it works is when the user steps on the scale an advertisement (which is always exactly the same) is repeatedly sent as a signal that the scale woke up and the client should register to receive measurement notifications from the scale. The issue is that this sort of scenario doesn't seem to have been considered as there seems to be an implicit assumption that repeated identical advertisements are of no interest and they're always filtered out in scanner_adv_received (which iirc is inherited from BluetoothManager in habluetooth, but my undertstanding is that while separate that library is also managed by you guys at Home Assistant).
I realize that's probably not a very common scenario as it seems to not have come up so far, but might be worth considering adding that option (maybe some flag at the domain/device level for scanner_adv_received to avoid filtering out the advertisement when the flag is enabled?)
My integration doesn't actually need it as I've already worked around it by managing bluetooth separately (which also means for example that bluetooth proxy functionality also has to be supported separately), but I think it's worth considering at least for future integration developers who might encounter the same issue.

What version of Home Assistant Core has the issue?

core-2025.3.4

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

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant