Skip to main content

Easy-to-use Python communication module for Heliotherm heat pumps

Project description

HtHeatpump

https://img.shields.io/pypi/v/htheatpump.svg https://img.shields.io/travis/dstrigl/htheatpump.svg Documentation Status Updates

Easy-to-use Python communication module for Heliotherm heat pumps.

Introduction

This library provides a pure Python interface to access Heliotherm heat pumps over a serial connection. It’s compatible with Python version 3.4 and 3.5.

Features

  • read the manufacturer’s serial number of the heat pump

  • read the software version of the heat pump

  • read and write the current date and time of the heat pump

  • read the fault list of the heat pump

  • query whether the heat pump is malfunctioning

  • query for several parameters of the heat pump

  • change parameter values of the heat pump

Todo

  • check access right for writing parameters of the heat pump

  • check passed values for writing parameters against the defined limits

  • read and write the time programs of the heat pump

  • add some (more) examples

  • add some (more) unit tests

  • cleanup/extend documentation

Tested with [*]

  • Heliotherm HP08S10W-WEB, SW 3.0.20

  • Heliotherm HP10S12W-WEB, SW 3.0.8

  • Heliotherm HP08E-K-BC, SW 3.0.7B

Installing

You can install or upgrade htheatpump with:

$ pip install htheatpump --upgrade

Or you can install from source with:

$ git clone https://github.com/dstrigl/htheatpump.git
$ cd htheatpump
$ python setup.py install

Getting started

To use htheatpump in a project take a look on the following example. After establishing a connection with the Heliotherm heat pump one can interact with it by different functions like reading or writing parameters.

from htheatpump.htheatpump import HtHeatpump

hp = HtHeatpump("/dev/ttyUSB0", baudrate=9600)
try:
    hp.open_connection()
    hp.login()
    # query for the outdoor temperature
    temp = hp.get_param("Temp. Aussen")
    print(temp)
    # ...
finally:
    hp.logout()  # try to logout for an ordinary cancellation (if possible)
    hp.close_connection()

A full list of supported functions can be found in the htheatpump documentation at readthedocs.io.

Logging

This library uses the logging module. To set up logging to standard output, put

import logging
logging.basicConfig(level=logging.DEBUG)

at the beginning of your script.

Disclaimer

Contributing

Contributions are always welcome. Please review the contribution guidelines to get started. You can also help by reporting bugs.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

1.0.0 (2018-01-12)

  • First release on PyPI.

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

htheatpump-1.0.0.tar.gz (43.8 kB view hashes)

Uploaded Source

Supported by

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