emericg / WatchFlower

A plant monitoring application that reads and plots data from compatible Bluetooth sensors and thermometers like Xiaomi 'Flower Care' or Parrot 'Flower Power'
https://emeric.io/WatchFlower
GNU General Public License v3.0
192 stars 27 forks source link

[Feature Request] Please add Xiaomi Qingping Bluetooth Smart Alarm Clock support #60

Closed EcherArt closed 2 years ago

EcherArt commented 2 years ago

Is your feature request related to a problem? Please describe. While this device is indeed an alarm clock, it also has temperature and humidity sensor. Unfortunately I cannot use it with your app right now, but I saw Xiaomi Digital Hygrometer Alarm Clock and QingPing Temp RH Lite clock supported, so I hope it's possible for my device to be integrated.

Describe the solution you'd like WatchFlower discovering the device via Bluetooth and connecting to it.

Describe alternatives you've considered Buying another device

Additional context Clock in question (pic from aliexpress): https://ae01.alicdn.com/kf/H335313b8c5a3472c98a790ef9d09d550S/Xiaomi-Qingping-Bluetooth-Alarm-Clock-3-in-1-Temperature-Humidity-Sensor-Monitor-Mijia-Night-Light-Mihome.jpg

Clock's official page from Quingping: https://www.qingping.co/bluetooth-alarm-clock/overview

emericg commented 2 years ago

Yes I will try to add this device, but because I don't have it myself I hope that I can find the relevant information on the Internet.

EcherArt commented 2 years ago

Thank you! I have the device so if I can help you by sending the logs/photos, I'll be glad to do so.

emericg commented 2 years ago

Ok so I think I've got this mostly implemented, I just need one more bit of infos. Can you run nRF Connect software, and get me the Bluetooth name of the device?

And if you want to be thorough, connect to the device and get a screenshot of the services, like so: nrf_connect_device

Thanks

EcherArt commented 2 years ago

Hello, thank you so much! Here is what I found by connecting to the device:

Screenshot_20220513-220750 Screenshot_20220513-220827 Screenshot_20220513-220843

emericg commented 2 years ago

Damn I'm sorry I completely missed your reply. Thanks for the infos, I can confirm the device will be supported in the 4.0 version!

Can you take some additional screenshots of the content of the "unknown service" with UUID 0xFE95 ? At the moment the temp, humidity and battery will be handled, but maybe there is a way to add support for settings the clock. Thanks.

EcherArt commented 2 years ago

That's awesome, thank you!

Hopefully it'll help:

Screenshot_20220524-204748 Screenshot_20220524-204847

emericg commented 2 years ago

Send me an email with your Google account (or iCloud account) and I'll add you to the testers for the new version!

EcherArt commented 2 years ago

Hi! My account is sverty2@gmail.com However, there is a problem: I do not use the Android version, I use version for Linux. Unfortunately, I won't be able to install it from Google Play: it has only paid version, and since Google disabled all payment options from my country, I won't be able to purchase your app. I guess I can compile it from the phone, but so far I have no experience in doing so.

emericg commented 2 years ago

Sorry I just assume everyone is on mobile... It's even easier to test on linux, just pick up a build from here: https://github.com/emericg/WatchFlower/actions/runs/2469137999

emericg commented 2 years ago

Did you have a chance to test this?

EcherArt commented 2 years ago

Yes, sorry for the late answer, it does work! image

emericg commented 2 years ago

Great thanks for testing this!