When multiple temperature sensors are present in a room, you can easily calculate their average temperature.
To achieve this, follow these steps:
- In the CLU, create a user feature (
avg_value) of typenumber. This variable will store the calculated average temperature:
- Create a script (
SCR_avg_value) that sums the values from all temperature sensors and then divides the sum by the number of sensors. The result will be stored in the previously created variable:
CLU->avg_value = (CLU->xONEW_SENSOR_01->Value + CLU->xONEW_SENSOR_02->Value + CLU->xONEW_SENSOR_03->Value + CLU->ONEW_SENSOR_04->Value) / 4
- Assign the script execution to the
OnValueChangeevent of all temperature sensors used for the average calculation:



- Upload the configuration to the CLU.
Note: The user feature
avg_valuecan be used as aSourcein a virtualThermostatobject. To access it, enable the “Show all objects” option.