pytboss
Python 3 library for interacting with Pitboss grills and smokers.
Note that this project has no official relationship with Pitboss or Danson's. Use at your own risk.
Usage
pytboss supports two ways of talking to a grill: a direct Bluetooth LE
connection, or a WebSocket connection to the PitBoss cloud service. Both use
the same PitBoss API once connected — only the Transport passed to it
differs.
Bluetooth LE
If you don't already know your grill's Bluetooth address, you can discover
nearby devices with bleak:
import asyncio
from bleak import BleakScanner
async def discover():
devices = await BleakScanner.discover()
for device in devices:
print(device.address, device.name)
asyncio.run(discover())
Once you have the address, connect and subscribe to state updates:
import asyncio
from bleak import BleakScanner
from pytboss import BleConnection, PitBoss
async def state_callback(data):
print(data)
async def main():
device_address = "AA:BB:CC:DD:EE:FF" # Your grill's Bluetooth address.
ble_device = await BleakScanner.find_device_by_address(device_address)
model = "PBV4PS2" # Or your model. See below.
boss = PitBoss(BleConnection(ble_device), model)
# Subscribe to updates from the smoker.
await boss.subscribe_state(state_callback)
await boss.start()
while True:
await asyncio.sleep(0.1)
asyncio.run(main())
WebSocket
The WebSocket transport talks to the PitBoss cloud service instead of
connecting directly over Bluetooth, which is useful when the grill isn't in
Bluetooth range. It requires the grill's unique identifier (grill_id),
which you can find in the PitBoss mobile app or account settings; this
library does not currently provide a way to look it up.
import asyncio
from pytboss import PitBoss, WebSocketConnection
async def state_callback(data):
print(data)
async def main():
grill_id = "your-grill-id"
model = "PBV4PS2" # Or your model. See below.
boss = PitBoss(WebSocketConnection(grill_id), model)
await boss.subscribe_state(state_callback)
await boss.start()
while True:
await asyncio.sleep(0.1)
asyncio.run(main())
Error handling
Calls to the grill can fail for a number of reasons — the grill may be
unreachable, the connection may drop, or an RPC may be rejected. These are
all raised as subclasses of pytboss.exceptions.Error:
from pytboss.exceptions import Error, GrillUnavailable, InvalidGrill, NotConnectedError
try:
boss = PitBoss(WebSocketConnection(grill_id), model)
await boss.start()
except InvalidGrill:
print(f"Unknown grill model: {model}")
except GrillUnavailable:
print("Could not reach the grill.")
except NotConnectedError:
print("Not connected to the grill.")
except Error as ex:
print(f"Unexpected error: {ex}")
Installation
pytboss requires Python 3.12 or later.
Pip
To install pytboss, run this command in your terminal:
$ pip install pytboss
Source code
Pytboss is actively developed on Github, where the code is always available.
You can either clone the public repository:
$ git clone https://github.com/dknowles2/pytboss
Or download the latest tarball:
$ curl -OL https://github.com/dknowles2/pytboss/tarball/main
Once you have a copy of the source, you can embed it in your own Python package, or install it into your site-packages easily:
$ cd pytboss
$ python -m pip install .
Supported Models
The following models should be supported. Note however that only the PBV4PS2 model has been tested.
- LG0800BL
- LG1000BL
- LG1200BL
- LG1200FL
- LG1200FP
- LG300BL
- LG800FL
- LG800FP
- LGV4BL
- Lexington Wi-Fi Upgrade
- PB0500SP
- PB0820SP/SPW
- PB1000D3
- PB1000NC1
- PB1000NXW
- PB1000PL
- PB1000R1
- PB1000R2
- PB1000S1
- PB1000SC1
- PB1000SC2
- PB1000SP
- PB1000T1
- PB1000T2
- PB1000T3
- PB1000T4
- PB1000XL/PB1000SC3
- PB1000XLW1 (Austin XL)
- PB1020CS2
- PB1020DX
- PB1020NXW
- PB1100HTC
- PB1100PS1
- PB1100PSC1
- PB1100PSC2
- PB1100PSC3
- PB1100SP/SPW
- PB1100SPW2
- PB1150 PS3
- PB1150DX
- PB1150G/GW
- PB1150PS2
- PB1150PS3
- PB1230
- PB1230CS1
- PB1230G/GW
- PB1230SP/SPW
- PB1250 CS2
- PB1250 NX
- PB1250 PL
- PB1250CS
- PB1250CS2
- PB1250NX
- PB1250PL
- PB1285KC
- PB1285PC
- PB1300 M
- PB1300 PS4
- PB1300M
- PB1300PS4
- PB1450CS
- PB1500NXW
- PB1600 CS
- PB1600 CS2
- PB1600 M
- PB1600 PSE
- PB1600AMB
- PB1600CS
- PB1600CS2
- PB1600CST
- PB1600M
- PB1600PS1
- PB1600PS2
- PB1600PS3
- PB1600PS3_
- PB1600PS4
- PB1600PSE
- PB1600SPW
- PB1600SPW2
- PB2180LK
- PB340
- PB340TGW1 (Tailgator)
- PB440D
- PB440D2
- PB440D3/PB456D
- PB440TG1
- PB440TGNC1
- PB440TGR1
- PB550G
- PB700D
- PB700FB
- PB700FBM2
- PB700FBW2 (Classic)
- PB700NC1
- PB700R1
- PB700R2
- PB700S
- PB700S1
- PB700S2
- PB700SC
- PB700T1
- PB820CS1
- PB820D
- PB820D2
- PB820D3
- PB820D4
- PB820FB
- PB820FBC
- PB820PS1
- PB820S
- PB820SC
- PB820T1
- PB820XL/PB820ME
- PB850AMB
- PB850CS1
- PB850CS2
- PB850DX
- PB850G/GW
- PB850M
- PB850PS2
- PB850SPW2
- PBV3 M
- PBV3M
- PBV3NX
- PBV4DX
- PBV4NXW
- PBV4PS2
- PBV5 P2
- PBV5CS
- PBV5P2
- PBV5PL
- PBV6 M
- PBV6 PSE
- PBV6M
- PBV6PSE
- PBV7P2
- PBV7PW1
Development
To work on pytboss itself, install uv and
sync the test dependencies (uv manages the Python 3.12+ interpreter and
virtual environment for you):
$ uv sync --group test
Run the test suite, linter, and type checker:
$ uv run pytest
$ uv run ruff check .
$ uv run mypy .
pre-commit hooks are also available; sync the
dev group and install them with:
$ uv sync --group dev
$ uv run pre-commit install
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytboss-2026.8.4.tar.gz.
File metadata
- Download URL: pytboss-2026.8.4.tar.gz
- Upload date:
- Size: 142.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b2d056a543f65b8e9209adfc8a690731274584884536aab70f9300f566d0318
|
|
| MD5 |
d354ae750ae6cfce667e9a08dc488e29
|
|
| BLAKE2b-256 |
3f8b804327958c7471ee2f55652ef0f487bbf5d2138bb65869cf39eb1dd0af22
|
File details
Details for the file pytboss-2026.8.4-py3-none-any.whl.
File metadata
- Download URL: pytboss-2026.8.4-py3-none-any.whl
- Upload date:
- Size: 52.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9dea0cddd64e41e3c768af38a97db72ed87132395cb482429ea79c94f7527e47
|
|
| MD5 |
38c5af017423c65354243119442504e9
|
|
| BLAKE2b-256 |
208dd16ea25e7e5421af02771abefc3c6567d07de5e402af4383c42593d36733
|