Skip to content

Heating and OpenTherm

Yurii edited this page Nov 25, 2026 · 6 revisions

Heating and OpenTherm

English · Русский

Choose what the heating target means

The meaning of the target temperature on the Dashboard depends on the selected control mode.

Control mode Target you enter When to choose it
Direct control (default) Heating fluid temperature For a fixed flow setpoint that you adjust manually.
Equitherm Desired indoor temperature To adjust the flow temperature as the weather changes.
PID Desired indoor temperature To adjust heating in response to the measured indoor temperature.
Equitherm + PID Desired indoor temperature To account for both weather and measured indoor temperature. PID corrects the Equitherm result.
Native OTC Desired indoor temperature To let the Slave device choose the flow temperature using its own heating curve.

Circuit options and limits

Heating

The Heating controls on the Dashboard enable the circuit and set its target. The minimum and maximum flow temperatures are under Heating settings.

Max modulation level sets the upper limit on relative modulation that OTGateway sends to the Slave device. For example, with a 60% limit, a boiler that supports this setting can raise burner modulation only to 60%, even when heat demand calls for 100%.

Some models need specific settings for the second circuit (CH2) or the summer/winter signal. Known examples are listed in the settings reported for your Slave device model.

Domestic hot water (DHW)

  1. Enable DHW support under OpenTherm settings. The DHW control will appear on the Dashboard.
  2. Under DHW settings, set the permitted hot water temperature range and the upper modulation limit for this circuit.
  3. On the Dashboard, use DHW to enable the circuit and set the desired hot water temperature.

Temperature limits reported by the Slave device

With Get min/max temp from boiler enabled under OpenTherm settings, OTGateway uses the ranges the Slave device reports for heating and DHW. For example, if you set a heating range of 25–75 °C and the Slave device supports 20–65 °C, OTGateway saves 25–65 °C.

Disabling a circuit

OpenTherm settings → Circuit disabling action determines what OTGateway sends to the Slave device when it disables a circuit. Heating, DHW and the second circuit (CH2) each have their own setting.

Action in the web interface Circuit enable flag Circuit setpoint
Disable circuit only Cleared Normal circuit setpoint
Set the target temperature to 0 Set 0 °C
Disable circuit and set the target temperature to 0 Cleared 0 °C

If the circulation pump stops as soon as the heating flag clears, a set flag with a zero setpoint may allow pump overrun, depending on the Slave device's capabilities.

OpenTherm connection status

Changing the OpenTherm input or output GPIO disconnects the current session and starts communication again. A driver failure also clears the connection status. While disconnected, the Slave device's heating, DHW, CH2 and flame indicators are inactive, and its fault and diagnostic flags and codes are cleared. This means that current status is unavailable; it does not confirm that a fault on the Slave device has been resolved. OpenTherm sensors are marked disconnected until fresh replies arrive.

Heating hysteresis

Heating hysteresis sets 2 indoor temperature thresholds. OTGateway blocks the heating request when the temperature reaches the upper threshold and clears the block when it falls to the lower one. This requires a connected sensor with the Indoor temperature purpose. You can use hysteresis with Equitherm, PID or the Slave device’s native weather compensation (native OTC).

Heating settings → Hysteresis defines how far above and below the indoor target the temperature can move before OTGateway switches the heating request. The example below uses a target of 21 °C and hysteresis of 0.5 °C.

Indoor temperature What OTGateway does
21.5 °C or higher Blocks the heating request. Heating blocked is active on the Dashboard.
Between 20.5 and 21.5 °C Keeps the previous state. If heating was blocked, it stays blocked at 21 °C.
20.5 °C or lower Clears the block. Heating can resume.

Larger hysteresis reduces frequent switching caused by small temperature changes. Smaller hysteresis reduces cooling during a pause. The hysteresis switch disables this function. Setting the value to 0 puts both thresholds at the target temperature.

Direct control

Direct control requires Equitherm, PID and native OTC to be off in OTGateway. The Heating control on the Dashboard sets the flow temperature within the circuit's limits. OTGateway sends this setpoint to the Slave device.

Equitherm

