question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support Qingping/Cleargrass broadcast (not encrypted)

See original GitHub issue

Mostly base from the work in https://github.com/1technophile/OpenMQTTGateway

As far as I know, the CGD1 braodcast all the data in unencrypted form. also this shoud also work for https://fr.aliexpress.com/item/33043333798.html

How to parse the value:

  1. Start with 0xCD 0xFD (instead of 0x95 0xFE for xiaomi)
  2. After 2 Bytes : 0x08 x0C for the CGD1, for the one with air pressure 0x08 0x09
  3. 6 Bytes : Reversed MAC

And after it’s list object until the end, Object is : 1Byte type, 1Byte length, length bytes

I have found three object: 0x01, temperature and humidity, with length 0x04, it’s the same as xiaomi 0x100d 0x02, battery, with length 0x01, it’s the same as xiomi 0x1004 0x07 air pressure. with length 0x02, it’s double (uint16 value / 100)

one exemple: CD FD 08 0C BF 65 52 34 2D 58 01 04 F1 00 AD 01 02 01 25 There is 2 object:

  • one of type 0x01, with temperature 0x00F1/10°C and humidty 0x01AD/10%
  • one of type 0x02, with battery 0x25%

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:35

github_iconTop GitHub Comments

1reaction
Ernst79commented, Feb 10, 2021

1.0.2 final has been released with support for CGG1, CGD1 and CGP1W.

CGDN1 is not added yet, this one needs further investigation. This sensor is moved to issue #269

1reaction
andrewjswancommented, Feb 5, 2021

Now I don’t know, i now on release branch…

пт, 5 февр. 2021 г., 20:31 Ernst Klamer notifications@github.com:

I had it working before …

Do you mean it worked, and now it doesn’t anymore?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/custom-components/ble_monitor/issues/81#issuecomment-774209125, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA3RIPE5ZTMBUZ7NKGU46FLS5Q2PRANCNFSM4NWEK46Q .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Encrypted Advertisements | Passive BLE Monitor integration
Cleargrass CGD1 alarm clock ... Qingping advertisements are not encrypted. ... BLE monitor supports all possible broadcast types that can be selected in...
Read more >
Xiaomi Mijia BLE Sensors - ESPHome
Cleargrass (Qingping) alarm clock, segment LCD, encrypted, broadcasts temperature, humidity and battery status. Requires a bindkey in order to decrypt the ...
Read more >
Qingping+ - Apps on Google Play
The Butler of Qingping Household Products Manage your Qingping household products, view data, modify settings, upgrade firmwares and so on. Suggestions
Read more >
Passive BLE Monitor integration (Xiaomi Mijia BLE MiBeacon ...
Changes in 0.9.6 Added support for Cleargrass Qingping Temperature Humidity sensor (CGDK2). Note that this sensor requires an encryption key.
Read more >
Qingping Air Quality Monitor, Indoor Air Quality Meter Detects ...
The product supports settings of auto-brightness, screen saver, and screen auto-off. When the product is not plugged in, its screen will be turned...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found