Use local MQTT functionality of the Qingping Air Monitor
The goal is to have a fully functioning device without the need or dependency of the cloud. For this to work the initial setup does need internet access to sync your MQTT settings with the device. At moment of writing there is no option to insert the settings via the GUI of the device.
Note!
There are two ways getting MQTT to work on your Qingping Air Monitor.
- Connect to [email protected] (easiest way)
- Configuring yourself via https://developer.qingping.co/ (the more customizable way)
For option number one you connect to support and mention you want to use the 'Privatization function' of your device. List the MAC address and your MQTT details. You will get a reply back to factory reset your device. After resetting the MQTT setting will be synced with your device. From that point you monitor traffic to your MQTT server to verify the workings.
Option number is described in more detail below.
For this you need to download either Qingping+ or the Qingping IoT app on your Android or iOS device. My preference is the IoT app, so the following instructions are based on this.
- Go to settings on the Air Monitor and select either 'Qingping+ App' or 'Qingping IoT App'. We choose the latter in this case.
- Pair the device with app and follow the instructions both on the app as on the screen of Air Monitor.
- Now go to https://developer.qingping.co/login. Register and/or login.
- Go to 'Private Access Config and select Configurations. Create a new configuration. This will contain your MQTT and interval settings. Fill in as shown as example.
- Click on the edit button in the 'Self-built MQTT information' section and fill in according to your situation. The MAC address is meant to be used as an identifier if you have multiple devices.
- Now go back to the 'Private Access Config' and select Device.
- Add a new device, select your device model and you should see your newly added device as paired earlier in the app.
- Continue and select the configuration you created before.
You should be done now. If you don't see activity from the device to your MQTT server, reboot the device. You can use MQTT Explorer to validate and/or troubleshoot. On the device you can also check Settings > Private Cloud. Here you can see the connection status to your MQTT server.
You can now disable internet access or block the DNS requests the device is sending. Be aware, the device could be generating a lot of DNS requests if it senses no internet connection. I have given this as feedback to Qingping. Perhaps in later firmware updates the device will behave differently.
Note!
For Home Assistant you can create sensors based on the MQTT integration. To overcome these additional configuration @bob-tm made an integration for Home Assistant: https://github.com/bob-tm/ha-qingping