How to adjust an existing Site Template

How to adjust an existing Site Template

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.

<sensorsensor_id="Temperature"><sensor_class>temperature</sensor_class><unit>C</unit><state_evaluation_expressions><state_evaluation_expression><expression>value &gt; 40</expression><trueseverity="200">CRITICAL</true><falseseverity="0">OK</false></state_evaluation_expression><state_evaluation_expression><expression>value &gt; 35</expression><trueseverity="100">WARNING</true><false/></state_evaluation_expression></state_evaluation_expressions><sensor_gatewaysensor_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

  1. Go to Config/Provisioning → Sensor Templates → Site Templates

  2. Click on Edit next to the correcponding Site Template

  3. Toggle SU/Normal Mode and clkick on the +Sensors to colapse it

  4. Click on the desired sensor. In this case Temperature

  5. In the field sensor.sensor_gateway.calibration_rule.rounding_precision.value change the value to 1

  6. Toggle SU/Normal Mode and clkick on back

  7. 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