Article contents:

Types of sensors

Sensors with an analog output can be of the following types:


Reading Parameters

Reading is done with the getelement command, with the following parameters:


Examples of responses to a query for an element of the class "analog":

<element id="201001" index="1" module="2005" clas="analog" type="temperature" name="Onboard Temperature" state="normal" value="37.5" vmax="110.0" vmin="-50.0" low_alarm="0.0" low_warning="5.0" high_warning="45.0" high_alarm="50.0" at0="1.000" at75="0.000" um="°C"></element>
<element id="208001" index="16" module="2014" clas="analog" type="power" name="Outlets bank A-Psum" state="low alarm" value="0.0" vmax="20000.0" vmin="0.0" low_alarm="0.0" low_warning="0.0" high_warning="3000.0" high_alarm="3600.0" um="W" descr="Power"></element>

Where:

If there one of the attribute is not specified in the response, then the value of this attribute is not determined in the course of work and its installation does not affect the operation of the element.

When reading an element, a temporary log of the measured value is also output, in the form:

<time t="6849" last="6749" period="1">
<d v="9.351" t="6848"/>
<d v="12.109" t="6847"/>
<d v="19.629" t="6846"/>
...
<d v="19.629" t="6749"/>
</time>
<time t="6863" last="804" period="60"> <d v="11.107" t="6803"/> <d v="30.620" t="5743"/> <d v="12.451" t="3683"/> ...
<d v="19.629" t="804"/>
</time>
<time t="3624" last="24" period="3600"> <d v="1.096" t="24"/> </time> <time t="24" last="24" period="86400"> </time>

The sensor readings are divided into groups: 100 seconds per second, 100 minutes per minute, 100 hours and 100 days. Sensor readings (field 'v') are indicated with a time stamp (field 't').

Modification of parameters

It is executed by the updateelement command:

With additional parameters available for modification:

Reset log of the measured value

It is executed by the resetelementdata command:

The period field may not be specified, then the data of all time periods is deleted.

Analog sensor power reset

It is executed by the switchpower command (administrator rights required):

This resets the power to analog sensors for the desired time (default 15 seconds). Used to reset the state of smoke detectors after they have been triggered. For the duration of the action, the operation of analog sensors is suspended. In the user web interface, this function is performed by the "Analog sensor power reset" element.

Hysteresis parameters

Additional parameters for managing hysteresis are read by the getelement command, set by the at0*x+at75 command, along with the rest of the sensor parameters.

When you request getelement, all parameters are returned in the response, regardless of the type of algorithm. With updateelement, you can specify all the parameters, or only those that need to be modified.

These parameters are also relevant for sensors of a virtual type, for example dewpoint.