Hi. Since HA 2022.10 and ESPHome 2022.9.0 we got
bluetooth_proxy for active connections.
I want to write custom integration which needs to connect to the device, but my HA setup does not include BT adapter - I’m currently using ESPHome to passive listen BLE packets.
My question is - how this proxy is supposed to work? There is conflicts in documentation:
- ESPHome changelog says about connecting to devices
- but Bluetooth Proxy page says that HA will get only passive sensor data
- HA 2022.10 release note tells that active Bluetooth is available and Switchbot is given as example
So, where I can find docs about way to use “remote” BT adapter, provided by ESPHome, in custom integration? HA docs about BT does not say anything over using
Bleak client, but in my case, it seems to find no adapters (or my code has bug?). In act of desperation I found that ESPHome api.proto has methods named
bluetooth_gatt_write and similar, which is what I want to use, but I didn’t found nothing about using raw API in integration - probably it’s not a way which it should be used.