Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleExample Sensor Configuration
<sensor sensor_id="Temperature">
    <sensor_class>temperature</sensor_class>
      <unit>C</unit>
      <state_evaluation_expressions>
      <state_evaluation_expression>
        <expression>value &gt; 40</expression>
          <true severity="200">CRITICAL</true>
          <false severity="0">OK</false>
        </state_evaluation_expression>
        <state_evaluation_expression>
        <expression>value &gt; 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>

 

[ picture problem ]

 

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. Open the template with the to be corrected sensor and which is attached to the correct Location
  3. Toggle SuperUser Normal mode
  4. Find the field with the wrong value
  5. Change the value
  6. Toggle SuperUser
  7. Go back
  8. Deploy → see How to deploy

 

...

  1. Click on Edit next to the correcponding Site Template
  2. Toggle SU/Normal Mode and clkick on the +Sensors to colapse it
  3. Click on the desired sensor. In this case Temperature
  4. In the field sensor.sensor_gateway.calibration_rule.rounding_precision.value change the value to 1
  5. Toggle SU/Normal Mode and clkick on back
  6. Now the Site Template needs to be redployed for the changes to take effect → How to deploy a Site Template


Info

Rounding Precision 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).

Filter by label (Content by label)
showLabelsfalse
max5
spacesKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("values","controller","xml","dashboard","site","acp","sensor","template") and type = "page" and space = "KB"
labelssensor template xml site controller dashboard acp values

...