Reading GATT Data from Xiaomi Flower Care

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
JohnN
Posts: 8
Joined: Sat Jan 25, 2020 11:05 am

Re: Reading GATT Data from Xiaomi Flower Care

Post by JohnN » Fri Feb 21, 2020 10:10 pm

Should I write some kind of ticket?

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Reading GATT Data from Xiaomi Flower Care

Post by jimmo » Sat Feb 22, 2020 12:03 am

JohnN wrote:
Fri Feb 21, 2020 10:10 pm
Should I write some kind of ticket?
Yes please

JohnN
Posts: 8
Joined: Sat Jan 25, 2020 11:05 am

Re: Reading GATT Data from Xiaomi Flower Care

Post by JohnN » Sat Feb 22, 2020 10:12 am


User avatar
iotman
Posts: 52
Joined: Sat Feb 02, 2019 4:06 pm
Location: Nanoose Bay, Canada
Contact:

Re: Reading GATT Data from Xiaomi Flower Care

Post by iotman » Sat Feb 22, 2020 4:58 pm

Hi, just a quick note to let you know we're watching this thread with great interest. The Xiaomi Flower Care unit is a really good example of a BLE sensor, so if you can make this work, it will likely set a really good example for making BLE work with any sensor.

I have some Wemos ESP32 OLED boards (non SPI ram) that I will be using to implement the BLE code, and I bought some Xiamoi BLE sensors too, so that I can confirm that it is working.

Cheers, AB

MatthiasP
Posts: 7
Joined: Mon Apr 19, 2021 7:31 pm

Re: Reading GATT Data from Xiaomi Flower Care

Post by MatthiasP » Thu Apr 22, 2021 6:18 am

Hi All,

although this thread is rather old, I wanted to let you know that I got Xiaomi Flower Care sensors working with esp32-idf4-20210202-v1.14.bin and esp32-20210418-v1.15.bin. I still have to clean up the code - stay tuned.

Cheers,
Matthias

MatthiasP
Posts: 7
Joined: Mon Apr 19, 2021 7:31 pm

Re: Reading GATT Data from Xiaomi Flower Care

Post by MatthiasP » Tue May 04, 2021 3:55 pm

Hi,

the code is now provided on GitHub:
https://github.com/matthias-bs/MicroPython-MiFlora

Cheers
Matthias

User avatar
iotman
Posts: 52
Joined: Sat Feb 02, 2019 4:06 pm
Location: Nanoose Bay, Canada
Contact:

Re: Reading GATT Data from Xiaomi Flower Care

Post by iotman » Tue May 04, 2021 4:31 pm

Great news, thank you Matthias!

Cheers, AB

User avatar
Werner_G
Posts: 17
Joined: Fri Sep 13, 2019 8:15 am
Location: Dortmund / Germany

Re: Reading GATT Data from Xiaomi Flower Care

Post by Werner_G » Wed May 05, 2021 7:45 am

also great job - thank you!

User avatar
scy
Posts: 7
Joined: Sat Sep 05, 2020 12:50 am
Contact:

Re: Reading GATT Data from Xiaomi Flower Care

Post by scy » Mon Jan 03, 2022 12:39 pm

In case someone stumbles over this thread trying to parse the advertisement data from the Xiaomi LYWSDCGQ BLE Temperature/Humidity sensors, which work very similarly, I’m providing some code to parse their data. See the announcement thread or go directly to the library.

Post Reply