Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for ClearGrass humidity/temerature sensor #15

Open
dedors opened this issue Jul 10, 2019 · 5 comments
Open

Support for ClearGrass humidity/temerature sensor #15

dedors opened this issue Jul 10, 2019 · 5 comments

Comments

@dedors
Copy link

dedors commented Jul 10, 2019

There are 2 new versions of a sensor which also works in the Mi Home app and has e-ink:
One is the upgraded LCD version:
https://cleargrass.com/cg_temp_rh_monitor/overview

Manufacturer Name: Qingping Technology (Beijing) Co., Ltd.
Model Number: CGG1

Using the current node does work but only returns battery value.

somebody got it to work with noble: https://github.com/alexvenom/XiaomiCleargrassInkDislpay

Second one is one with a clock:
https://www.aliexpress.com/item/32997941031.html
Did nout found any more info about this one yet.

Can these be supported?

@michapr
Copy link

michapr commented Jul 10, 2019

What is the model number for the e-ink version of temp/hum sensor?
And for the second one? (link is not working more)

@dedors
Copy link
Author

dedors commented Jul 10, 2019

Model number of the fist is CGG1. It Identifies as "ClearGrass Temp & RH" on bluetooth scan.

Model number of the second (square with time, humidity and temperature) is LYWSD02MMC. It identifies as "LYWSD02" on bluetooth scan.
On this one I also get only battery status.
Maybe some reference: http://www.techort.com/how-i-took-data-from-the-ble-thermometer-from-xiaomi-habr/

(Both can only be added on china server in Mi Home so far I think, which I can't login. That means with the second one, I also can't set the correct time.

The fist one reports a battery status of only "12", even on the display it shows full battery (battery symbol with 5 steps))

@szappanyos
Copy link

I have integrated the following code and it works:
https://github.com/alexvenom/XiaomiCleargrassInkDislpay/blob/master/XiaomiClearGrassInk.js

Here is my branch:
https://github.com/szappanyos/node-red-contrib-xiaomi-ble/tree/support-cleargrass-cgg1

I haven't made a PR because I don't think it is integrated correctly and I think it breaks some things. I think it doesn't work if you try to use more devices in parallel.

@caobach42
Copy link

Hi @szappanyos, I couldn't make it works with clear glass version, only get battery 12 sometimes
Could you check code?

@szappanyos
Copy link

@caobach42 I have made a fix.
Also make sure that you are using the support-cleargrass-cgg1 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants