Ble_advert_filter: filter BLE adverts on the ESPHome proxy (needs ESPHome 2026.10)

What it is

A stock ESPHome Bluetooth proxy forwards everything it hears. That includes other people’s phones and a constant stream of Apple Continuity adverts that no integration uses. Home Assistant discards most of it, but only after the Wi-Fi link and the API connection have carried it. With a few proxies you won’t notice. I run about 70, feeding Bermuda and Sextant (GitHub - davidcoulson/sextant: Sextant: BLE indoor positioning for Home Assistant on top of Bermuda. Rooms, floors, sub-zones and a live floor-plan map from your ESPHome proxies. · GitHub), and at that count I did.

ble_advert_filter drops those adverts on the proxy. It plugs into an advertisement filter hook that bluetooth_proxy gained in ESPHome 2026.10.0 (esphome#19220, which I wrote). Before that I did the same thing in a forked bluetooth_proxy. The options and behaviour are the same, and the fork stays up for 2026.9 and earlier.

Repo: GitHub - davidcoulson/esphome-ble-advert-filter: On-device BLE advertisement filtering for ESPHome bluetooth_proxy, via the upstream AdvertisementFilter hook · GitHub

What it filters

  • Weak signals, by rssi_threshold, with an absolute rssi_floor and separate limits per group.
  • Other people’s phones, using the IRKs of the devices you own. Yours pass, everyone else’s rotating addresses are dropped.
  • Manufacturers and device names you block, such as Apple’s 0x004C.
  • Addresses that rotate and carry no identity (drop_non_resolvable).

What it lets through when you ask it to: HomeKit accessories (on by default), iBeacons (allow_ibeacon, optionally by UUID), Find My including AirPods (allow_findmy), Tile and the Matter and Improv pairing adverts (service_uuid_allowlist), and any MAC you list.

Using it

Add this to a proxy and flash it:

external_components:
  - source:
      type: git
      url: https://github.com/davidcoulson/esphome-ble-advert-filter
      ref: v2.0.3
    components: [ble_advert_filter]

bluetooth_proxy:
  active: true

ble_advert_filter:
  rssi_threshold: -80

That drops anything weaker than -80 dBm and nothing else. For room tracking with your own phones, add irks, a manufacturer_blocklist of 0x004C, allow_findmy: true and the service UUIDs for the pairing adverts you want to keep. The README has the full example and docs/options.md describes every option. There are also sensors (forwarded, dropped, drop rate) and a number entity for the threshold, so you can tune it from Home Assistant without reflashing.

Pin the tag. I’m on v2.0.3.

Caveats

  • It needs ESPHome 2026.10.0 or newer.
  • I’ve only run it on ESP32 boards: S3, C3, C5, C6 and Ethernet.
  • Blocking Apple’s manufacturer ID blocks every iBeacon, including ones sent from an Android phone. Allow yours by UUID.
  • A phone gets a new IRK when it’s erased or restored from backup. The forwarded_irk sensor going flat while you’re home is the giveaway.
  • drop_non_resolvable can hide some beacon apps and other devices that use changing addresses. If something you track vanishes, turn it off or allow the device.

How it has gone here

The house runs about 70 proxies: ESPHome nodes, plus Shelly plugs reflashed to ESPHome. Measured on the fork, control-normalised against an unfiltered proxy:

  • Apple manufacturer data is about 69 percent of everything a proxy hears.
  • Unresolved rotating addresses are a steady 20 to 27 percent.
  • The RSSI filter at -85 alone: about 38 percent fewer bytes on the wire. Packets fall much less (about 14 percent), because the proxy batches up to 16 adverts per packet and dropping adverts mostly makes the batches smaller.
  • IRK filtering on top: 56 to 66 percent of all adverts dropped.
  • IRKs plus the Apple blocklist: about 80 percent at the median proxy, 60 to 98 percent per proxy depending on what’s nearby. One busy proxy drops about 6,200 a minute and forwards 4,000.

The fleet moved to ESPHome 2026.10 and the hook today, so I have no before-and-after on the hook itself yet. The behaviour is the same code path, and the one proxy I have the counters in Home Assistant for sits at 63 percent right now (739 dropped, 441 forwarded, in the last minute).

The fleet configs, with a browser flasher, are in GitHub - davidcoulson/esphome-ble-proxy: Filtering ESPHome Bluetooth proxies for Home Assistant — configs, docs, and a config generator · GitHub. The old fork, for 2026.9 and earlier, is GitHub - davidcoulson/esphome-bluetooth-proxy-filter: ESPHome bluetooth_proxy fork with on-device RSSI / IRK / MAC advertisement filtering · GitHub.