BThome v2 BLE Advertisement Logger for debugging and monitoring BThome devices
Project description
BThome Logger Tools
Dieses Verzeichnis enthält Tools zum Testen und Debuggen von BThome-Geräten.
🐍 Python BThome Logger
Ein zuverlässiges Python-Tool zum Scannen und Anzeigen von BThome v2 Advertisements.
Installation
Aus PyPI (empfohlen):
# Systemweit installieren
pip install bthome-logger
# Oder mit pipx (isolierte Installation)
pipx install bthome-logger
# Tool ausführen
bthome-logger
Mit uv (für Entwicklung):
# uv installieren (falls noch nicht vorhanden)
curl -LsSf https://astral.sh/uv/install.sh | sh
# Ins tools-Verzeichnis wechseln
cd tools
# Abhängigkeiten installieren und Tool ausführen
uv run bthome_logger.py
Aus dem Repository:
# Repository klonen
git clone https://github.com/the78mole/bthome-examples.git
cd bthome-examples/tools
# Mit pip
pip install -e .
# Mit uv
uv run bthome_logger.py
Verwendung
# Wenn über PyPI/pipx installiert
bthome-logger
# Wenn lokal mit uv
uv run bthome_logger.py
# Wenn mit pip -e installiert
python -m bthome_logger
Features
- ✅ Scannt nach BLE-Geräten mit "MAKE" im Namen
- ✅ Zeigt BThome v2 Company ID (0xFCD2) erkannt
- ✅ Dekodiert alle gängigen BThome Object IDs
- ✅ Farbige Terminal-Ausgabe für bessere Lesbarkeit
- ✅ Zeigt RSSI-Werte mit Farb-Codierung
- ✅ Echtzeit-Updates bei neuen Advertisements
- ✅ Unterstützt verschlüsselte und unverschlüsselte Pakete
Ausgabe-Beispiel
======================================================================
🔵 BThome Logger - Python Edition
Scannt nach BLE-Geräten mit BThome v2 Protocol
======================================================================
Filter: Geräte mit 'MAKE' im Namen
Drücke Ctrl+C zum Beenden
✓ Scanner gestartet...
----------------------------------------------------------------------
[14:32:45.123] 📱 MAKE-ESP32-S3-TS (XX:XX:XX:XX:XX:XX)
RSSI: -65 dBm
Raw: d2 fc 40 02 b6 10
BThome: v2 (unverschlüsselt)
Werte:
• Temperatur: 42.78 °C
Troubleshooting
Problem: bleak kann nicht installiert werden
Lösung: Stelle sicher, dass du Python 3.7+ verwendest:
Problem: Keine Bluetooth-Berechtigung
Lösung (Linux):
# Füge Benutzer zur bluetooth Gruppe hinzu
sudo usermod -a -G bluetooth $USER
Melde dich danach ab und wieder an oder führe newgrp bluetooth aus (wirkt nur für das aktuelle Terminal).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bthome_logger-0.0.4.tar.gz.
File metadata
- Download URL: bthome_logger-0.0.4.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69504534e361049d394ecb51d0f432b9f3219a007ce1769ca391b0d1ec6192d2
|
|
| MD5 |
326979a9d6a474612ca3243f976904d6
|
|
| BLAKE2b-256 |
4e41b58b591447a3791dd887af9a1c88a1dba52e1a6ea7377a4d72949e6fd5e0
|
Provenance
The following attestation bundles were made for bthome_logger-0.0.4.tar.gz:
Publisher:
publish-pypi.yml on the78mole/bthome-examples
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bthome_logger-0.0.4.tar.gz -
Subject digest:
69504534e361049d394ecb51d0f432b9f3219a007ce1769ca391b0d1ec6192d2 - Sigstore transparency entry: 782263927
- Sigstore integration time:
-
Permalink:
the78mole/bthome-examples@d1515a425e406634f3d66e0b713aae0a4e3f9d19 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/the78mole
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@d1515a425e406634f3d66e0b713aae0a4e3f9d19 -
Trigger Event:
push
-
Statement type:
File details
Details for the file bthome_logger-0.0.4-py3-none-any.whl.
File metadata
- Download URL: bthome_logger-0.0.4-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c7dcd607053c52a2b6d3d9566a03c05d98eceae23ec013df1608269be97cdaf
|
|
| MD5 |
2da6c2e9f8c1a02a54e3682db4a084da
|
|
| BLAKE2b-256 |
57fc7bca40611c0269a26182239d9a10e2e2162884d8efe68acd0b1c47ee1877
|
Provenance
The following attestation bundles were made for bthome_logger-0.0.4-py3-none-any.whl:
Publisher:
publish-pypi.yml on the78mole/bthome-examples
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bthome_logger-0.0.4-py3-none-any.whl -
Subject digest:
5c7dcd607053c52a2b6d3d9566a03c05d98eceae23ec013df1608269be97cdaf - Sigstore transparency entry: 782263928
- Sigstore integration time:
-
Permalink:
the78mole/bthome-examples@d1515a425e406634f3d66e0b713aae0a4e3f9d19 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/the78mole
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@d1515a425e406634f3d66e0b713aae0a4e3f9d19 -
Trigger Event:
push
-
Statement type: