Skip to main content

A small example package

Project description

A Python Library for the Rego 600 HP controllers

A library for monitoring and controlling a Rego 600 heat pump controller. The Rego 6xx controllers family is used in many heat pumps such as IVT/Bosch/Autotherm/Carrier and others.

Rego 6xx unit contain an interface marked as service. Header of this interface is close to the control unit. This is 5V (TTL) serial interface and is connected by a 9 pin can/d-sub connector.

The library was designed primarily to support the development of a Home Assistant integration.

Installation

The package can be installed from PyPi as usual:

pip install pyrego600

Example Usage

import asyncio

from pyrego600 import HeatPump, SerialConnection


async def hp_example():
    connection = SerialConnection(url="<your HP>")
    hp = HeatPump(connection)

    try:
        print("Connecting to Heat Pump...")
        await hp.verify()
        print("Connected!")

        for register in hp.registers:
            value = await hp.read(register)
            print(f"register {register.identifier} = {value}")
    except Exception as e:
        print(f"Reading registries from Heat Pump failed due {e!r}")
    finally:
        await hp.dispose()


if __name__ == "__main__":
    asyncio.set_event_loop(asyncio.new_event_loop())
    asyncio.run(hp_example())

Clone the repository

git clone https://github.com/crnjan/pyrego600
cd pyrego600

# Create a virtual environment
python3 -m venv .venv
source .venv/bin/activate

# Install dev/project dependencies
pip install -e '.[dev]'

Run the tests

pytest -s
# Lint the code
ruff check --fix
# Format the code
ruff format

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

pyrego600-0.0.3.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

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

pyrego600-0.0.3-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file pyrego600-0.0.3.tar.gz.

File metadata

  • Download URL: pyrego600-0.0.3.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for pyrego600-0.0.3.tar.gz
Algorithm Hash digest
SHA256 2c6756544f0bb0a762a159ce88e504a2e83f3d658760e2b370ac9a3f1d751616
MD5 ae846347e2ff4eb52f9c04f5214c3c06
BLAKE2b-256 6ab2fe144c5b91858302dc1cfb587b7c6af23220d89f4c8b57ba3180a338c6d6

See more details on using hashes here.

File details

Details for the file pyrego600-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pyrego600-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for pyrego600-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 652f99e42531acf7a638b35251dce0af6507501019bdb21552f532b91a758e7c
MD5 8d3b1d39a47d0f5d588c55abe6277552
BLAKE2b-256 c4cc03aaaf4f1b13a196bec3190ae78ed1f7ff300b2b1e0ad6c0ad5fbf60cf9a

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