Thingsee Environment Profile (12)

Air pressure is given as pascals, relative humidity as percentage, temperature as Celsius and light as lux.

{
  "airp" : Number, //optional
  "humd" : Number, //optional
  "temp" : Number, //optional
  "lght" : Number  //optional
}

Example

{
  "airp" : 102092.358,  // 1020 hPa
  "humd" : 67.2,        // 67.2 %, relative humidity
  "temp" : 22.5,        // 22.5 °C
  "lght" : 270          // 270 lux
}

Magneto switch (hall sensor) can be used to detected open doors, windows etc objects where magnetic field is changed.

{
  "hall"      : Number,  // required
  "hallCount" : Number   // optional
}

Example

{
  "hall"      : 0
  "hallCount" : 2
}

hall value defines the current, or last known, state of hall sensor.

  • 0 = open
  • 1 = closed

hallCount is the number of detected state changes during a measurement period. For example, value 2 indicates that the sensor went from state A → B → A one time. This value can be used to count how many times window/door has been opened, and to determine its start and end states.

Resistance given as ADC reading from leakage sensor. Unit is ohms.

{
  "resistance": 1023
}
[{
  "tsmId"      : 12200, //ID of message content
  "tsmEv"      : 30,   //config update request
  "tsmTs"      : 1492603998, //message timestamp
  "tsmDstTuid" : "TSPOD6789", //destination thing
  "transactionId" : 199882211,
  "accelerometerMode" : 0, // optional
  "weatherMode" : 0, // optional
  "hallMode" : 0, // optional
  "leakageMode" : 0 // optional
}]

This message can be used to remotely configure how sensor configures its behaviour and reports sensor values.

accelerometerMode selects mode of operation of accelerometer. If this value is omitted from 12200 message, accelerometer mode is not changed and device reports back current setting. If mode is unsupported by device firmware, default mode '0' is used instead. Different modes supported are:

  • '-1': Accelerometer disabled.
  • '0': Orientation mode. Device reports its 3D orientation with “1111 Thing orientation info” message.
  • '1': Machine monitoring mode. Device reports vibration histogram with “16100 Vibration info” message. Device may also report its 3D orientation with “1111 Thing orientation info” message.
  • '2': Machine monitoring mode, same messages as mode '1'. Only reports measurement periods where activity was detected.

weatherMode select mode of operation of weather sensors (see Weather info 12100). If this value is omitted from 12200 message, weather mode is not changed and device reports back current setting. If mode is unsupported by device firmware, default mode '0' is used instead. Different modes supported are:

  • '-1': Weather sensor reporting disabled.
  • '0': Report weather information at report interval rate.

hallMode select mode of operation of magnetic/hall switch sensor (see Magneto switch info 12101). If this value is omitted from 12200 message, hall mode is not changed and device reports back current setting. If mode is unsupported by device firmware, default mode '0' is used instead. Different modes supported are:

  • '-1': Magnetic/hall sensor reporting disabled.
  • '0': Report magnetic/hall information at report interval rate.
  • '1': Report only changes.

leakageMode select mode of operation of leakage resistance sensor (see Leakage resistance info 12102). If this value is omitted from 12200 message, leakage mode is not changed and device reports back current setting. If mode is unsupported by device firmware, default mode '-1' is used instead. Different modes supported are:

  • '-1': Leakage sensor reporting disabled.
  • '0': Report leakage information at report interval rate.

A sensor application must reply with the same message (applied configuration values) with an tsmEv : 31.

Example response

[{
  "tsmId"      : 12200, //ID of message content
  "tsmEv"      : 31,   //config update response
  "tsmTs"      : 1492604004, //message timestamp
  "tsmTuid"    : "TSPOD6789", //originating thing
  "transactionId" : 199882211,
  "accelerometerMode" : 0
}]
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information