Skip to main content

diematic-modbus

CI PyPI

Read temperatures, check what your heating is doing, and change supported settings on a De Dietrich Diematic boiler from Python.

This is a library for building your own tools, not a heating-control app or an installable Home Assistant integration. It also includes a test script: you can help check compatibility with your boiler without writing Python.

Features

Feature Read Change
Boiler operation Temperatures, water pressure, fan speed, burner and pump status, experimental fault codes No direct burner or pump control
Room heating Room temperatures, temperature targets, heating modes and heating-curve settings Day, night and frost-protection targets, heating mode, heating-curve slope
Hot water Tank temperature, day/night targets and operating mode Day/night targets and automatic or comfort mode
Weekly schedules On iSystem: heating program P4, hot-water and auxiliary schedules, and which heating program is selected On iSystem: write P4, hot-water and auxiliary comfort periods one day at a time. No program selection
Seasonal settings Summer/winter changeover temperature and boiler temperature limits Changeover temperature, and boiler limits through the base layout
Installer information On iSystem: calibration, tuning parameters and additional diagnostic codes Read-only
Identity and clock Reported type code, controller/software code, date and time iSystem clock setting verified on the test boiler. Base-layout clock setting is implemented but untested on a base-layout boiler

Availability depends on the control panel and fitted equipment. A heating circuit is one of the separately controlled parts of the heating system, labelled A, B or C on the panel. A target is the temperature you ask for, not a temperature measured by a sensor. Day/comfort and night/reduced refer to the panel's temperature settings, not necessarily the time of day.

Choose your next step:

  • Test your boiler: run the script, compare its output with the panel, and share what works or looks wrong.
  • Use the Python library: connect from your own application, read values, and make supported changes.
  • Full feature reference: check individual readings, controls, and differences between layouts.

Supported systems

This library reads and changes settings on De Dietrich boilers controlled by a Diematic panel. It supports two register layouts, meaning two ways of addressing the boiler's data: the base layout and the iSystem layout. A register is a numbered place where the controller exposes a reading or setting.

Control panel / data layout Python class Test-script option Coverage
Diematic 3, m3 or D4, base layout Diematic --layout base Circuits A/B and boiler controls, including readings the community maps attribute to an optional DPSM module
Diematic iSystem DiematicISystem --layout isystem Circuits A/B/C, current operating states, weekly schedules, installer settings and diagnostics

The library can detect which layout your panel answers through async_detect() or async_probe(). Transport failures are recorded per probe block as errors rather than treated as absence, and an error on one lane does not prevent detection of the other. When no layout can be confirmed, async_detect() raises DiematicProbeError, which is a Modbus error, with the probe evidence attached.

Diematic Delta panels are not supported.

Hardware families

De Dietrich sold several panel generations. In plain terms:

Panel What it means for you
Diematic 3 An older generation-3 home regulator. Read through the base layout. Not tested by this project, so start read-only and compare with your panel.
Diematic m3 A compact regulator on newer mid-range boilers. Read through the base layout. Not tested by this project either.
D4 / Diematic 4 A controller type code, not a boiler model. Panels reporting D4 answer both layouts, and "Diematic 4" is community shorthand rather than an official De Dietrich product name. The test boiler reports this code.
Diematic iSystem The flagship panel family with three heating circuits, weekly schedules and installer-level detail. Read through the iSystem layout.

The reported type code, such as D4, does not reliably identify the physical boiler model. Use the boiler's label and the panel name when reporting your installation.

Gateway support

The supported gateway path is the official De Dietrich GTW26, also sold as AD325. It connects Diematic m3 and iSystem panels to a Modbus RTU network. The library talks to the controller behind it and never to the gateway itself, so a direct RS485 connection works too.

Other De Dietrich communication hardware, such as the GTW08 gateway, the DDBox, the AD286 and AD287 interface boards, and VM iSystem cascade modules, is not supported. Their Modbus data is not interchangeable with either layout.

What is supported and verified

Readings are available on both layouts, including temperatures, burner and pump status, heating and hot-water targets and modes, and fault codes. Weekly schedules, current operating states, installer settings and diagnostics are iSystem-only. On the single tested iSystem installation the verified writes are the hot-water and circuit B day targets, circuit B heating modes, one-day circuit B schedule writes and the clock. Circuit C mode writes are implemented but their equivalence is assumed, not installed-hardware proof, and the test installation has no circuit A, so circuit A writes are rejected on that unit. Base-layout writes are implemented. One of them, the hot-water pump delay, passed a live write, readback and restore through the iSystem test installation, but no base-layout write has been tested on a base-layout boiler. Holiday mode and program selection are read-only on both layouts.

Hardware validation so far comes from one iSystem installation, so reports from other panels are welcome. The test boiler answers both layouts. They overlap, but neither contains everything the other does. For example, the base layout includes solar temperatures and kW power readings, while iSystem exposes percentage power readings instead.

Test your boiler

The main way to contribute is to run scripts/read_diematic.py and compare its readings with your control panel. Successful results from another installation are useful too. You do not need to understand register numbers or write a program.

