Hello @marcel_verpaalen,
thank you very much for the great binding. I use it with several products and it works very reliably.
I have now bought a Qingping Air Monitor Lite (cgllc.airm.cgdn1) and would like to integrate it. This is not yet supported by the binding if I see it correctly. It also seems to work differently than cgllc.airmonitor.b1 or cgllc.airmonitor.s1, because it did not work to overwrite the model in the paper UI with cgllc.airmonitor.s1 or cgllc.airmonitor.b1.
Now I tried creating a cgllc.airm.cgdn1.json in the openhab configuration under ./misc/miio. I can see the file is used, because openhab creates the channels accordingly. Unfortunately no values arrive in the channels…
With a bit of googling I found that python-miio (GitHub - rytilahti/python-miio: Python library & console tool for controlling Xiaomi smart appliances) already supports the Qingping Air Monitor Lite (cgllc.airm.cgdn1). Here are the corresponding commits Add Qingping Air Monitor Lite support (cgllc.airm.cgdn1) (#900) · rytilahti/python-miio@78f8bee · GitHub
The Miot specs: https://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:air-monitor:0000A008:cgllc-cgdn1:1
Can you give me a hint how to proceed here to customize the database file in the Openhab binding?
Here is my current cgllc.airm.cgdn1.json:
{
"deviceMapping": {
"id": [
"cgllc.airm.cgdn1"
],
"propertyMethod": "get_value",
"maxProperties": 6,
"channels": [{
"property": "battery",
"friendlyName": "Battery",
"channel": "battery",
"channelType": "system:battery-level",
"type": "Number",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
},
{
"property": "pm2.5",
"friendlyName": "PM2.5",
"channel": "pm25",
"channelType": "pm25",
"type": "Number",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
},
{
"property": "pm10",
"friendlyName": "PM210",
"channel": "pm10",
"channelType": "pm10",
"type": "Number",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
},
{
"property": "carbonDioxide",
"friendlyName": "CO2e",
"channel": "co2",
"channelType": "co2",
"type": "Number",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
},
{
"property": "humidity",
"friendlyName": "Humidity",
"channel": "humidity",
"channelType": "humidity",
"type": "Number",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
},
{
"property": "temperature",
"friendlyName": "Temperature",
"channel": "temperature",
"channelType": "temperatureC",
"type": "Number:Temperature",
"unit": "CELCIUS",
"refresh": true,
"ChannelGroup": "Status",
"actions": [],
"category": "temperature",
"tags": [
"Measurement",
"Temperature"
]
}
]
}
}
Thank you very much.
kind regards Jörg