mqtt2prometheus icon indicating copy to clipboard operation
mqtt2prometheus copied to clipboard

Add Qingping Air Monitor Lite example

Open Himura2la opened this issue 5 months ago • 0 comments
trafficstars

The Qingping data format is quite hard to guess, because of an array in the middle:

{
  "type": "17",
  "id": 641,
  "need_ack": 0,
  "mac": "**REDACTED**",
  "timestamp": 1748860948,
  "sensorData": [
    {
      "timestamp": { "value": 1748860920 },
      "temperature": { "value": 25.72 },
      "humidity": { "value": 40.39 },
      "co2": { "value": 570 },
      "pm25": { "value": 168 },
      "pm10": { "value": 170 },
      "battery": { "value": 100 }
    }
  ]
}

I spent several hours debugging until I notices that sensorData is an array.

The sensor is quite popular, and there's a verdor-supported MQTT integration, so I believe it should be present ad an example.

Himura2la avatar Jun 02 '25 10:06 Himura2la