Before you start

You need Python 3.14 or newer, uv, a copy of this repository, and a working connection to the controller's Modbus port.

The script supports plain Modbus TCP, RTU-over-TCP serial servers, and direct serial adapters. A bare HOST:PORT target names a serial-over-TCP gateway, such as a Waveshare RS485-to-TCP adapter. The script rewrites it to socket://HOST:PORT with --transport serial, so older examples that passed a bare host and port now reach the serial framing those gateways need. Plain Modbus TCP is not the default, so use an explicit tcp://HOST:PORT target for it. An RTU-over-TCP server needs --transport serial --framer rtu and a socket:// target. You need the gateway's address and port, or your serial adapter's device path, plus the controller's Modbus address.

Download and extract this repository, or clone it:

git clone https://github.com/DaanVervacke/diematic-modbus.git
cd diematic-modbus

Run the following commands from that repository folder. uv run --extra cli installs the project's dependencies and the Modbus backend needed by the script. You do not need to install this package globally.

Run a read-only test

For an iSystem panel behind a serial-over-TCP gateway, such as a Waveshare RS485-to-TCP adapter:

uv run --extra cli scripts/read_diematic.py 192.168.1.50:502 --unit 10 --layout isystem

A bare HOST:PORT is rewritten to socket://HOST:PORT with --transport serial. Replace 192.168.1.50 and 502 with your gateway's address and port. Serial-over-TCP gateways often use a port other than 502, so check your adapter's setting. Replace 10 if your controller uses a different Modbus address. These are examples, not values the script can discover for you.

For a plain Modbus TCP gateway, use an explicit tcp:// target:

uv run --extra cli scripts/read_diematic.py tcp://192.168.1.50:502 --unit 10 --layout isystem

For an RTU-over-TCP serial server, use a socket:// target and RTU framing:

uv run --extra cli scripts/read_diematic.py socket://192.168.1.50:502 --transport serial --framer rtu --unit 10 --layout isystem

Use --layout base for the Diematic 3/4 base layout. On an iSystem, use --layout both to compare both sets of readings. The script reads the base layout first, then iSystem. This does not switch anything on the boiler.

For a serial adapter, replace /dev/ttyUSB0 with its device path:

uv run --extra cli scripts/read_diematic.py /dev/ttyUSB0 --transport serial --unit 10 --layout isystem

Serial defaults are 9600 baud, 8 data bits, no parity, and 1 stop bit. Match them to your installation using --baudrate, --bytesize, --parity, and --stopbits when necessary. To see all options:

uv run --extra cli scripts/read_diematic.py --help

For read-only investigation of candidate registers, repeat --raw-range with the start address and word count. The command prints hexadecimal holding words without decoding them or writing to the controller:

uv run --extra cli scripts/read_diematic.py 192.168.1.50 --port 502 \
  --unit 10 --layout isystem \
  --raw-range 507 4 --raw-range 309 39

For presence diagnostics, add --check-presence. It prints, per circuit, the sensor readings behind the presence flag and why the circuit was marked present: forced, the first live sensor reading, or all readings at their sentinel values. It is read-only.

--variant 3 or --variant 4 affects only the library's base-layout heating and hot-water mode changes. It does not select the layout and has no effect on this read-only test. The script defaults to variant 3 and layout base.

Compare with the panel

The script reads once, prints tables, and exits. It writes nothing unless you explicitly add --probe-write.

  1. Check for warnings or errors before trusting the values. A failed group can show missing or older values, including an empty schedule.
  2. Compare outdoor, boiler, room and hot-water temperatures with the panel. Compare measured temperatures with measurements, and targets with targets.
  3. Check the day/night targets and modes for the circuits you actually have. The circuit_*_present flags mean that at least one live circuit reading is available, such as a room, calculated, supply or limit temperature. False does not prove the heating circuit is absent.
  4. On iSystem, compare the displayed heating schedules with P4, even if the panel currently runs P1, P2 or P3. Check the hot-water schedule too. The script displays the end of a day as 24:00.
  5. Rerun the script after a panel change if you want a new comparison. Schedules and installer settings are saved after their first successful read within each library instance, rather than refreshed on every poll.

A missing value is not automatically a bug: some sensors or modules may not be fitted. An empty comfort schedule does not mean the boiler is powered off. Installer and diagnostic numbers without a clear label or unit should be reported as shown, not interpreted as a temperature or an error.

If a read fails

Check the address, port, controller address and connection settings. A busy RS485 bus can cause timeouts, so rerun the read-only command before concluding that a value is unsupported. --timeout 20 allows 20 seconds per request instead of the default 10. Neither option fixes incorrect wiring or framing.

For troubleshooting, add --debug to the same command. It enables connection and backend debug logging alongside the normal output. The backend may log connection lifecycle, timeout, and transport details, but it does not guarantee raw frame dumps. For example, this saves both in a text file:

