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:
- docs/modbus-lijst-qube-totaal.pdf (included in this repo)
- HR-Energy website
Related Projects
- qube_heatpump - Home Assistant HACS integration using this library
License
MIT License
Project details
Release history Release notifications | RSS feed
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 python_qube_heatpump-1.8.0.tar.gz.
File metadata
- Download URL: python_qube_heatpump-1.8.0.tar.gz
- Upload date:
- Size: 90.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0903d6f8758314844873e0ba287fcf63485736c8ee2006daffecda1f57f529aa
|
|
| MD5 |
ae49df4016ff14e9ddda30c02efb4ee6
|
|
| BLAKE2b-256 |
bf30b98f35c9f521afaac8dc95967c2d578f02639b2dc797b7bf81aa1183d455
|
Provenance
The following attestation bundles were made for python_qube_heatpump-1.8.0.tar.gz:
Publisher:
python-publish.yml on MattieGit/python-qube-heatpump
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_qube_heatpump-1.8.0.tar.gz -
Subject digest:
0903d6f8758314844873e0ba287fcf63485736c8ee2006daffecda1f57f529aa - Sigstore transparency entry: 1185987199
- Sigstore integration time:
-
Permalink:
MattieGit/python-qube-heatpump@54c11e503a5c0d035e290e6097011426aa06c3d7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/MattieGit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@54c11e503a5c0d035e290e6097011426aa06c3d7 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file python_qube_heatpump-1.8.0-py3-none-any.whl.
File metadata
- Download URL: python_qube_heatpump-1.8.0-py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52e84faf0091fbcbca5f8c6fe89e5e7cd30a49ee300c2a8ff5cfaa1bb76ef4b5
|
|
| MD5 |
cbd863a78fefb54e0da387cebde10281
|
|
| BLAKE2b-256 |
16712a4fd47f428bdbebcfd771b4958dbac56630cc1b76d086853258af256591
|
Provenance
The following attestation bundles were made for python_qube_heatpump-1.8.0-py3-none-any.whl:
Publisher:
python-publish.yml on MattieGit/python-qube-heatpump
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_qube_heatpump-1.8.0-py3-none-any.whl -
Subject digest:
52e84faf0091fbcbca5f8c6fe89e5e7cd30a49ee300c2a8ff5cfaa1bb76ef4b5 - Sigstore transparency entry: 1185987223
- Sigstore integration time:
-
Permalink:
MattieGit/python-qube-heatpump@54c11e503a5c0d035e290e6097011426aa06c3d7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/MattieGit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@54c11e503a5c0d035e290e6097011426aa06c3d7 -
Trigger Event:
workflow_dispatch
-
Statement type: