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.4.tar.gz (6.1 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.4-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

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

Hashes for bthome_logger-0.0.4.tar.gz
Algorithm Hash digest
SHA256 69504534e361049d394ecb51d0f432b9f3219a007ce1769ca391b0d1ec6192d2
MD5 326979a9d6a474612ca3243f976904d6
BLAKE2b-256 4e41b58b591447a3791dd887af9a1c88a1dba52e1a6ea7377a4d72949e6fd5e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for bthome_logger-0.0.4.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.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

Hashes for bthome_logger-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5c7dcd607053c52a2b6d3d9566a03c05d98eceae23ec013df1608269be97cdaf
MD5 2da6c2e9f8c1a02a54e3682db4a084da
BLAKE2b-256 57fc7bca40611c0269a26182239d9a10e2e2162884d8efe68acd0b1c47ee1877

See more details on using hashes here.

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

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