Skip to main content

A Python library for accessing Remeha heating systems via Modbus TCP (GTW-08 gateway)

Project description

remeha_modbus

Python library for accessing Remeha heating systems via Modbus TCP (GTW-08 gateway).

Designed to be used standalone or as the backend for a Home Assistant custom integration.

Features

  • Async Modbus TCP client based on pymodbus
  • Full register definitions from the GTW-08 parameter list
  • Automatic value scaling (gain) and signed integer handling
  • Invalid value detection (returns None for disconnected sensors)
  • Support for all 12 heating zones
  • Read/Write access for configurable parameters

Supported Registers

Chapter Description Addresses
System Discovery Device info, zone count 128 - 200
Main Controller Setpoints, temperatures, status 256 - 352
Appliance Temperatures, pressures, counters 384 - 503
Maintenance Service info, error codes 512 - 551
Zones (1-12) Per-zone temps, setpoints, programs 640 - 6783

Installation

pip install remeha_modbus

Or for development:

git clone https://github.com/klacol/remeha-modbus.git
cd remeha-modbus
pip install -e ".[dev]"

Usage

import asyncio
from remeha_modbus import RemehaModbusClient

async def main():
    client = RemehaModbusClient(host="192.168.1.100", port=502, slave_id=1)
    await client.connect()

    # Read all appliance sensors
    data = await client.read_appliance()
    print(f"Vorlauftemperatur: {data['flow_temperature']} °C")
    print(f"Wasserdruck: {data['water_pressure']} bar")

    # Read a specific zone
    zone1 = await client.read_zone(1)
    print(f"Zone 1 Modus: {zone1['zone1_zone_mode']}")

    await client.disconnect()

asyncio.run(main())

Testing

pytest tests/ -v

Tests use mocked Modbus responses so no hardware is needed.

Hardware Setup

Requires a Remeha GTW-08 Modbus gateway connected to the heating system's L-Bus. The gateway provides Modbus TCP access over Ethernet.

  • Set the Modbus address via the GTW-08 rotary switch
  • Default port: 502
  • Supported baud rates: 9600, 19200, 38400, 57600

Reference

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

remeha_modbus-0.1.0.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.

remeha_modbus-0.1.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file remeha_modbus-0.1.0.tar.gz.

File metadata

  • Download URL: remeha_modbus-0.1.0.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for remeha_modbus-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b9258d6f9f63690db8b4860c05f97dab106049f7462c1eafeef57eb35c79ee94
MD5 02f39c4f2211606cf0721b8526dc6cd1
BLAKE2b-256 277712952397f970b5a219e2a3870b317fa1c4541471aa278e4c1e90f2c49b16

See more details on using hashes here.

File details

Details for the file remeha_modbus-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: remeha_modbus-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for remeha_modbus-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e138235807411ea5b05417ce3a8cbb206372625af502eae3e4e02e0eae2f8ad
MD5 783564e43112de0ab701dfa78e67ac17
BLAKE2b-256 c9289e358464de1355166a040324b07e5248d70c4f27f94a89ff165b267ec1b4

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