Equitherm adjusts the flow temperature as the weather changes. When the house loses more heat in colder weather, it raises the flow setpoint using the heating curve. When the weather warms up, it lowers the setpoint. Heating can therefore respond to changing heat loss before indoor temperature drops noticeably.

Equitherm needs an enabled outdoor temperature source under Sensors settings, with its purpose set to Outdoor temperature. The curve can run on this reading alone. Indoor correction uses an enabled Indoor temperature sensor and the T factor.

The chart in Settings → Equitherm settings shows the flow temperature OTGateway requests at each outdoor temperature. Any correction from the indoor sensor is applied separately.

Equitherm heating curve with an indoor target of 21 °C

Curve parameters

Web interface setting Default value Effect
Slope 0.7 Compensates for the building's heat loss. Increasing it asks for a higher flow temperature, with a larger change on colder days. This is the main adjustment.
Exponent 1.3 Shapes the curve between mild and cold weather. Suggested starting values are 1.1 for underfloor heating, 1.2 for cast-iron radiators, 1.3 for panel radiators or 1.4 for convectors.
Shift 0 Moves the whole curve up or down. A shift of +1 °C raises the requested flow temperature by 1 °C wherever the curve is within its limits. The indoor temperature will change by a different amount.
T factor 2 Corrects the curve using the measured indoor temperature. At a 21 °C target, an indoor reading of 20.5 °C and a factor of 2 add 1 °C to the flow temperature setpoint. This requires an indoor sensor with PID and Turbo off. The calculation caps the indoor temperature error at ±3 °C.

Tune the curve

Important

The flow temperature limits must remain suitable for your installation, particularly for underfloor heating. Circuit protections must remain enabled.

Preparation

  1. Record your current settings and choose a steady indoor target, for example 21 °C.
  2. Use a regularly occupied space for observation. Place a thermometer away from radiators, sunlight and drafts. Set the radiator valve so it stays open long enough for the comparison.
  3. Enable Equitherm and turn off PID and Turbo. Turn off heating hysteresis during initial tuning so it does not interrupt warm-up.
  4. Choose the exponent for your emitters. Set Shift and T factor to 0. On the Dashboard, check Outdoor temp and confirm that heating is working.

Observe and adjust

A useful comparison covers mild and cold weather with the same indoor target. It includes the slope, shift, outdoor temperature, indoor temperature and Heating setpoint temp on the Dashboard.

Observations usually need at least 1 day after a change. A heavy floor can take several days. Stable indoor temperatures without direct sunlight or a night setback make the results easier to compare.

Changing one parameter at a time makes its effect easier to judge. The increments in the table are examples for a first trial. The chart previews the effect at mild and cold outdoor temperatures before a change is saved.

What you observe at the same indoor target Next adjustment
Comfortable in mild weather, too cold as the weather gets colder A small increase in Slope, for example 0.7 → 0.8. If the house gets too warm in cold weather, a decrease instead.
Too cold by about the same amount in mild and cold weather An increase in Shift by 1 °C of flow temperature. For a house consistently too warm, −1 °C instead.
Too cool in spring or autumn, comfortable on cold days An increase in Shift by 1 °C, followed by observation until the indoor temperature stabilizes. If cold days become too warm, a small decrease in Slope brings the cold-day flow temperature back down.
Too warm in spring or autumn, comfortable on cold days A decrease in Shift by 1 °C. If cold days then become too cool, a small increase in Slope.
Mild and cold days are comfortable, but between them the house is often too cool or too warm Exponent matched to the emitter type. The chart allows comparison of a small increase or decrease at all 3 outdoor temperatures. A useful change moves the middle of the curve in the required direction.
Changing the curve leaves the requested flow temperature at its minimum or maximum The heating limit is already determining the request. The Dashboard's setpoint and measured flow help identify this before further tuning.

For example, with a 21 °C indoor target, heating limits of 25–65 °C, exponent 1.3 and no shift or indoor temperature correction, raising the slope from 0.7 to 0.8 changes the rounded flow setpoint from 33 to 34 °C at +10 °C outdoors, and from 47 to 49 °C at −10 °C. Slope has a larger effect in colder weather.

Finish tuning

