Skip to main content

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 uv

# Install project dependencies
poetry sync

# Run tests
ALPHA2_BASE_ADDRESS=<address> uv 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


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.4.0.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

moehlenhoff_alpha2-1.4.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file moehlenhoff_alpha2-1.4.0.tar.gz.

File metadata

  • Download URL: moehlenhoff_alpha2-1.4.0.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.6

File hashes

Hashes for moehlenhoff_alpha2-1.4.0.tar.gz
Algorithm Hash digest
SHA256 b8927fe4b7b60acf227a76d15b27004cfc8cec3e978ba0c716876bdc6c2dd7d6
MD5 0fc35f692d446bc0e3a19b24768bb7d5
BLAKE2b-256 9887ff96e60d147f66206cbf077a8b7cd3ea9588ea07243be5eb90990a94e51c

See more details on using hashes here.

File details

Details for the file moehlenhoff_alpha2-1.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for moehlenhoff_alpha2-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b47462044efe432338c471a2a584647e3cd6db81c6346054c4b0711cfd67708
MD5 e9082f1c037e577297d5e20f681fc50e
BLAKE2b-256 a75f88261baa2f4a56ced61976f5b8309c346ba2b38ed84770b0c562df157077

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page