Modifying A QingPing Air Quality Monitor For Local MQTT Access

The QingPing Air Quality Monitor 2 is an Android-based device that not only features a touch screen with the current air quality statistics of the room, but also includes an MQTT interface that normally is used in combination with the QingPing mobile app and the Xiaomi IoT ecosystem. Changing it to report to a local MQTT server instead for integration with e.g. Home Assistant can be done in an official way that still requires creating a cloud account, or you can just do it yourself via an ADB shell and some file modifications as [ea] has done.

By default these devices do not enumerate when you connect a computer to their USB-C port, but that’s easily resolved by enabling Android’s developer mode. This involves seven taps on the Device Name line in the About section of settings. After this you can enter Developer Options to toggle on Debug Mode and Adbd Debugging, which creates the option to connect to the device via USB with ADB and open up a shell with adb shell.

From there you can shoot off the QingSnow2 app and the watchdog.sh that’s running in the background, disable IPv6 and edit /etc/host to redirect all the standard cloud server calls to a local server. Apparently there is even SSH access at this point, with root access and password rockchip. The MQTT configuration is found under /data/etc/ in settings.ini, which is used by the QingPing app, so editing redirects all that.

Of course, the device also queries a remote server for weather data for your location, so if you modify this you have to provide a proxy, which [ea] did with a simple MQTT server that’s found along with other files on the GitHub project page.

7 thoughts on “Modifying A QingPing Air Quality Monitor For Local MQTT Access

  1. Wow. 150 € a piece.

    If you want to do it yourself:
    * 20 € ESP32-S3 4,0 inch 480 * 480 + Touch “heat control device”
    * 20 € SCD41 CO2 (SCD40 15 €)
    * 5 € BME280 Temp, Press, Humi
    * 5 € ENS160+AHT21 QOA bullshit
    * 10 € OPEN-SMART PM 2,5
    = 60 €

    (Prices are not really the cheapest, just indications.)

    I can assure that programming that combination (minus dust sensor) is fun. With building your own nice interface, you can control devices via MQTT by touch button press and show stati from Tasmota devices.

    The QingPing Air Quality Monitor 2 seems to have a “co2 auto calibration problem” like the MH-Z19 (had?).
    Dust sensor? Next beside useless without extensive cleaning every 6 month.

  2. An air quality monitor with a beautiful colour LCD and running Android. I would’ve prefered a gray, industrial looking wall mounting device that connects over WiFi or whatever and just samples data

    I already have my smartphone and computers. I don’t need an LCD

  3. I appreciate any way that you can have it report local statistics more reliably and… without unnecessarily inserted politics. As it is, the device is from China but I’m in Taiwan. Meaning, I’m in a country that their country refuses to acknowledge exists. So,readings are somewhat less useful, being as I’m in a place that doesn’t exist. Most of the options just say that these statistics aren’t available for my region.

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.