Skip to main content

🔥 combustion_ble

A Python library for Combustion Inc. Bluetooth devices: Predictive Thermometers, Giant Grill Gauges, and MeatNet repeaters (Display, Booster, Engine).

Requires Python 3.14.2 or newer, matching the Python requirement of Home Assistant 2026.11.2. Version 0.4.0 drops support for Python 3.11–3.13.

The library is built around MeatNet, which turns Bluetooth advertisements into device state. It performs no Bluetooth I/O itself. You own the scanner and feed it advertisements. That makes it safe to use inside hosts that manage Bluetooth themselves, like Home Assistant.

From advertisements alone you get, for every probe in range or relayed by a MeatNet node:

  • Temperatures for all 8 thermistors, plus virtual core, surface, and ambient
  • Instant read temperature, smoothed the same way Combustion's apps show it
  • Probe ID, color, mode, battery status, and overheating sensors
  • Which nodes are relaying each probe, and how many hops away

Giant Grill Gauges report their temperature, alarms, and battery status. Displays, Boosters, and Engines report their product type and serial number.

Cooking predictions and target-temperature controls are available through an optional ProbeSession, using an already-connected Bluetooth client supplied by your application. The passive core still performs no Bluetooth I/O.

Usage

from combustion_ble import MeatNet

meatnet = MeatNet()

def on_new_device(device):
    print("Discovered", device)
    device.add_listener(lambda: print("Updated", device))

meatnet.add_device_listener(on_new_device)

# For every advertisement your scanner receives. manufacturer_data can be the full
# {company_id: bytes} mapping that bleak and Home Assistant provide.
meatnet.handle_advertisement(address, manufacturer_data, rssi, connectable=connectable)

# About once per second, to mark devices unavailable and clear stale instant read readings.
meatnet.expire()

for probe in meatnet.probes.values():
    print(probe.serial_number_string, probe.core_temperature, probe.available)

Listeners only fire when something observable changes, so repeated identical advertisements are cheap.

Home Assistant

Register a Bluetooth callback for manufacturer ID 2503 with connectable=False (so advertisements relayed by passive proxies are included), and hand each BluetoothServiceInfoBleak to the MeatNet:

from datetime import timedelta

from homeassistant.components import bluetooth
from homeassistant.helpers.event import async_track_time_interval

meatnet = MeatNet()

entry.async_on_unload(
    bluetooth.async_register_callback(
        hass,
        lambda service_info, change: meatnet.handle_service_info(service_info),
        bluetooth.BluetoothCallbackMatcher(manufacturer_id=2503, connectable=False),
        bluetooth.BluetoothScanningMode.PASSIVE,
    )
)
entry.async_on_unload(
    async_track_time_interval(hass, lambda _now: meatnet.expire(), timedelta(seconds=1))
)

Standalone

See examples/passive_meatnet.py for a live table of every device in range, using a bleak scanner.

Cooking predictions with a host-managed connection

First discover the probe through advertisements, then pass a connected bleak.BleakClient for that direct probe to ProbeSession. The session subscribes to status notifications and command responses. It never scans, connects, reconnects, or disconnects the client. MeatNet repeater connections are not supported by this API yet.

from combustion_ble import ProbeSession

session = ProbeSession(meatnet, serial_number, connected_client)
try:
    await session.start()
    await session.set_removal_temperature(63.0)  # Celsius; waits for the probe's acknowledgement.
    # Your application keeps the session alive while monitoring the cook.
    # Probe listeners fire when prediction values change:
    # meatnet.probes[serial_number].prediction
    # To disable predictions on the probe: await session.cancel_prediction()
finally:
    await session.stop()
    # The application releases/disconnects connected_client itself.

probe.prediction is an immutable CookingPrediction containing state, mode, type, set_point_temperature, estimated_core_temperature, seconds_remaining, and percent_through_cook. A remaining time of None means the probe is not providing a usable estimate. Progress measures temperature change from heat start to the target, not elapsed time. Status notifications remain authoritative; a successful command does not invent a prediction.

Continue calling meatnet.expire() about once per second to advance the countdown and clear predictions after 15 seconds without connected status. Temperature advertisements do not extend prediction freshness. A countdown reaching zero does not change the probe's reported cook state. prediction_updated_at records the latest status receipt using MeatNet's monotonic clock.

The host's Bleak disconnect callback must call session.disconnected() immediately, then arrange for await session.stop() during cleanup. Stop before releasing the client; use try/finally so the host still disconnects it if subscription cleanup fails. Put separate timeouts around setup, cleanup, and disconnect operations. Cancelling start() closes the session immediately and leaves notification cleanup to the host's finally block. If stop() fails or times out, disconnect the client and call stop() again to release session ownership without Bluetooth I/O. Stopping clears local predictions but does not cancel the cook. Sessions are single-use, with one session allowed per probe. The session exclusively owns these two notification subscriptions; do not share them with another consumer on the same client.

