Repository navigation
Sensors
English · Русский
The standard build supports 20 configured sensors. IDs 0–10 already have names and purposes, while IDs 11–19 are free.
REST counts from 0 and the web interface counts from 1. For example, Heating temp has ID 2 and appears as #3 in the web interface.
| ID | Default name | Source | Enabled |
|---|---|---|---|
| 0 | Outdoor temp | Outdoor temperature reported by the OpenTherm Slave device | No |
| 1 | Indoor temp | Dallas indoor temperature probe | No |
| 2 | Heating temp | OpenTherm heating flow temperature | Yes |
| 3 | Heating return temp | OpenTherm heating return temperature | Yes |
| 4 | Heating setpoint temp | Setpoint calculated by OTGateway | Yes |
| 5 | DHW temp | OpenTherm domestic hot water temperature | Yes |
| 6 | DHW flow rate | OpenTherm domestic hot water flow rate | Yes |
| 7 | Exhaust temp | OpenTherm flue gas temperature | Yes |
| 8 | Pressure | OpenTherm heating circuit pressure | Yes |
| 9 | Modulation level | Relative burner modulation | Yes |
| 10 | Power | Estimate from the Slave device's modulation and the configured power range | Yes |
The readings reported over OpenTherm depend on the Slave device. The sensor's connection status is available on the Dashboard, through MQTT or REST.
Tested refers to testing with OTGateway. Other Dallas models show their library support status.
The Xiaomi Bluetooth thermometers in the table were tested with PVVX firmware. Operation with other firmware is not guaranteed.
| Sensor | Connection | Type | Sensor readings | Tested |
|---|---|---|---|---|
| DS18B20 | Wired | Dallas | Temperature | Yes |
| DS18S20 | Wired | Dallas | Temperature | No and is not recommended |
| DS1822 | Wired | Dallas | Temperature | No, but should work |
| DS1820 | Wired | Dallas | Temperature | No, but should work |
| MAX31820 | Wired | Dallas | Temperature | No, but should work |
| MAX31850 | Wired | Dallas | Temperature | No, but should work |
| NTC 10k | Wired | Analog | Temperature | Yes |
| DHT11 | Wired | DHT11 | Temperature, relative humidity | Yes |
| DHT22 | Wired | DHT22 | Temperature, relative humidity | Yes |
| Xiaomi Mijia (LYWSD03MMC) | Wireless | BLE | Temperature, relative humidity, battery level | Yes |
| Xiaomi Mijia (MJWSD05MMC) | Wireless | BLE | Temperature, relative humidity, battery level | Yes |
The sensor setup instructions describe configuration on OTGateway.
Important
Bluetooth scanning pauses while a client is connected to the OTGateway access point. BLE updates resume after all clients disconnect from the access point.
Tested models are listed in the compatibility table. GPIOs for wired sensors are shown on the map for your ESP32 board. Adapter connectors have their own pinout.
- Under Sensors settings, open Indoor temp, Outdoor temp or an unnamed entry for a new sensor.
- Give the sensor a distinct name and enable it.
- Choose its Type/source and enter the connection details from the table below.
- Choose the sensor's purpose and save its settings.
- Check the reading and connection status on the Dashboard. For a heating control input, also check the combined indoor or outdoor temperature that OTGateway uses.
Note
Enabling or disabling a sensor, or changing its type, GPIO or address, clears its readings and filter history. The sensor then waits for new data from its source.
| Source | What to configure |
|---|---|
| OpenTherm | The measurement reported by the Slave device. A probe wired to its outdoor sensor input uses the OpenTherm outdoor temperature source. |
| Dallas (1-Wire) | The sensor's GPIO. The default address enables discovery; a specific address identifies a probe on a shared bus. |
| NTC 10 kΩ | The analog GPIO connected to the sensor circuit. |
| DHT11 / DHT22 | The sensor model and data GPIO. The sensor reports temperature and relative humidity. |
| Bluetooth | BLE sensor and the sensor's address. A BLE-capable build and supported advertising format are required. |
| Manual via MQTT/API | Readings supplied through MQTT, REST or Home Assistant. |
Note
Dallas and DHT sensors need a GPIO that supports both input and output. For NTC, use an analog input. The GPIOs must not be used by OpenTherm, Ethernet or relays.
The purpose connects a sensor reading to a controller or circuit.
- Indoor temperature and Outdoor temperature are heating control inputs. If several sensors share a purpose, Heating settings offers their mean, lowest or highest reading.
- For heating and DHW flow and return, OTGateway uses the mean of the connected sensors assigned to each measurement.
- Temperature is for a sensor used only on a chart or dashboard.
This source is for readings already available in home automation or another application.
- In the sensor settings, choose an existing sensor with the purpose you need. For example, you can use Indoor temp for Indoor temperature. To add a separate source, open an unnamed entry and give it a name such as Indoor probe.
- Select Manual via MQTT/API as the source, check the purpose, enable the sensor and save its settings.
- Set up updates through MQTT, the REST API or the Home Assistant blueprint.
- After the first update, check the reading and connection status on the Dashboard.
REST uses the chosen sensor’s numeric ID. MQTT uses the slug derived from the name, such as indoor_temp for Indoor temp or indoor_probe for Indoor probe. Renaming the sensor changes its MQTT address. Its numeric ID stays the same.
Important
Readings must use the units configured on OTGateway. To stay connected, the sensor needs a reading less than 10 minutes after the previous one, even if the value stays the same.