The curve is tuned when indoor temperature stays near the target in both mild and cold weather.

With an indoor sensor, you can add a small correction through the T factor. It helps account for temporary cooling or an additional heat source indoors. A low starting value limits the correction; a lower value can help with repeated overshoot after warm-up.

After tuning, hysteresis can be enabled again if it is used in normal operation.

PID

PID adjusts the flow temperature using the difference between desired and measured indoor temperature. It can account for solar heating, ventilation and other changes that outdoor temperature alone does not capture. When indoor temperature is below target, PID raises the flow setpoint. When it is above target, PID lowers it.

PID needs an enabled indoor sensor under Sensors settings, with its purpose set to Indoor temperature. This is the only sensor that standalone PID needs.

For a slow heating system, tuning usually starts with P and I, with D = 0. The procedures below cover gradual tuning from observations and calculation from a temperature recording.

Web interface setting Default value What it does in this firmware
P factor 2 Reacts to the current indoor temperature error. With P = 2, an indoor reading 1 °C below target contributes +2 °C to the flow temperature setpoint before limits and multipliers.
I factor 0.002 Gradually removes an error that persists. Outside the deadband and away from limits, a steady 1 °C error for 300 seconds adds 0.6 °C to the accumulated flow temperature correction with I = 0.002.
D factor 0 Responds to how fast the measured indoor temperature changes. The procedure below uses zero.
DT 300 s Time between PID calculations. The firmware includes this interval in its integral calculation. Comparing gains requires a fixed interval.

Tune PID using indoor temperature

  1. Prepare the controller. Record your current settings and enable PID. Turn off Equitherm, heating hysteresis and Turbo while tuning. They change the flow setpoint or interrupt heating, making it harder to judge the gains. Set D = 0.
  2. Check the sensor and limits. Compare the indoor sensor with a thermometer in the same space. Under PID settings → Limits, set the permitted flow temperature range. Check Heating enabled, Heating blocked and overheat status on the Dashboard.
  3. Record the response to a target change. Start with your current gains or the default values. Make a small target change, for example 20.5 to 21 °C. Record indoor temperature and flow setpoint before and after. Note the initial setpoint response and observe indoor temperature for several hours. With underfloor heating, wait for both the floor and air to warm up.
  4. Adjust P for the initial response. If indoor temperature is below target, the flow setpoint is below its upper limit and barely rises, increase P a little, for example 2 to 2.5. If the setpoint jumps sharply and indoor temperature later overshoots, reduce P. Keep I unchanged during the comparison.
  5. Adjust I for a lasting error. If indoor temperature stays below target for hours, check the limits and deadband. If neither explains it, increase I a little. If the flow setpoint keeps rising near the target and indoor temperature repeatedly overshoots, reduce I. For example, changing 0.0020 to 0.0015 slows accumulation by 25%.
  6. Check stability. After each change, wait for indoor temperature to stabilize and compare results in similar conditions. Keep the gains that return indoor temperature to its target after a small drop without repeated swings. If the result gets worse, restore the previous value from your notes.

Deadband

Near the target temperature, the deadband reduces the influence of the PID terms. With a 21 °C target, the default deadband is between 20 and 21.5 °C. Its I multiplier is 0.05, so at 20.5 °C the integral correction builds up 20 times more slowly. This multiplier may explain why PID takes a long time to remove a small error, without a need to increase I.

Calculate PID gains from a recorded temperature change

A recording for this calculation needs direct flow temperature control during steady weather.

Tip

A suitable recording has one small flow temperature setpoint change within the installation's normal limits, with indoor temperature stable before and after. A changing schedule, a closing radiator valve or an indoor temperature that never stabilized makes this calculation unreliable.

  1. Divide the final indoor temperature change by the change in flow temperature setpoint to get the process gain K. For example, a flow temperature rising from 38 to 42 °C and an indoor temperature rising from 20 to 21 °C give K = 1 / 4 = 0.25.
  2. Read the delay from the setpoint change to the first sustained rise in indoor temperature. Then measure the lag from the end of that delay until the indoor temperature has risen by about 63% of its total increase (20.63 °C in the example). Suppose the delay is 30 minutes and the lag is 3 hours.
  3. Choose a desired response time at least as long as the delay. A longer time gives gentler control. With a response time of 3.5 hours, the SIMC rule gives P = lag / [K × (response time + delay)] = 3. The integral time is the smaller of the lag and 4 × (response time + delay), here 3 hours.
  4. To enter the gains from Skogestad's SIMC rules (equations 23–24) in the web interface, convert the integral time to an I factor per second. Dividing P by the integral time in seconds gives 3 / 10,800 ≈ 0.0003 at the field's precision. For this example the entries are P = 3, I = 0.0003 and D = 0. Use your own measurements and check how indoor temperature changes with your deadband settings.