uv run --extra cli scripts/read_diematic.py 192.168.1.50 --port 502 --unit 10 --layout isystem --debug > diematic-read.txt 2>&1

The script exits with status 0 when all requested reads and any requested write check succeed. It returns 1 for connection or read failures, partial reads, or a write check that fails, mismatches, or is skipped. Invalid command arguments return 2. Partial reads still print the available values.

A successful read does not prove every value is understood or every sensor is fitted. If a mode appears as a number rather than a name, include it and the panel's displayed mode in your report. The library keeps unknown mode codes for investigation.

Share your results

Open an issue in this repository with:

  • The boiler model from its label, panel name, and reported type/software codes. A photo of the panel can help identify the controller.
  • Which circuits and optional modules are fitted, and which have room sensors.
  • Your adapter or gateway model, its connection settings, and the command used. Replace private addresses or device paths if you prefer.
  • The script output, with any --debug output and traceback when a read fails.
  • A few specific comparisons, such as "circuit B night target: panel 17 °C, script 17.0 °C," plus any differences. Say what you could not check.
  • The code version you ran. git rev-parse HEAD gives the commit if you cloned the repository. For a downloaded archive, give its branch/tag and date.

Review logs and photos before posting. Remove personal details, serial numbers, and network information you do not want to publish. Do not clear faults or change installer settings just to collect evidence.

Optional: check whether a write is accepted

Only after a successful read and panel comparison, you can add --probe-write to your command. All requested layouts must read successfully before the check proceeds. It refreshes the hot-water data immediately before writing, resubmits the current day target, then reads it back. With --layout both, the write check uses iSystem only, but a partial read in either layout prevents the write.

This is a real write, not a simulation or a test of every control. The normal write rules round the request to whole degrees and limit it to 10 to 80 °C. If those rules would change the target, or the target is missing, the script skips the write and returns status 1. A failed refresh also prevents the write. Even a matching readback does not prove that a different target would be accepted and kept. Avoid changing the target on the panel while it runs. Check the panel afterwards and restore the original setting if it changed. The script has no separate restore step, and a panel change between the final read and write can still race with the probe. Include its result in your report if you choose to run it.

Use the Python library

The package requires Python 3.14+. Install it from PyPI into your application's virtual environment:

pip install "diematic-modbus[cli]"

The cli extra includes the tmodbus backend used below. If your application already provides a Modbus connection, pip install diematic-modbus installs the library without choosing a backend. To work from a local checkout instead, use pip install -e ".[cli]".

The library is built on modbus-connection. Your application creates and closes the connection, then passes a ModbusUnit to the regulator. The regulator does not own the connection or start background polling. It has no Home Assistant dependency.

Detect the layout

Use async_probe() when you only need a ready Diematic or DiematicISystem object:

from diematic_modbus import async_probe

boiler = await async_probe(conn.for_unit(10))
await boiler.async_update()

Use async_detect() when you also need the raw type code, selected variant, layout, raw identity words, or probe errors. Its result keeps the base and iSystem probe blocks separate. Failed detection raises DiematicProbeError with the partial result attached as .detection.

The base identity probe reads registers 3-6, 108-110, and 457. The iSystem identity probe reads 600 and 679-684. Unsupported address and function responses mean that a layout is not present. Connection, timeout, protocol, gateway, and device errors are recorded per probe block as errors, and a lane whose blocks all succeeded can still be detected when the other lane fails.

Read values

This example reads an iSystem through an RTU-over-TCP serial server: the device is a socket:// URL, and the line uses RTU framing. Replace the example connection settings before running it. It does not change settings:

import asyncio

from modbus_connection import ModbusSerialParams
from modbus_connection.tmodbus import ModbusConnection

from diematic_modbus import DiematicISystem


async def main() -> None:
    params = ModbusSerialParams(device="socket://192.168.1.50:502", framer="rtu")
    conn = ModbusConnection(params, message_spacing=0.05)
    try:
        boiler = DiematicISystem(conn.for_unit(10))
        report = await boiler.async_update()
        if report.complete:
            print("Outdoor temperature:", boiler.sensors.outdoor_temp)
            print("Hot-water temperature:", boiler.hot_water.temp)
        else:
            print("Could not refresh:", report.failed)
    finally:
        await conn.close()


asyncio.run(main())

If the layout is already known, use Diematic(unit, variant=DiematicVariant.DIEMATIC_3) or DIEMATIC_4, importing both names from diematic_modbus. A plain Modbus TCP gateway uses ModbusTcpParams(host="192.168.1.50", port=502) without a framer. A direct serial connection uses ModbusSerialParams(device="/dev/ttyUSB0").

Read values through sensors, hot_water, circuit_a, circuit_b, settings, and identity. iSystem also has circuit_c, schedules, config, and diagnostics. The feature reference below lists their field names. A known absent-sensor value becomes None. Faults return a known label, an unknown numeric code, or None for no fault.

Known modes return enum members. The observed holiday code 33 returns HeatingMode.HOLIDAY. Other unknown heating, hot-water and current-state codes return integers containing only that mode's bits, not the entire shared register. They remain readable and do not count as a failed read. Use async_read_raw() if you need the full register value.

