Qingping cleargrass CGD1 alarm clock with temperature and humidity measurements

Should you see {"tem":24,3,"hum":33.7} ?

{“id”:“58:2d:34:52:4f:09”,“rssi”:-72,“distance”:4.287841,“servicedata”:“080c094f52342d580104db008e01020164”,“servicedatauuid”:“0000fdcd-0000-1000-8000-00805f9b34fb”}

Should you see {"tem":21,9,"hum":39,8} ?

Should but dont same story for mi Flora.

For the CGD1, if you are using ESP32 and uploading with Arduino IDE or PIO could you replace line 510 of ZgatewayBT.ino:
if (strstr(BLEdata["servicedata"].as<char *>(), "080caf") != NULL)
by
if (strstr(BLEdata["servicedata"].as<char *>(), "080c09") != NULL)

and say if it works

1 Like

Will give it a try later today. Thanks for all the help btw.

Success!!! You da man!!!

Now for the Mi flora

1 Like

Great,

Try to replace this line
pos = strpos(service_data, "209800");
by
pos = strpos(service_data, "029800");

1 Like

Testing right now and I will report back later. Where is your donate page and I will send you a beer.

Guessing these bits (once confirmed) will make it into 0.9.5?

I can confirm that both the alarm clock and Mi Flora are now working!

Perfect, I will change the way the services are detected.

Spoke too soon, 4 flora sensors appear in HA but never get populated with any values. Just checking the MQTT logs

{“id”:“c4:7c:8d:61:7d:ae”,“name”:“Flower care”,“rssi”:-84,“distance”:13.81901,“servicedata”:“3102980010ae7d618d7cc40d”,“servicedatauuid”:“0000fe95-0000-1000-8000-00805f9b34fb”}

{“id”:“c4:7c:8d:61:7d:ae”,“name”:“Flower care”,“rssi”:-84,“distance”:13.81901,“servicedata”:“3102980010ae7d618d7cc40d”,“servicedatauuid”:“0000fe95-0000-1000-8000-00805f9b34fb”}

{“id”:“c4:7c:8d:61:7d:ae”,“name”:“Flower care”,“rssi”:-81,“distance”:10.46739,“servicedata”:“310298000fae7d618d7cc40d”,“servicedatauuid”:“0000fe95-0000-1000-8000-00805f9b34fb”}

{“id”:“c4:7c:8d:61:7d:ae”,“name”:“Flower care”,“rssi”:-84,“distance”:13.81901,“servicedata”:“3102980010ae7d618d7cc40d”,“servicedatauuid”:“0000fe95-0000-1000-8000-00805f9b34fb”}

Is your mi flora updated with the last version of the firmware?

How can you tell? Nothing in the Mi Home app about firmware updates for the Mi Flora

Normally it is the same thing as the clock, you should be able to see the version and update it, if it is not the last one.

ha you need to use a different app to get v 3.2.2.

app is called Flower Care by Lifestyle

3 minutes and still nothing in HA

Try to replace this line
pos = strpos(service_data, "209800");
by
pos = strpos(service_data, "029800");

flipped this back and now with new firmware it appears to be working

Once again thanks for all the help.

1 Like

If you agree I will ask for your help in testing a refactoring of this.

fine by me, I’ll look out for the new version.

Hello, does OMG enable to set time and alarm on this device?