Using Equitherm with PID

Equitherm sets the base flow temperature from the outdoor reading. PID adds a correction based on indoor temperature. For example, when sunlight warms the house, PID lowers the flow setpoint calculated by Equitherm. The PID limits determine how much it can change that result. The Equitherm T factor is inactive in this mode.

Add PID to Equitherm

Initial Equitherm setup starts with tuning the heating curve.

  1. PID needs an indoor temperature sensor. Under Sensors settings, check that the sensor is enabled and its purpose is Indoor temperature.
  2. Under PID settings → Limits, set Minimum temperature to −10 °C and Maximum temperature to +10 °C. This is the recommended range for the correction PID applies to the flow setpoint calculated by Equitherm.
  3. Enable PID and save the settings.

Choose the PID limits

With PID alone, Minimum temperature and Maximum temperature set the flow temperature range. With Equitherm enabled, these fields limit only the PID correction that OTGateway adds to the setpoint from the heating curve. Both values need to match the selected mode. A lower limit of 25 °C retained from standalone PID adds at least 25 °C to the curve.

The default lower limit is 0, which only lets PID raise the setpoint. A negative minimum lets it lower the setpoint as well. The limits use whole degrees. The examples below assume the heating curve gives 40 °C.

What PID can do Minimum temperature Maximum temperature Possible flow setpoint
Raise or lower the setpoint (recommended range) −10 +10 30–50 °C
Only raise the setpoint 0 +10 40–50 °C
Lower the setpoint by up to 5 °C or raise it by up to 10 °C −5 +10 35–50 °C

The limits under Heating settings still apply to the sum. If the heating maximum is 42 °C, a curve setpoint of 40 °C and a PID correction of +10 °C give a request of 42 °C to the Slave device.

Check the result

Heating setpoint temp on the Dashboard can be compared with the Equitherm chart for the same outdoor temperature and indoor target.

  • If the house feels cool on windy days and PID spends hours adding the full correction, a slightly higher upper PID limit may help while the flow setpoint is below the heating maximum.
  • If the house gets too warm on sunny days and PID is already subtracting the full correction, a slightly lower PID minimum may help while the flow setpoint is above the heating minimum.
  • If the house gets colder with every cold spell, the heating curve's slope may need adjustment.

Changing one setting at a time and waiting for indoor temperature to stabilize makes the result easier to assess.

Native weather compensation on the Slave device (native OTC)

In this mode OTGateway sends the desired indoor temperature to the Slave device. The Slave device chooses the flow temperature using its own heating curve.

  1. Configure the heating curve on the Slave device and enable Native OTC mode under OpenTherm settings in OTGateway.
  2. Under Sensors settings, enable a sensor with the Indoor temperature purpose.
  3. Set the desired indoor temperature on the Dashboard.

During emergency mode, OTGateway sends the configured emergency indoor target instead. Your normal heating target remains saved and is used again when emergency mode ends. If heating is mirrored to CH2, the same emergency room target is sent to CH2.

Protections and emergency mode

Overheat protection

The protection blocks heating or DHW when the affected circuit reaches its high temperature threshold. The block clears when temperature falls to the low threshold. The circuit's temperature and overheat indicator are on the Dashboard.

Freeze protection

OTGateway compares indoor, heating-flow and heating-return temperatures and uses the lowest available value after aggregation by purpose. Crossing the low threshold can turn heating back on. The high threshold clears the freeze condition.

Emergency mode

If a required temperature source remains unavailable for the configured delay, OTGateway uses a fallback setpoint.

