Repository navigation
v1.8.0: port the esphome-ble-advert-filter v2.0.2 filter - #5
Merged
Merged
Conversation
Brings this fork's filter up to the hook component's v2.0.2, so the fleet on ESPHome 2026.9 gets the fixes from a deep review of this repo: - an IRK-matched phone whose rotating address looked like an Espressif OUI was never resolved, and with Apple blocklisted, dropped; - zero padding in an advert hid its scan response from every payload rule; - a 16-bit service UUID written in Base-UUID form did not match its short advert; - a non-matching iBeacon hid a matching one later in the payload; - `minor: []` meant any minor (now rejected), and the allow_ibeacon / allow_findmy comments understated what a match protects from. Also the hook component's 2.0.0 RPA verdict cache and 2.0.1 null-payload guard, which its filter chain now uses. check_parity.py now also compares irk_matches_cached_ and clear_rpa_cache_; every compared function, the chain, the OUI table and the public API match v2.0.2. Compiled on ESPHome 2026.9.1 / ESP-IDF for ESP32-C3 and S3 with every filter option and the lambda API in use: no warnings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The filter now matches v2.0.2 rather than v1.7.0: pin run.sh to its tag commit (7e4713d), check it out in CI, and say so in the README notice. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings this fork's filter up to esphome-ble-advert-filter
v2.0.2, so the fleet on ESPHome 2026.9 gets the fixes from a deep Codex review of this repo.Fixes (reproduced by running them, each covered by a v2.0.2 test that fails on the old code):
minor: []meant any minor and is now rejected. Theallow_ibeacon/allow_findmycomments understated what a match protects from.Also ported: v2.0.0's RPA verdict cache and v2.0.1's null-payload guard, which the shared filter chain now uses.
Parity:
tools/check_parity.pynow also comparesirk_matches_cached_andclear_rpa_cache_. Every compared function, the filter chain, the Espressif table and the public API match v2.0.2.tests/run.shand CI pin v2.0.2's tag commit.Tested:
tests/run.sh(parity plus the v2.0.2 suites under ASan/UBSan) passes.esphome compileon 2026.9.1 / ESP-IDF, ESP32-C3 and S3, with every filter option and the lambda API in use, gives no warnings.v1.8.0and roll it out by bumpingref:in the fleet'scommon/ble-proxy.yaml, starting with one test node.🤖 Generated with Claude Code