If a sensor is not configured correctly, then it will need adjustment. Changing the configuration is done through the azeti Control Panel.
In this How-to, we will use a temperature sensor as example.
<sensor sensor_id="Temperature">
<sensor_class>temperature</sensor_class>
<unit>C</unit>
<state_evaluation_expressions>
<state_evaluation_expression>
<expression>value > 40</expression>
<true severity="200">CRITICAL</true>
<false severity="0">OK</false>
</state_evaluation_expression>
<state_evaluation_expression>
<expression>value > 35</expression>
<true severity="100">WARNING</true>
<false/>
</state_evaluation_expression>
</state_evaluation_expressions>
<sensor_gateway sensor_gateway_id="gw_X20AI8321_analog_inputs">
<demux>
<keys>
<key>5</key>
</keys>
</demux>
<calibration_rule>
<offset>-52</offset>
<raw_result_factor>0.0061037018951994</raw_result_factor>
<rounding_precision>2</rounding_precision>
</calibration_rule>
</sensor_gateway>
</sensor>
|
In this case we will change the rounding precision from 2 to 1, because there is no need to see the degrees in such detail.
Step-by-step guide
- Go to Config/Provisioning → Sensor Templates → Site Templates
- Click on Edit next to the correcponding Site Template
- Toggle SU/Normal Mode and clkick on the +Sensors to colapse it
- Click on the desired sensor. In this case Temperature
- In the field sensor.sensor_gateway.calibration_rule.rounding_precision.value change the value to 1
- Toggle SU/Normal Mode and clkick on back
- Now the Site Template needs to be redployed for the changes to take effect → How to deploy a Site Template
Raw Result Factor is a calculated value, depending on the values we get from the I/O module and the temperature range the sensor can measure. In this case, the I/O module gives a value ranging from 0-32767. This needs to be divided by the range the temperature sensor can measure (-50-150°C). |
Related articles
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.