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.1.tar.gz (3.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.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bthome_logger-0.0.1.tar.gz
  • Upload date:
  • Size: 3.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.1.tar.gz
Algorithm Hash digest
SHA256 745400cc9ff8fde3f1332a6f49e6324eb9f90e2bb901f469044527ae8669105e
MD5 8e66ec5ad28d530956536ba3c94afc8d
BLAKE2b-256 d25369d20c36301e5e9a55fc45402c025ea2fe91707e3785865e0f2ce5a50f5c

See more details on using hashes here.

Provenance

The following attestation bundles were made for bthome_logger-0.0.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: bthome_logger-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 179d6ea375cc5c56178315855596abf1c198be7b5be2958b517f6f1428564aae
MD5 b8f950986226550718194ff8841de858
BLAKE2b-256 b692f5e42a265158145af9beb64ff4272b23f87d50a2cc1c02b213e5257f88d9

See more details on using hashes here.

Provenance

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