Skip to main content

BThome v2 BLE Advertisement Logger for debugging and monitoring BThome devices

Project description

BThome Logger Tools

This directory contains tools for testing and debugging BThome devices.

🐍 Python BThome Logger

A reliable Python tool for scanning and displaying BThome v2 advertisements.

Installation

From PyPI (recommended):

# Install as isolated tool with uv (recommended)
uv tool install bthome-logger

# Or with pipx
pipx install bthome-logger

# Or system-wide with pip
pip install bthome-logger

For development:

# Install uv if not already available
curl -LsSf https://astral.sh/uv/install.sh | sh

# Change to tools directory
cd tools

# Install dependencies and run tool
uv run bthome_logger.py

From repository:

# Clone repository
git clone https://github.com/the78mole/bthomev2.git
cd bthomev2/tools

# With pip
pip install -e .

# With uv
uv run bthome_logger.py

Usage

# Basic usage (defaults to filtering devices with "MAKE" in name)
bthome-logger

# Filter by custom device name
bthome-logger --filter ESP32
bthome-logger -f MyDevice

# Show all BLE advertisements (verbose mode)
bthome-logger --verbose
bthome-logger -v

# Show version
bthome-logger --version

# Show help
bthome-logger --help

Features

  • ✅ Scans for BLE devices with customizable name filter
  • ✅ Detects BThome v2 Company ID (0xFCD2)
  • ✅ Decodes all common BThome Object IDs
  • ✅ Colorized terminal output for better readability
  • ✅ Shows RSSI values with color coding
  • ✅ Real-time updates on new advertisements
  • ✅ Supports encrypted and unencrypted packets
  • ✅ Optional verbose mode to show all BLE advertisements
  • ✅ CLI with --help and --version support

Output Example

======================================================================
🔵 BThome Logger - Python Edition
Scans for BLE devices with BThome v2 protocol
======================================================================

Filter: Devices with 'MAKE' in name
Press Ctrl+C to exit

✓ Scanner started...

----------------------------------------------------------------------
[14:32:45.123] 📱 MAKE-ESP32-S3-TS (XX:XX:XX:XX:XX:XX)
  RSSI: -65 dBm
  Raw: 40 02 b6 10
  BThome: v2 (unencrypted)
  Values:
    • Temperature: 42.78 °C

Troubleshooting

Problem: bleak cannot be installed

Solution: Make sure you are using Python 3.8+:

python --version

Problem: No Bluetooth permissions

Solution (Linux):

# Add user to bluetooth group
sudo usermod -a -G bluetooth $USER

Log out and back in, or run newgrp bluetooth (only affects current 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.8.tar.gz (6.4 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.8-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bthome_logger-0.0.8.tar.gz
  • Upload date:
  • Size: 6.4 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.8.tar.gz
Algorithm Hash digest
SHA256 c99e2003b32df8e65bc3ac0ee14323f977a262c1e8caec2d1ac87ff1749ce574
MD5 44e5b516f44bb1cbbe94de391ca4f393
BLAKE2b-256 751fced70c7b56fb6e744a3c7772f6b1c0e5e7199bd61acb822d1691a07586e0

See more details on using hashes here.

Provenance

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

Publisher: pypi-publish.yml on the78mole/bthomev2

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.8-py3-none-any.whl.

File metadata

  • Download URL: bthome_logger-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 6.7 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 f7af19987ef480d238ba86b4e7e9bcbcdc5d43e506327f1b83ecd12393afe48e
MD5 f5b04561fcef44c820e666b5f819be5c
BLAKE2b-256 a17a5e3f3e940a7137a500c5c24059138d5e11fd28fb8591e54335541b777e9e

See more details on using hashes here.

Provenance

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

Publisher: pypi-publish.yml on the78mole/bthomev2

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