π Capture all raw BLE advertisements (ADV packets) inside Home Assistant β from all Bluetooth adapters and proxies β and forward them as real-time HA events.
This custom integration registers a passive BLE listener via BluetoothCallbackMatcher(connectable=False) to tap into all incoming BLE advertisement packets, regardless of their source or whether they are claimed by a Home Assistant integration.
- Clone or copy this repository into your Home Assistant configuration under:
<config>/custom_components/ble_passthrough/
- Add the following to your configuration.yaml file:
ble_passthrough:- Restart Home Assistant.
Once restarted, the integration will begin listening for BLE advertisements automatically.
π Note: This integration does not use UI configuration (config_flow: false), so it must be activated via YAML.
- π₯οΈ Local BlueZ-based adapters
- πΆ ESPHome Bluetooth Proxy devices
- π Remote Bluetooth Proxies via TCP/Socket
- π§± Any
bluetooth_proxy-enabled adapter supported by HA
hass.bus.async_fire(
"ble_raw_advertisement",
{
"address": "AA:BB:CC:DD:EE:FF",
"rssi": -67,
"data": "0201061AFF99040512AABBCCDDEE",
"source": "esp32-proxy-1234"
}
)MIT License