Commands are serialized. Device rejection raises PredictionCommandRejectedError and leaves the session usable. Timeout, cancellation during a command, and write failure close the session: the probe protocol has no request IDs, so late replies cannot safely be matched to new commands. After such an error, stop the session, disconnect the client, and establish a fresh connection and session before retrying. The command might already have reached the probe.

Home Assistant connection setup

Home Assistant owns discovery, adapter/proxy selection, and reconnect scheduling. In your integration, resolve the direct probe's address through HA and establish a fresh client with bleak-retry-connector. Keep that dependency in the integration; this library does not require Home Assistant or a connection helper.

import asyncio

from bleak_retry_connector import BleakClientWithServiceCache, establish_connection
from homeassistant.components import bluetooth

from combustion_ble import ProbeSession


async def monitor_predictions(hass, meatnet, serial_number, stop_event):
    """Monitor until the integration requests shutdown or the client disconnects."""
    probe = meatnet.probes[serial_number]
    if probe.address is None:
        raise ConnectionError("Probe has only been heard through a MeatNet repeater")
    device = bluetooth.async_ble_device_from_address(hass, probe.address, connectable=True)
    if device is None:
        raise ConnectionError("No connection-capable adapter can reach the probe")

    session = None
    disconnected = asyncio.Event()

    def on_disconnect(_client):
        if session is not None:
            session.disconnected()
        disconnected.set()

    client = await establish_connection(
        BleakClientWithServiceCache,
        device,
        probe.serial_number_string,
        disconnected_callback=on_disconnect,
        timeout=20.0,
    )
    waiters = []
    try:
        session = ProbeSession(meatnet, serial_number, client)
        async with asyncio.timeout(30):
            await session.start()
        waiters = [
            asyncio.create_task(stop_event.wait()),
            asyncio.create_task(disconnected.wait()),
        ]
        await asyncio.wait(waiters, return_when=asyncio.FIRST_COMPLETED)
    finally:
        for waiter in waiters:
            waiter.cancel()
        await asyncio.gather(*waiters, return_exceptions=True)
        try:
            if session is not None:
                async with asyncio.timeout(10):
                    await session.stop()
        finally:
            try:
                async with asyncio.timeout(10):
                    await client.disconnect()
            finally:
                if session is not None and not client.is_connected:
                    await session.stop()

The integration should stop/cancel this monitoring task on config-entry unload. On reconnect, call this function again to resolve the device through HA's current adapter/proxy selection. Keep the passive advertisement callback registered with connectable=False so temperatures remain available from listening-only adapters. Prediction connections require a connection-capable adapter or proxy and occupy a connection slot while subscribed.

See HA's Bluetooth guidance and Combustion's probe protocol.

Legacy DeviceManager

The original DeviceManager API is still available. It runs its own scanner and maintains its own connections, so it is not suitable for Home Assistant. Use MeatNet and the optional host-managed ProbeSession for new integrations.

Documentation

Docs are at https://combustion-ble.readthedocs.io/. The Combustion BLE specifications describe the underlying protocol.

Credits

Combustion Inc. for their documentation and SDKs for iOS and Android. Parsing and arbitration rules follow those SDKs, and the tests reuse their test vectors.

Metadata

Release files for combustion-ble 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for combustion-ble 0.5.0
File Size Uploaded Provenance Actions
combustion_ble-0.5.0.tar.gz 76.2 kB Without provenance Details for combustion_ble-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for combustion-ble 0.5.0
File Interpreter ABI Platform Actions
combustion_ble-0.5.0-py3-none-any.whl Python 3 none any Details for combustion_ble-0.5.0-py3-none-any.whl

Total release size: 163.1 kB

Release files / combustion_ble-0.5.0.tar.gz

Download URL combustion_ble-0.5.0.tar.gz
Size 76.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d3d8d41b900d98cc3b233fca54633ffcc23a7ad449dbd8ed78a64c1beb913aaa
BLAKE2b-256 checksum
How to use checksums
090656b6f0996a3b600a226c02eab34a6059b21b1d2c7bdcc266a81059610099
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / combustion_ble-0.5.0-py3-none-any.whl

Download URL combustion_ble-0.5.0-py3-none-any.whl
Size 86.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60b8cd04e887e69ecd2aeb3b6a873a4fee1486110161f841c329048b297a9259
BLAKE2b-256 checksum
How to use checksums
8b4c7aac1a5e9bf0894eb50c63c13bc911bd7bd24aed50a28583d1445776cf95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for combustion-ble 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page