Python client for the Moehlenhoff Alpha2 underfloor heating system
Project description
python-moehlenhoff-alpha2
Python client for the Moehlenhoff Alpha2 underfloor heating system
Vendor documentation
Installation
Moehlenhoff Alpha2 can be installed from PyPI using pip
or your package manager of choice:
pip install moehlenhoff-alpha2
Usage example
import asyncio
from moehlenhoff_alpha2 import Alpha2Base
async def main():
base = Alpha2Base("192.168.1.1")
await base.update_data()
# Set current date and time in base
await base.set_datetime()
# Increase the temperature of heatarea by 0.2 degrees
heat_area = list(base.heat_areas)[0]
t_target = heat_area["T_TARGET"] + 0.2
await base.update_heat_area(heat_area["ID"], {"T_TARGET": t_target})
asyncio.run(main())
Development
Get Python Poetry
# Install project dependencies
poetry install
# Run tests
ALPHA2_BASE_ADDRESS=<address> poetry run pytest --tb=short -o junit_family=xunit2 --junitxml=testreport.xml --cov-append --cov moehlenhoff_alpha2 --cov-report term --cov-report xml -v tests
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
moehlenhoff_alpha2-1.3.1.tar.gz
(16.5 kB
view details)
Built Distribution
File details
Details for the file moehlenhoff_alpha2-1.3.1.tar.gz
.
File metadata
- Download URL: moehlenhoff_alpha2-1.3.1.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.3.13-2-MANJARO
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59539df82ea9f6be91aa3fbe8b8f5fc1b7af9a3888972545675a0c1a43334a47 |
|
MD5 | 5b88732f6562a5f6e79927f7d047f72e |
|
BLAKE2b-256 | 7e672329cfc11e37f0fde238fdfe9f80b989df1754df80992852f1be472e1f3a |
File details
Details for the file moehlenhoff_alpha2-1.3.1-py3-none-any.whl
.
File metadata
- Download URL: moehlenhoff_alpha2-1.3.1-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.3.13-2-MANJARO
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b50fe54d33d349953322bd366d2e5888719e5f2f3dfcee3640eae7da4730864a |
|
MD5 | 0e2aebf78fa4678b38719c18a985308e |
|
BLAKE2b-256 | 19a93347d8fcbb2b39ec6582dfad669d022a672413f44bcddfcd86d0f2acdde6 |