Control mode Required source What the emergency setpoint controls
Equitherm, including Equitherm with PID Outdoor temperature Flow temperature
PID without Equitherm Indoor temperature Flow temperature
Native OTC Indoor temperature Indoor temperature

Under Emergency mode settings, State change delay applies both when entering emergency mode and when leaving it. The default is 120 seconds: a required source must remain unavailable for that delay before the fallback takes effect, and the required sources must remain available for the same delay before normal control resumes. If the condition changes again during the delay, the pending transition is cancelled.

The Dashboard shows Emergency mode, Heating setpoint temp and Heating current temp. The OpenTherm connection and Heating active indicators show whether communication is available and the Slave device reports heating activity.

You can also use MQTT or the REST API to check the calculated setpoint, the Slave device's reply and the actual flow temperature.

Additional circulation pump

External pump settings contains the enable switch, relay GPIO and Invert GPIO state option for matching the relay's polarity. The pump starts when OTGateway permits heating. When that request ends, it continues for the configured post-circulation time.

Setting Unit Default
Post circulation time Minutes 10
Anti stuck interval Days 30
Anti stuck time Minutes 5

When the pump stays off for the anti-stuck interval, OTGateway runs it for the specified time. The interval is counted from the last switch-off.

Note

The timer starts again after a restart; if the pump is enabled and there is no heating request, an initial anti-stuck run can start immediately.

Cascade control

Under Cascade control settings, the input receives an external heating permission signal, while the output signals another OTGateway or controls a relay. They can be used independently.

Input and output have separate State change delay settings: 5–600 seconds, with a default of 60 seconds. The delay applies to activation and deactivation. The new state must persist throughout the delay; shorter pulses are ignored.

Input

An external device can use the input to allow or block heating. DHW and freeze protection are unaffected.

  1. Select Enabled input and enter the GPIO connected to the other controller's signal.
  2. Set Invert GPIO state. Without inversion, a high level permits heating and a low level blocks it. With inversion, the levels are reversed.
  3. Set the state change delay and save. If no external signal is used, leave the input disabled.

Example: two OTGateway devices with a main and a backup boiler. Each OTGateway controls its own boiler. The first device's output connects to the second device's input, with their GND connections joined. On the first device, the output is enabled with only If the fault state is active selected. On the second device, the input is enabled. The polarity must make an active output on the first device produce an active input on the second.

When the main boiler reports a fault, the first OTGateway activates its output. After the output and input delays, the second OTGateway permits heating on the backup boiler in its selected mode. Once the fault clears, the first device's output becomes inactive and the second blocks heating again, subject to the same delays.

Example: a thermostat with a dry contact. The thermostat's relay contact connects the input GPIO to GND, with an external pull-up from the GPIO to 3.3 V. If the thermostat closes the contact when heat is needed, Invert GPIO state must be enabled. A closed contact permits heating; an open contact blocks it. Changes take effect after the configured input delay.

Note

The input has no internal pull-up or pull-down enabled. The external circuit must provide a stable logic level.

Output

The output can send heating permission to another OTGateway's input or control a relay module, for example to start a second boiler through a dry contact. Its settings are Enabled output, the GPIO and Invert GPIO state for matching the connected device's polarity.

Events defines the conditions that activate the output. Any one of the selected events is sufficient.

Event When the output is active
If the fault state is active The Slave device reports a fault
If the connection via Opentherm is lost There is no connection to the main Slave device
If heating is enabled Heating is enabled in settings and permitted by the cascade input. Actual burner activity is not considered

Example: starting a backup boiler through a dry contact.

  1. Connect the relay module's control input to the output GPIO. Connect the relay's dry contacts to the backup boiler's designated control input according to its instructions.
  2. Select the fault and OpenTherm connection loss events. Leave If heating is enabled off so the backup boiler does not start during normal operation of the main boiler.
  3. With a 60-second delay, the relay activates if a fault or connection loss persists for 1 minute. Once both conditions clear, the relay deactivates after another 1 minute.

Note

Fault and connection loss events activate the output even when heating is disabled in OTGateway. The temperature and operating mode are set on the backup boiler.

Clone this wiki locally