API for Kronoterm heat pumps cloud
Project description
Kronoterm cloud API (unofficial)
API client for controlling Kronoterm heat pumps via their cloud (cloud.kronoterm.com/).
Installation
- Install using
pip
python -m pip install kronoterm_cloud_api
- Enjoy!
Documentation
API documentation available here.
Examples
from kronoterm_cloud_api import KronotermCloudApi
from kronoterm_enums import HeatingLoop, HeatingLoopMode
hp_api = KronotermCloudApi("your-kronoterm-cloud-username", "your-kronoterm-cloud-password")
hp_api.login()
print(hp_api.get_room_temp()) # Current room temperature.
# >> 24.0
print(hp_api.get_outside_temperature()) # Current outside temperature.
# >> 23.4
print(hp_api.get_reservoir_temp()) # Current reservoir temperature.
# >> 11.4
print(hp_api.get_working_function()) # Currently set HP working function
# >> WorkingFunction.HP_FUNCTION_SLEEP
print(hp_api.get_heating_loop_mode(HeatingLoop.HEATING_LOOP_2)) # Get the mode of heating loop.
# >> HeatingLoopMode.AUTO
print(hp_api.set_heating_loop_target_temperature(HeatingLoop.HEATING_LOOP_2, 24)) # Set heating loop temperature.
# >> True
print(
hp_api.set_heating_loop_mode(HeatingLoop.HEATING_LOOP_2, HeatingLoopMode.AUTO)) # Set the mode of heating loop.
# >> True
print(hp_api.get_theoretical_power_consumption())
# >> HPConsumption(heating=0.7924833333333334, cooling=0, tap_water=0, pumps=0.12339583333333334, all=0.9158791666666668)
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
kronoterm_cloud_api-0.1.9.tar.gz
(45.4 kB
view details)
Built Distribution
File details
Details for the file kronoterm_cloud_api-0.1.9.tar.gz
.
File metadata
- Download URL: kronoterm_cloud_api-0.1.9.tar.gz
- Upload date:
- Size: 45.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33bba0fc6bce6d8c7b998dd75df8b0b7c921ce17e0e97fafe09483ef5f397f1c |
|
MD5 | f71286f84c015376b70c7157c1c44a52 |
|
BLAKE2b-256 | 9a1b19e3c9d172f3f702738ecef2df34159a8cee5f20b1166f66ad6693eb0e78 |
File details
Details for the file kronoterm_cloud_api-0.1.9-py3-none-any.whl
.
File metadata
- Download URL: kronoterm_cloud_api-0.1.9-py3-none-any.whl
- Upload date:
- Size: 32.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f388b1d77c3b6b967388f2757ebf16bb8d8a4acf91704463dbf2105907cc6db |
|
MD5 | f653bf17d721b14ab15d46ee4428db45 |
|
BLAKE2b-256 | 18cf68effb372a907e56a7d9ed63ac7db4329a4e2521927894c7a67ff35613d3 |