Quilt Python Client
Python client library for Quilt mini-split HVAC systems.
Communicates with the Quilt cloud API via gRPC to control spaces (rooms), indoor units, comfort presets, schedules, and stream real-time updates.
Installation
pip install quilt-hp-python
With the optional CLI:
pip install "quilt-hp-python[cli]"
Quick Start
import asyncio
from quilt_hp import QuiltClient
async def main():
async with QuiltClient("user@example.com") as client:
await client.login(otp_callback=lambda email: input(f"OTP for {email}: "))
# List spaces
for space in await client.list_spaces():
print(f"{space.name}: {space.state.ambient_temperature_c}°C")
# Set a room to COOL at 22°C
from quilt_hp.models.enums import HVACMode
spaces = await client.list_spaces()
await client.set_space(spaces[0].id, mode=HVACMode.COOL, cool_setpoint_c=22.0)
# Stream real-time updates — stream events are sparse diffs, so
# always merge them into a snapshot before use
snapshot = await client.get_snapshot()
async with client.stream(snapshot.stream_topics()) as stream:
def on_space(space):
merged = snapshot.apply_space(space)
print(f"{merged.name}: {merged.state.ambient_temperature_c}°C")
stream.on_space_update(on_space)
await asyncio.sleep(60)
asyncio.run(main())
CLI
# Authenticate (caches tokens for subsequent commands)
quilt login --email user@example.com
# Full system inventory + telemetry (summary)
quilt info
# Full system snapshot as JSON for automation
quilt info --output json
# All device/entity IDs (includes update entities)
quilt devices
# Current sensor values + setpoints
quilt values
# Machine-readable values for scripting
quilt values --output json
# Energy usage
quilt energy --period week
# Set a room to cooling mode
quilt set "Living Room" --mode cool --cool 22
# Full-screen terminal UI: every room, live, with controls (press ? for keys)
quilt tui
See Use the terminal UI for a tour.
Related Projects
- homeassistant-quilt-hp — Home Assistant custom integration built on this library. Exposes Quilt spaces, indoor/outdoor units, sensors, and schedules as HA entities with full climate control.
Development
git clone https://github.com/eman/quilt-hp-python.git
cd quilt-hp-python
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev,cli]"
# Run checks
ruff check src/ tests/
ruff format --check src/ tests/
mypy src/quilt_hp/
pytest
python -m build
twine check dist/*
# Recompile protobuf stubs (requires grpcio-tools)
# Proto sources are vendored in ./proto/cleaned for standalone use.
# Optional but recommended: install protobuf includes (e.g. `brew install protobuf`)
./scripts/regen_protos.sh
# Build project docs (MkDocs Material)
pip install -e ".[docs]"
python scripts/check_docs_nav.py
mkdocs build --strict
License
MIT
Metadata
Release files for quilt-hp-python 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| quilt_hp_python-0.6.0.tar.gz | 574.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| quilt_hp_python-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 850.1 kB
Release files / quilt_hp_python-0.6.0.tar.gz
| Download URL | quilt_hp_python-0.6.0.tar.gz |
|---|---|
| Size | 574.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
11b71abbad20905119f00114d954013ef3079211e998ab3f07473bddb65e65c4
|
|
BLAKE2b-256 checksum How to use checksums |
622f10973a78607a33906a6875f68c1b26070627b89001b0d5bd6da21afb170a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logRelease files / quilt_hp_python-0.6.0-py3-none-any.whl
| Download URL | quilt_hp_python-0.6.0-py3-none-any.whl |
|---|---|
| Size | 276.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1ee2e973e7f0403989fffb98eb4815eb427b40e1a28bf549eb3973c4a84b899
|
|
BLAKE2b-256 checksum How to use checksums |
178d9cb947b320e8c8e75b7ffc8b4c5cf9d32a0552d6edb970a656ba39df0f45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency log