Skip to main content

Weheat backend client

This is a client for the Weheat backend. It is automatically generated from the OpenAPI specification.

Requirements.

Python 3.7+

Installation & Usage

You can install directly using:

pip install weheat

Then import the package:

import weheat

Getting Started

After installation, you can now use the client to interact with the Weheat backend. Note that all methods are async as of version 2025.1.15.

import asyncio
from keycloak import KeycloakOpenID  # install with pip install python-keycloak
from weheat.abstractions.heat_pump import HeatPump

# connection information
auth_url = 'https://auth.weheat.nl/auth/'
api_url = 'https://api.weheat.nl/third_party'
realm_name = 'Weheat'

# client ID and secret provided by Weheat
client_id = ''
client_secret = ''

# username and password used for the online portal
username = ''
password = ''

# your heat pump UUID
my_heat_pump_id = ''


async def demo():
    # login into keycloak and get an access token
    keycloak_open_id = KeycloakOpenID(server_url=auth_url,
                                      client_id=client_id,
                                      realm_name=realm_name,
                                      client_secret_key=client_secret)

    token_response = keycloak_open_id.token(username, password)
    # The access token is valid for its lifetime even after logging out
    keycloak_open_id.logout(token_response['refresh_token'])

    # construct the heat pump object and fetch its data
    hp = HeatPump(api_url=api_url, uuid=my_heat_pump_id)
    await hp.async_get_status(token_response['access_token'])

    # Print some of the information, look in the files for all available properties
    print(f'Heat pump status: {hp.heat_pump_state}')
    print(f'Heat pump RPM: {hp.compressor_percentage}%')
    print(f'Total produced central heating energy: {hp.energy_out_heating} kWh')

asyncio.run(demo())

Ports to other lanuages

Metadata

Release files for weheat 2026.9.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for weheat 2026.9.2
File Size Uploaded
weheat-2026.9.2.tar.gz 63.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for weheat 2026.9.2
File Interpreter ABI Platform
weheat-2026.9.2-py3-none-any.whl Python 3 none any Details

Total release size: 142.6 kB

Release files / weheat-2026.9.2.tar.gz

Download URL weheat-2026.9.2.tar.gz
Size 63.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7db98057e5f8ab830a63eefc6446c30889a78f15520de49dac39dd2e16316c44
BLAKE2b-256 checksum
How to use checksums
78bfb8c38e84b1655954c9c4a3b8b992be1efdf3abb8ff14eb74872f3817835a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release files / weheat-2026.9.2-py3-none-any.whl

Download URL weheat-2026.9.2-py3-none-any.whl
Size 78.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8877b5a67f3519b0eeb8f18dfce531b1bbc07220ae99a5f74f6a44e8f80d68f9
BLAKE2b-256 checksum
How to use checksums
f12686d693fca2789b45f474485c9a52b87a5109b18840592a744aa5694796ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release history Release notifications | RSS feed

This release

2026.9.2 This release

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