Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bthome_logger-0.0.5.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bthome_logger-0.0.5-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file bthome_logger-0.0.5.tar.gz.

File metadata

  • Download URL: bthome_logger-0.0.5.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bthome_logger-0.0.5.tar.gz
Algorithm Hash digest
SHA256 8c01750e0f9ef32e4bbc9b2302ea84a681702a49997494e7616a02ec7b4b5efb
MD5 89449be77d1d89fda5ba2610a8ab0863
BLAKE2b-256 1db26a8d9b1bb5a44ecf57231bb6602f027d907a0bada5c5ef8af65787e94e39

See more details on using hashes here.

Provenance

The following attestation bundles were made for bthome_logger-0.0.5.tar.gz:

Publisher: publish-pypi.yml on the78mole/bthome-examples

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bthome_logger-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: bthome_logger-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bthome_logger-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 20b3a3a817f85cf3de5687baa94b8a4ec676332948504c20a967a98b6f022a98
MD5 533c74ff05d591387e636764586ebd9f
BLAKE2b-256 6b0dcab303d5049d02e3d4dfdfefc737980f4091d762902694f43ec928e3dd45

See more details on using hashes here.

Provenance

The following attestation bundles were made for bthome_logger-0.0.5-py3-none-any.whl:

Publisher: publish-pypi.yml on the78mole/bthome-examples

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page