Skip to main content

Async Modbus client for Qube Heat Pumps

Project description

Python Qube Heat Pump Client

Asyncio client for Qube heat pumps via Modbus TCP.

Installation

pip install python-qube-heatpump

Usage

import asyncio
from python_qube_heatpump import QubeClient

async def main():
    client = QubeClient("192.168.1.100", port=502, unit_id=1)
    await client.connect()

    state = await client.read_state()
    print(f"Outside temp: {state.temp_outside}°C")
    print(f"Supply temp: {state.temp_supply}°C")
    print(f"DHW temp: {state.temp_dhw}°C")

    await client.disconnect()

asyncio.run(main())

Features

  • Async Modbus TCP client using pymodbus
  • Entity definitions for sensors, binary sensors, and switches
  • FLOAT32 decoding with big endian (ABCD) byte order
  • Type-safe dataclasses for entity definitions

Entity Definitions

The library provides pre-defined entity definitions for all Qube Modbus registers:

from python_qube_heatpump.entities import SENSORS, BINARY_SENSORS, SWITCHES

# Access entity definitions by key
temp_supply = SENSORS["temp_supply"]
print(f"Address: {temp_supply.address}, Unit: {temp_supply.unit}")

Vendor Documentation

The official Modbus register documentation from HR-Energy is available at:

Related Projects

  • qube_heatpump - Home Assistant HACS integration using this library

License

MIT License

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

python_qube_heatpump-1.12.0.tar.gz (94.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_qube_heatpump-1.12.0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file python_qube_heatpump-1.12.0.tar.gz.

File metadata

  • Download URL: python_qube_heatpump-1.12.0.tar.gz
  • Upload date:
  • Size: 94.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for python_qube_heatpump-1.12.0.tar.gz
Algorithm Hash digest
SHA256 2e4437619acdfaad3f94433b2a5010d6ec27fa27c54a8cc89033e953b53c8cc4
MD5 28b33b29319841c5cc2dae4a31395eee
BLAKE2b-256 a3c4489dd88b5aca922e965e3a4b202c73f9dfed88ccbe657eab72ce9a773373

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_qube_heatpump-1.12.0.tar.gz:

Publisher: python-publish.yml on MattieGit/python-qube-heatpump

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file python_qube_heatpump-1.12.0-py3-none-any.whl.

File metadata

File hashes

Hashes for python_qube_heatpump-1.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c86f319db0aec00e77326baf3c9b6e13010e7460ee55547b0d178a1ad5ebf9c6
MD5 c0062e68151b721681f0a35f0f53666b
BLAKE2b-256 3a71db33def3985fbf744f44716a9c7caa0554517c320eda71d958f6dfb889d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_qube_heatpump-1.12.0-py3-none-any.whl:

Publisher: python-publish.yml on MattieGit/python-qube-heatpump

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