Refreshing and handling failures

Call async_update() whenever you need a new reading. If a combined read is refused, the library retries the groups individually. A group that still fails keeps its previous values and appears in report.failed. Successfully refreshed groups appear in report.updated. A connection failure raises ModbusConnectionError rather than returning a report.

On iSystem, config and each of the five schedules are read until they succeed, then cached for the lifetime of the regulator object. They are omitted from later reports. report.complete means no reported read failures in that call, not that every value is new. Create a new regulator object over the same unit to reread cached settings and schedules after panel edits.

The circuit_*_present properties report whether the library found a live circuit reading. Depending on the layout, that evidence can come from a room, calculated, supply, or limit-temperature field. Constructor options such as force_circuit_b=True override that flag only. They do not add hardware support or change which registers are read or written.

For debugging, async_read_raw() reads the registers mapped by the library and returns them without decoding, though the saved field values can still be refreshed as a side effect. It includes cached groups but is not a scan of every address the boiler might support.

Change settings

The following calls belong inside an async function with an existing boiler object. They send real changes. Read and record the original settings first, use values appropriate for your installation, then reread and check the panel. Restore the originals when testing.

from diematic_modbus import HeatingMode, HotWaterMode

await boiler.circuit_b.write("day_target", 20.0)
await boiler.hot_water.write("day_target", 55.0)
await boiler.set_circuit_b_mode(HeatingMode.AUTO)
await boiler.set_hot_water_mode(HotWaterMode.AUTO)

Use write() for writable numeric fields and set_*_mode() for modes. Heating and hot-water modes share storage, so the mode methods preserve the other setting's bits. Mode changes are serialized internally, but sequential calls are simpler to reason about. The setters still attempt a write if a circuit's presence flag is false, and a boiler can reject a write or fail to retain it.

Holiday mode is read-only: set it on the panel. Passing HeatingMode.HOLIDAY or an unknown mode code to a mode setter raises ValueError before any Modbus request. Reading a code does not make it a supported write value.

Most numeric controls round to a supported step and clamp to the library's limits, listed below. Base-layout boiler minimum/maximum limits have no such range validator. These are not safety guarantees or recommendations for your installation.

Work with schedules

On iSystem, boiler.schedules.get_week("circuit_b_p4") returns a dictionary keyed by weekday, 1 for Monday through 7 for Sunday. Each day contains pairs of datetime.time values for its comfort periods, in half-hour steps. For example, Monday might contain [(time(6, 0), time(8, 0))]. boiler.schedules.get_day("circuit_b_p4", 1) returns one weekday only.

An interval ending at time(0, 0) runs to the end of that day. An all-day period is (time(0, 0), time(0, 0)). An empty list means no comfort periods only after a successful read. Before then, missing days also appear empty. Check the initial update report before interpreting a schedule.

The other schedule names are circuit_a_p4, circuit_c_p4, hot_water, and auxiliary. Each schedule is reported separately, for example as schedules.circuit_b_p4 in report.updated or report.failed. boiler.circuit_b.program separately reports the selected program, 1 to 4. Reading the P4 schedule does not mean P4 is selected.

To change a schedule, write one weekday at a time through the program bundle:

from datetime import time

await boiler.schedules.set_day(
    "circuit_b_p4", 1, [(time(6, 0), time(8, 0)), (time(16, 0), time(22, 0))]
)

set_day takes the schedule name, weekday, and the same list of datetime.time pairs that a read returns. It writes that day's three registers. An interval ending at time(0, 0) runs to the end of the day, and an empty list clears the day. This edits the stored P4 program, which drives the boiler only while P4 is the selected program. Program selection is not writable, so set P4 at the panel if it is not already active.

To change a whole week, call set_day once per weekday. The boiler wraps any write wider than one day, so there is no single-call week write.

Full feature reference

These tables describe the implementation, not a promise that each reading or write works on every installation. Both means the base and iSystem classes expose the feature. Field names are included to help match script output to Python usage. Unless listed as a control, a value is read-only.

Temperatures and boiler operation

Reading Layout Python field(s)
Outdoor, boiler, return-water and flue-gas temperatures Both sensors.outdoor_temp, boiler_temp, return_temp, smoke_temp
Mean outdoor temperature Both sensors.mean_outside_temp
Primary boiler temperature Base settings.primary_boiler_temp
Boiler's calculated temperature target Both sensors.calc_boiler_temp
Secondary calculated temperature target iSystem sensors.secondary_calc_temp
Circuit A supply temperature iSystem circuit_a.supply_temp
Auxiliary 1, auxiliary 2 and universal input temperatures iSystem sensors.auxiliary_1_temp, sensors.auxiliary_2_temp, sensors.universal_temp
Additional outdoor reading from the boiler bus Base sensors.outdoor_temp_bus
Additional boiler temperature from the DPSM module Base sensors.boiler_temp_dpsm
Water pressure (bar), fan speed (rpm), flame-sensing current (µA) Both sensors.water_pressure, fan_speed, ionization_current
Instantaneous boiler output, reported as percentage iSystem sensors.instant_power
Burner and hot-water pump status Both sensors.burner_on, hot_water_pump_on
Burner starts and burner operating hours, matching the panel iSystem sensors.burner_starts, sensors.burner_runtime
Reported pump output (%) Base sensors.pump_power
Instantaneous and average power (kW) Base sensors.instant_power, sensors.average_power
Solar and solar-tank temperatures Base sensors.solar_temp, solar_tank_temp
Fault label or unknown fault number Both sensors.alarm
Raw sensor-fault bitmap Base sensors.sensor_faults

