The Sensedge Mini supports secondary MQTT.

In addition to sending your data to the Kaiterra Dashboard, Secondary MQTT allows you to specify another location for your data to be sent. This article will help you understand how Secondary MQTT works for our Enterprise devices. 


Sensedge

Sensedge Mini

Using the Kaiterra Enterprise Configuration Tool, connect to your Sensedge Mini in order to set up your Secondary MQTT settings.

Once the Secondary MQTT settings are configured, you will need to subscribe to the MQTT topic:

kaiterra/device/history/+

The “+” is a placeholder (or wildcard) that matches anything; in this case, the UDID of the device.

You can also specify custom topics for the Sensor Reading Topic and the Sensor Metadata Topic, using {sn} and {udid} as placeholders.

For Example:

kaiterra/device/history/{udid} will create topics as
kaiterra/device/history/00000000-0031-0101-0000-00007e57c0de

kaiterra{sn} will create topics as
kaiterraKG200104631

All the data will be uploaded in one message. No sub-path is used for each pollutant.

You can choose from two different message formats, which will change how the data appears in the MQTT message.

Format 1:

{
    "ts": 1624874669,
    "dsn": "KG200104631",
    "dudid": "00000000-0031-0101-0000-00007e57c0de",
    "data": {
        "km200.rgt03": 800,
        "km200.rgt25": 3,
        "km200.rpm10": 6,
        "km200.rpm10c": 7,
        "km200.rpm25": 6,
        "km200.rpm25c": 7,
        "km203.reco2 (ppm)": 810,
        "km203.reco2_bl": 34730,
        "km203.rethoh": 18200,
        "km203.rh2": 12500,
        "km203.rtvoc": 1218,
        "km203.rtvoc_bl": 37470,
        "km203.rtvoc_eng": 109.9,
        "km203.rtvocb (ppb)": 1218,
        "rco2 (ppm)": 1141,
        "rhumid": 38.08,
        "rhumidb": 33.11,
        "rtemp": 31.04
        "rtempb": 33.61,
        "signal_strength": -40,
    }
}

Note: some of the values provided in Message Format 1 contain values that are used for troubleshooting and internal use. The values listed below are the values that are relevant to your air quality readings.

  • “ts” – Timestamp in UTC 
  • “km200.rpm10c” – PM10 in micrograms per cubic meter 
  • “km200.rpm25c” – PM2.5 in micrograms per cubic meter  
  • “km203.rtvoc (ppb)” – TVOC in ppb
  • “rco2 (ppm)” – CO2 in ppm 
  • “rhumid” – relative humidity in % 
  • “rtemp” – temperature in celsius

Format 2:

{
“ts”: 1624874676,
“dsn”: “KG200104631",
“dudid”: “00000000-0031-0101-0000-00007e57c0de”,
“data”: {
“temperature”: 28.90,
“humidity”: 28.23,
“pm25": 21,
“pm10”: 22,
“co2": 1471,
“tvoc”: 0
}
}
  • “ts” – Timestamp in UTC 
  • “temperature” – temperature in celsius
  • “humidity” – relative humidity in %
  • “pm25” – PM2.5 in micrograms per cubic meter
  • “pm10” – PM10 in micrograms per cubic meter
  • “co2” – CO2 in ppm
  • “tvoc” – TVOC in ppb