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

IRK Sensor/Onboarding for Private BLE #2510

Open
margau opened this issue Dec 3, 2023 · 5 comments
Open

IRK Sensor/Onboarding for Private BLE #2510

margau opened this issue Dec 3, 2023 · 5 comments

Comments

@margau
Copy link

margau commented Dec 3, 2023

Describe the problem you have/What new integration you would like
Let esphome provide the IRK (Identity Resolving Key) for devices to be used in the Home Assistant Private BLE integration.

Please describe your use case for this integration and alternatives you've tried:

Private BLE needs the IRK of a device, which apparently can be determined by peering a (e.g, android) device using bluetooth. With private BLE, esphome often is already present as bluetooth proxy, so the "onboarding" of a new device might be useful here also.

espresense as alternative firmware already does this (https://www.home-assistant.io/integrations/private_ble_device/#espresense), but needing another esp just to read out the IRK, while the remaining parts of the presence tracking are done by Private BLE/esphome bluetooth proxy (instead of espresense) is not straightforward.

@margau
Copy link
Author

margau commented Dec 3, 2023

This is somewhat related to #2285, but not identical. 2285 is about handling IRK inside the tracking itself, while this is about initially determining the IRK (mainly for the existing private ble integration)

@agittins
Copy link

It looks a lot like someone has already written a component to do this: https://github.com/dgrnbrg/appdaemon-configs/tree/a5780a16e15b8b10f6dd1cdad20250adc13a9451/custom_components/irk_enrollment

It looks like it will require some updating to get it working with current esphome, but it looks like all the heavy lifting has been done already.

It would be great to have a component to do this, especially if it could be turned on and off as required (assuming it might have an impact on proxy performance). Likewise if it could be hooked into the Private BLE Device integration, to give a seamless enrolment into HA.

@dgrnbrg
Copy link

dgrnbrg commented Apr 5, 2024

I updated my component so that it builds again, but I haven't tested it. I'd be happy to help fixing/testing when I can, but I have a very large amount of other ESPHome development I'm doing, and I won't be able to focus on the entire lifecycle of this until late summer or fall.

@myhomeiot
Copy link

You can use small fix

@dgrnbrg
Copy link

dgrnbrg commented May 5, 2024

I've merged @myhomeiot's fix. Thank you!

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

4 participants