The iSystem burner counters come from registers 251 and 252. Register 251 counts starts in steps of 4, so the library multiplies it by 4. On the test boiler this gave 44224 starts and 29298 hours, the same values the panel shows as BR.STARTS and BR.UREN in #MEASURES (Dutch #METINGEN). The second-stage counters 253 and 254 are not exposed because they returned a different value on every read.

Fault readings are not reliable on the test iSystem installation: register 465 can return data left over from a previous reply, producing either a false fault or an apparent no-fault value. Do not use sensors.alarm alone for fault notifications or assume that None confirms a healthy boiler. Check the control panel instead.

The official GTW26 M3 list gives two different code tables for register 465, one for M3-GT and one for C230. sensors.alarm decodes with the M3-GT column (MODULENS_FAULTS), where 0x0000 is a sensor fault. In the C230 column (C230_FAULTS), 0x0000 means no failure and codes up to 0x003A are defined. Which column an iSystem follows is not verified. To decode with the C230 table, read the raw word through async_read_raw() and look it up in C230_FAULTS.

Temperatures are in °C. The averaging period for power is not defined by the library. Pump and burner status are controller-reported states, not independent proof of water flow or combustion. There is no energy-total, fuel-consumption, or direct pump/burner control API.

The iSystem sensors.instant_power field uses register 613. During a forced heating run on the test boiler it rose from 0 to 52 along with the fan speed and returned to 0 when the burner stopped. Register 503, listed as POWER % in the official GTW26 M3 list, returned the same value at every sample, so it is not exposed separately. It has not been compared with a panel percentage.

The official list limits one read to 40 registers. The library reads up to 55 iSystem and 60 base-layout registers per request, and a 55-register read returned the same values as two shorter reads on the test boiler. The list's derogation annex marks bits 6 and 7 of the mode registers as unused, while the library decodes bit 6 as hot-water mode and bit 7 as the all-circuits flag from earlier panel comparisons.

Heating and hot water

Circuit fields below belong to circuit_a, circuit_b, or circuit_c. The base layout has A/B only, while iSystem has A/B/C.

Reading Availability Field(s)
Room temperature and calculated circuit temperature target Every exposed circuit room_temp, calc_temp
Day, night and frost-protection targets Every exposed circuit day_target, night_target, antifreeze_target
Requested heating mode Every exposed circuit mode
Current day, night or frost-protection state iSystem A/B/C active_mode
Whether the requested heating override has no end time iSystem A/B/C permanent_derogation
Reported all-circuits override flag iSystem B/C all_circuits_derogation
Selected heating program, P1 to P4 iSystem A/B/C program
Heating pump status A/B on both layouts, not C pump_on
Mixing-valve direction commands iSystem B only valve_opening, valve_closing
Water supply temperature B on both layouts supply_temp
Heating-curve slope and room-sensor influence setting Every exposed circuit slope, ambient_influence
Circuit minimum/maximum temperatures Base B, iSystem B/C min_temp, max_temp
Circuit A minimum/maximum temperatures iSystem, cached, writable config.zone_a_min, config.zone_a_max
Hot-water temperature, requested mode and day/night targets Both hot_water.temp, mode, day_target, night_target
Hot-water loading priority Base read-only, iSystem writable hot_water.priority
Hot-water pump run-on after heating stops (min) Both, writable hot_water.pump_delay
Additional hot-water temperature from the DPSM module Base hot_water.temp_dpsm
Current hot-water operating state iSystem hot_water.active_mode

Base hot_water.priority uses the documented low-plane register 60 values 0 for total, 1 for sliding, and 2 for none. It is read-only and has not been panel-verified across every base-layout generation.

The heating curve describes how the controller adjusts heating temperature as outdoor temperature changes. Room-sensor influence is returned as a number, without a percentage interpretation. Requested mode and current active_mode are different: automatic mode can currently be running either the day or night setting.

permanent_derogation returns True for permanent day/night overrides (7/7 on the panel), False for automatic mode and temporary day/night overrides, and None before a read or for antifreeze, holiday, and unknown modes whose override semantics have not been verified. Hot-water overrides do not affect this value. Permanent means there is no scheduled end to the override, not that the burner runs continuously.

