mash2k3 / qingping_cgs1

Home Assistant Integration for Qingping Pro Air Quality Monitor [CGS1]
4 stars 1 forks source link

QingPing Cgs2 #18

Open trixncheerios opened 4 days ago

trixncheerios commented 4 days ago

Hello and good day. I appreciate the work you are doing. I have a QingPing Air Monitor Cgs2 and i was able to get it mostly setup in Home Assistant with your integration. The Tvoc states unknown. I tried to resolve it on my own without success. I am able to see the data in MQTT Explorer, and i was wondering if you would be able to help. The Air Monitor also has a Noise monitor, is it possible to implement that as well? Thank you for your time.

mash2k3 commented 3 days ago

Hello and good day. I appreciate the work you are doing. I have a QingPing Air Monitor Cgs2 and i was able to get it mostly setup in Home Assistant with your integration. The Tvoc states unknown. I tried to resolve it on my own without success. I am able to see the data in MQTT Explorer, and i was wondering if you would be able to help. The Air Monitor also has a Noise monitor, is it possible to implement that as well? Thank you for your time.

I don't have a cgs2 but with your help I might be able add support for cgs2. Send me your mqtt explorer values edit out your Mac address

Also send me screen shots of what you see in home assistant

trixncheerios commented 3 days ago

I hope this help, thanks for taking the time to reply. If there is anything more , let me know.

{"mac":"000000000","sensorData":[{"battery":{"status":1,"value":100},"co2":{"status":0,"value":1796},"humidity":{"status":0,"value":62.099998474121094},"noise":{"status":0,"value":38},"pm10":{"sn":"0000000","status":0,"value":45},"pm25":{"sn":"00000000","status":0,"value":43},"temperature":{"status":0,"value":20.899999618530273},"timestamp":{"value":1728843228},"tvoc_index":{"status":0,"value":62}}],"third_state":1,"timestamp":1728843228,"type":"12","version":"4.3.9_0137"}

qingping tvoc

mash2k3 commented 1 day ago

@trixncheerios try v1.2.1_beta please provide detailed info so we can perfect it. One part i need big help is on the etvoc unit conversion, compare what you have on you app and HA for voc index, ppb, mg/m³. Help me figure out whats the default and what equation they use to convert to other units, also see if the type changes in mqtt explorer if unit is changed in app? Also provide me of full screen shot of device info page like shown below.

image image

trixncheerios commented 1 day ago

I will try and help the best that i can. I am not sure if i can provide the information you are requesting. At this time i am unable to get the sensor to post data into Home Assistant. I can read it in the MQTT Explorer. There are two type changes i see, type 12 and type 17. When i change to ppb or ppm, it makes no difference in Home Assistant. It does show in the logbook. Here are some screenshots. qingpingdeviceinfo qingpingdeviceinfo2

I did some research online in regards to what values for conversion. I found this post talking about it. I am not sure if that helps.

https://github.com/home-assistant/architecture/discussions/1004

"For instance, the Xiaomi Qingping Air Monitor, in both its screen display and in the Mi Home, Qingping+, and Qingping IoT apps, shows tVOC measurements in mg/m³. This device can be integrated with Home Assistant through the unofficial hass-xiaomi-miot and also via MQTT broker configuration. Focusing on the latter, the raw values in the MQTT topic are in ppb. The Sensirion sensor used in this device aligns with the following conversion information obtained from Sensirion Gas Sensors FAQ:

What is the conversion formula from ppb to mg/m3 for TVOC?
1 mg/m3 = 218.77 ppb
1 ppb = 0.0045 mg/m3"
mash2k3 commented 1 day ago

I was hoping to get a screenshot after you updated to v1.2.1_beta. you can install it using hacs after clicking get pre releases

trixncheerios commented 1 day ago

I included new screenshots with the newer version.

qingpingdeviceinfov1 21 qingpingdeviceinfov21 21

mash2k3 commented 1 day ago

I included new screenshots with the newer version.

Weird, its not displaying correctly, maybe remove the device and add again. If it works correctly it should show device as CGS2 and should have noise level and tvoc just index for now

Also show me a screen shot of this page, if you installed the right release it should say 1.2.1 image