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

Add APPLE_CONT and APPLE_CONTAT to default discovery filter #123

Merged
merged 1 commit into from
Apr 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion TheengsGateway/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@
"hass_discovery": 1,
"discovery_topic": "homeassistant/sensor",
"discovery_device_name": "TheengsGateway",
"discovery_filter": ["IBEACON", "GAEN", "MS-CDP"],
"discovery_filter": [
"IBEACON",
"GAEN",
"MS-CDP",
"APPLE_CONT",
"APPLE_CONTAT",
],
"adapter": "",
"scanning_mode": "active",
"time_sync": [],
Expand Down
4 changes: 2 additions & 2 deletions docs/use/use.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ docker run --rm \
-e DISCOVERY=true \
-e DISCOVERY_TOPIC=homeassistant/sensor \
-e DISCOVERY_DEVICE_NAME=TheengsGateway \
-e DISCOVERY_FILTER="[IBEACON,GAEN,MS-CDP]" \
-e DISCOVERY_FILTER="[IBEACON,GAEN,MS-CDP,APPLE_CONT,APPLE_CONTAT]" \
-e SCANNING_MODE=active
-e ADAPTER=hci0 \
-v /var/run/dbus:/var/run/dbus \
Expand Down Expand Up @@ -173,7 +173,7 @@ If enabled (default), decoded devices will publish their configuration to Home A
- The discovery name can be set wit the `-Dn` or `--discovery_name` command line argument.
- Devices can be filtered from discovery with the `-Df` or `--discovery_filter` argument which takes a list of device "model_id" to be filtered.

The `IBEACON`, `GAEN` and `MS-CDP` devices are already filtered as their addresses (id's) change over time resulting in multiple discoveries.
The `IBEACON`, `GAEN`, `MS-CDP`, `APPLE_CONT` and `APPLE_CONTAT` devices are already filtered as their addresses (IDs) change over time resulting in multiple discoveries.

## Passive scanning
Passive scanning (`-s passive` or `--scanning_mode passive`) only works on Windows or Linux kernel >= 5.10 and BlueZ >= 5.56 with experimental features enabled.
Expand Down