circuit_b.valve_opening and valve_closing are read-only Boolean flags: True means the corresponding direction is commanded, False means it is not commanded, and None means no value has been read yet. They expose bits 1 and 0 of register 428 independently. Neither flag measures valve position or proves physical movement. No derived stopped or fully-open/closed state is provided. After a failed refresh, check the update report for stale values.

Controls and accepted values

Limits here are enforced by the library. The boiler may impose additional restrictions. Writable values can also be read.

A write returns as soon as the GTW26 acknowledges it. The new value can take a few seconds to appear, and the gateway drops some writes silently while still acknowledging them. Read the value back after about 10 seconds before relying on it. The official list describes read exceptions 6 and 11 while a write is pending, but the test boiler never returned them and simply reported the old value until the new one landed.

Control Base layout iSystem Field or method
Heating day/night target A/B: 5 to 30 °C, 0.5 °C steps A/B/C: day 10 to 30 °C, night 5 to 30 °C, 0.5 °C steps circuit_*.write("day_target", value) or "night_target"
Heating frost-protection target A/B: 5 to 30 °C, 0.5 °C steps A/B/C: 3 to 20 °C, 0.5 °C steps circuit_*.write("antifreeze_target", value)
Heating-curve slope A/B: 0 to 4, 0.1 steps A/B/C: 0 to 4, 0.1 steps circuit_*.write("slope", value)
Heating-circuit minimum/maximum flow temperature Read-only B/C: minimum 10 to 30 °C, maximum 50 to 95 °C, 0.5 °C steps circuit_*.write("min_temp", value) or "max_temp"
Heating mode A/B A/B/C set_circuit_a_mode(), set_circuit_b_mode(), set_circuit_c_mode()
Hot-water day/night target 10 to 80 °C, 1 °C steps Same hot_water.write("day_target", value) or "night_target"
Hot-water mode Yes Yes set_hot_water_mode()
Summer/winter changeover temperature 15 to 30.5 °C, 0.5 °C steps Same settings.write("summer_winter_temp", value)
Circuit A minimum/maximum flow temperature Read-only Minimum 10 to 50 °C, maximum 20 to 120 °C, 0.5 °C steps config.write("zone_a_min", value) or "zone_a_max"
Heating anticipation time Not available A/B/C: 0 to 10 h, 0.1 h steps config.write("anticipation_a", value)
Hot-water loading priority Read-only HotWaterPriority.TOTAL, SLIDING or NONE hot_water.write("priority", value)
Hot-water pump run-on Writable, no library range limit 0 to 15 min hot_water.write("pump_delay", value)
Building inertia and mixing-valve bandwidth Read-only Inertia 0 to 10, bandwidth 4 to 16 K in 1 K steps config.write("building_inertia", value) or "bandwidth"
Heating pump run-on Not available 0 to 15 min settings.write("heating_pump_delay", value)
Night-period behaviour Not available NightMode.STOP (heating off) or DECREASE (reduced temperature) settings.write("night_mode", value)
Boiler minimum/maximum temperature Writable, no library range limit Read-only settings.boiler_min, settings.boiler_max
Date and time set_clock(datetime), untested on a base-layout boiler set_clock(datetime), verified on the iSystem test boiler set_clock()

circuit_* in this table means the appropriate circuit name, not literal Python syntax. Both layouts also read the clock and reported type code from identity. The base layout reads identity.controller, while iSystem reads identity.software_version. Clock fields are hour, minute, weekday, day, month, and year, returned as integers rather than a combined datetime. A reported year of 26 stays 26. The external frost-protection threshold is available as settings.ext_frost_threshold on the base layout. It is writable from 0 to 10 °C, but the write has not been verified on a base-layout boiler. On iSystem the same register 9 is read-only settings.outdoor_antifreeze. The official list says only positive values are valid when writing, and the test boiler acknowledged writes near its current -5.0 °C but kept the old value.

The iSystem writes to circuit A limits, anticipation, hot-water priority and pump run-on were each tested on the test boiler by writing a nearby value, reading it back and restoring the original. Circuit A limits were accepted even though circuit A is not installed there. Writing a config field refreshes the cached config values on the next update.

The test boiler ignored writes to minimum burner run time (269), burner delay (271), generator pump run-on (272), boiler maximum (678) and the auxiliary input and output types (741, 744), so those stay read-only. On that boiler 269 is in seconds and 272 counts in 2-minute steps, which differs from the official list. Circuit types (296, 297, 360) accepted writes but stay read-only because a wrong value changes the declared hydraulic layout. Register 263 reads 5 on a panel set to Dutch, while the official list says 5 is Spanish, so settings.language is not trusted for decoding and is not writable. An anticipation raw value of 101 means off and reads as None. Writing it is not supported.

Supported mode values:

Purpose Python enum values
Heating follows its schedule HeatingMode.AUTO
Temporary day or night override HeatingMode.TEMP_DAY, TEMP_NIGHT
Persistent day or night override HeatingMode.PERM_DAY, PERM_NIGHT
Heating frost protection HeatingMode.ANTIFREEZE
Reported holiday state, read-only HeatingMode.HOLIDAY
Hot water follows its schedule HotWaterMode.AUTO
Temporary or persistent hot-water comfort override HotWaterMode.TEMP, PERM
Reported current operating state, iSystem only ActiveMode.DAY, NIGHT, ANTIFREEZE

