Skip to main content

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.

  • 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)

Source distribution for quilt-hp-python 0.6.0
File Size Uploaded
quilt_hp_python-0.6.0.tar.gz 574.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for quilt-hp-python 0.6.0
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.7

2 release files

0.5.6

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

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