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.0.tar.gz
(16.8 kB
view hashes)
Built Distribution
Close
Hashes for moehlenhoff_alpha2-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 029ecd3945d7f02cd2bf65c880565ae1cfc1a75de6ca80a4deff991a17fd7ad7 |
|
MD5 | 180bcec80627f7bdd389f0e083510dfd |
|
BLAKE2b-256 | 020362e0d1b19887cb9c969bd152f3174cfa65e87909699f0131ee448918532e |