Temporary overrides have no duration argument. The library cannot set their end time. These modes are not a general power on/off switch, and not every enum value has been checked on hardware.

Schedules

Schedule reading Availability Python property
Heating program P4, Monday to Sunday iSystem A/B/C schedules.circuit_a_p4, circuit_b_p4, circuit_c_p4
Hot-water comfort periods, Monday to Sunday iSystem schedules.hot_water
Auxiliary comfort periods, Monday to Sunday iSystem schedules.auxiliary

All five are cached after a successful read. Each is writable one day at a time through schedules.set_day("<name>", weekday, periods), verified on the test boiler (circuit B, plain per-day three-register writes). Heating programs P1, P2 and P3 cannot be read or written as weekly schedules through this library. Selecting which program is active is not implemented.

Output states

On iSystem, outputs refreshes on each update and exposes the raw primary (474), secondary (475) and boiler-state (735) words as primary, secondary and boiler_state, plus these decoded bits:

Output Field within outputs
Burner stage 1 firing burner_stage_1_on
Hydraulic valve closing hydraulic_valve_close
Boiler pump running boiler_pump_on
Secondary pump running secondary_pump_on
Hot-water, circuit A/B/C and auxiliary 1 to 3 pumps, circuit valve commands, phone output dhw_pump_on, circuit_*_pump_on, circuit_*_valve_open, circuit_*_valve_close, auxiliary_*_pump_on, phone_output_on

The first four bits were watched on the test boiler during a forced heating demand: burner_stage_1_on followed sensors.burner_on exactly, and the boiler pump stayed on during its run-on after the burner stopped. Burner stage 2, the hydraulic valve open bit and the cascade and circuit-off boiler-state bits never changed on this single-stage, single-boiler installation, so they are not decoded. Read them from the raw words if needed.

Installer settings and diagnostics

These additional iSystem readings help compare installations and investigate the remaining register meanings. They are not installer controls.

Most fields in the following table belong to config and are cached. Names follow the source register maps. Where units or meanings have not been established, the library leaves them as numbers rather than inventing an explanation.

Information Fields within config
Automatic adjustment values for A/B/C autoadapt_a, autoadapt_b, autoadapt_c
Language code and building-inertia setting settings.language, config.building_inertia
Control bandwidth and mixing-valve adjustment bandwidth, three_way_valve_shift
Minimum burner run time (s), burner delay and generator pump run-on (min) min_running_time, burner_temporisation, pump_postrun
Outdoor and A/B/C room-temperature calibration (°C) outside_calibration, zone_a_calibration, zone_b_calibration, zone_c_calibration
A/B/C anticipation time in hours, writable anticipation_a, anticipation_b, anticipation_c
Day/night values labelled "footprint" in the source maps, meaning not yet verified footprint_a_day, footprint_a_night, footprint_b_day, footprint_b_night, footprint_c_day, footprint_c_night
A/B/C circuit type codes circuit_a.circuit_type, circuit_b.circuit_type, circuit_c.circuit_type
Circuit A minimum/maximum temperatures (°C, writable) and maximum fan speed (rpm) zone_a_min, zone_a_max, max_fan_speed
Mixing-valve temperature adjustment (°C) and bandwidth three_way_valve_temp_shift, three_way_valve_bandwidth
Calculated target (°C) and reported modulated power (%) config.calc_setpoint, config.modulated_power

The following diagnostics fields refresh on each update. Except for aux_active_mode, dhw_priority, and the unverified auxiliary_*_type community-map enums, they are raw numbers, not decoded explanations or Boolean fault flags. The auxiliary type decode has not been compared with the panel. Auxiliary 1 uses AuxiliaryType and auxiliary 2 and 3 use AuxiliaryOutputType, because the official list numbers their options differently. VM_PUMP follows the official label "VM PUMP" and its hardware meaning is not verified.

Information Fields within diagnostics
Boiler operating-mode code boiler_active_mode
Hot-water loading priority, decoded as HotWaterPriority (total, sliding or none) dhw_priority
Auxiliary current operating state, decoded as ActiveMode aux_active_mode
PCU controller state, substate, blocking and lockout codes pcu_state, pcu_substate, pcu_block, pcu_lock
Auxiliary 1 input function (AuxiliaryInput) and auxiliary type codes auxiliary_1_input, auxiliary_1_type, auxiliary_2_type, auxiliary_3_type

Known limits

  • Fault register 465 can contain leftover response data on the test iSystem. The library still exposes its decoded value, but cannot tell whether it is a real fault. This has not been checked on other controller types.
  • Holiday mode can be read, but cannot be requested through the library. Holiday dates and durations remain panel-only. The decoded value 33 comes from an observation on the test iSystem installation, not a new hardware test of every panel type.
  • Solar and exchanger readings were not added to the iSystem class because the test installation's solar module reported a fault and the readings were unreliable. Base-layout solar fields remain available, not verified.
  • Reading an installer or diagnostic number successfully does not confirm its physical meaning, scale, or unit. Panel comparisons are still needed.
  • Manual pages confirm panel concepts, units, ranges and option gates. They do not by themselves confirm Modbus addresses, coefficients, sentinels, masks, function codes, or write acceptance.
  • Register 604's scale remains unresolved: the S500 m3/3/4 table gives a whole-degree coefficient, while the current iSystem decoder uses tenths. Registers 621, 623, 640, and 674 also remain generation- or hardware-qualified.
  • Registers 465 and 435 are investigation-only on this installation. Previous- response data can contaminate isolated reads. Register 428 exposes valve command directions, not physical valve position.
  • The raw D4 value is a controller/type code, not a chassis identity. Do not transfer Delta, GTW08, or GTW26 register meanings into the base or iSystem classes.
  • The complete iSystem metingen page on the test panel had no entries matching the optional auxiliary temperatures or Circuit A supply temperature. Those sensors are unavailable on this installation.
  • There is no fault-reset command or automatic discovery of fitted circuits and modules. Schedules are writable one day at a time, but there is no program-selection control.

Notes for register-map contributors

The test boiler accepts writes using Modbus function code 16, including single-value writes. Function code 6 timed out. Numeric writable fields use force_fc16=True for that reason.

Mode changes preserve shared heating/hot-water bits. The base layout uses 17 for A and 26 for B, and mirrors the hot-water mode into both: the boiler rejects a hot-water write to 17 alone, so the base layout reads both, then writes both back with each register's own heating bits preserved. iSystem uses 653/659/667 for A/B/C, with hot water controlled through 659 only. Register 640 reports the current hot-water state, not its requested mode. Only base-layout Diematic 4 requests a panel refresh. Never read refresh register 13 back: on the test boiler it returned the first word of the previous response.

The test boiler answers two lanes on one wire: a console/native lane with registers such as 17, 26 and 384-470, and a GTW26-facing lane with registers 600 to 685. The lanes share encodings but their address meanings are proven only per lane, so register meanings must not be merged across lanes or imported from the M3, GTW08 or VM documents.

Read-only checks on 2026-09-05 found similar behavior at alarm register 465: reading 70-110 followed by 427-465 returned 5 as the alarm, matching register 108 (day of month) at offset 38 in the preceding response. Reading 650-673 followed by 451-472 returned 200, matching register 664 at offset 14. Both sequences repeated twice. A single-register read of 465 likewise returned 220 after register 8 and 24 after register 457. These were comparisons between raw replies, not confirmations of panel faults. Do not treat a different request range as a fix or filter those particular numbers out: they may be legitimate fault codes on other controllers.

Keep schedule reads to one day, three registers per request. Longer reads returned a different internal format on the test boiler. Program selection uses registers 231 to 233. The circuit A panel comparison produced 0x2000, 0x2015, 0x2007, and 0x200E for P1, P4, P2, and P3 respectively.

When proposing a register or decoder, cite the source and include the raw value, script output, and panel value if available. For write tests, choose a safe setpoint, record the original, write, read back, compare with the panel, and restore the original every time. Do not probe unknown addresses with writes.

For code contributions, the tests use a mock Modbus device and need no boiler. Run these checks from the repository root:

uv run pytest
uv run ruff check
uv run ruff format --check
uv run mypy

Credits

The register knowledge comes from other people's reverse engineering and the De Dietrich register sheet, with further checks on the test boiler:

Release files for diematic-modbus 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for diematic-modbus 0.9.0
File Size Uploaded
diematic_modbus-0.9.0.tar.gz 120.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for diematic-modbus 0.9.0
File Interpreter ABI Platform
diematic_modbus-0.9.0-py3-none-any.whl Python 3 none any Details

Total release size: 158.6 kB

Release files / diematic_modbus-0.9.0.tar.gz

Download URL diematic_modbus-0.9.0.tar.gz
Size 120.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3fca3a26a7ba2c334be06693b2c45051b97e4d475fea6c5a716231cd2b26f98c
BLAKE2b-256 checksum
How to use checksums
39f1a9126c00e42e4e31a8f847d2f31a75e2775af209c2ff2a7f92e5489d3e44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release files / diematic_modbus-0.9.0-py3-none-any.whl

Download URL diematic_modbus-0.9.0-py3-none-any.whl
Size 38.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e9a14a9ab18b82684c0686d4aae69ee89c46a822f88bf14240186905c8cd0f9
BLAKE2b-256 checksum
How to use checksums
7f1f107f53e0cc0944036f659582a3de9238c5fb5ae5a9eff76258f6209f23a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.9.0 This release

2 release files

0.8.0

2 release files

0.7.11

2 release files

0.7.10

2 release files

0.7.9

2 release files

0.7.8

2 release files

0.7.7

2 release files

0.7.6

2 release files

0.7.5

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page