ESP32 and new Bluetooth Xiaomi Mijia device

Has anybody tried intercepting packets with ESP32/ESPHome using LYWSD03MMC device?
Device link is here: [Newest Version] XIAOMI Mijia Bluetooth Thermometer 2 Wireless Smart Electric Digital Hygrometer Thermometer 1Pcs Health Management from Health & Beauty on banggood.com
https://banggood.app.link/3Wl0u7oHN1

Not sure if direct links are permitted here. If not please advise to remove it.

1 Like

No problem with the link, indeed they let us know exactly what we are discussing.

I haven’t seen that device yet, but perhaps put a feature request on the esphome github.

Not sure it is supported (yet). There are esphome components for the LYWSD02MMC, (which I just tried yesterday and can confirm works nicely) the CGG1 and the LYWSDCGQ. As Nick said you should register a feature request if one of the above components does not work with it.

i get my Xiaomi Mijia Smart Bluetooth Thermometer 2
image

and i have problem read the data, i tested using:

  • platform: xiaomi_lywsdcgq
    mac_address: XXXXXXXXXX
    temperature:
    name: “Xiaomi LYWSDCGQ Temperature”
    humidity:
    name: “Xiaomi LYWSDCGQ Humidity”
    battery_level:
    name: “Xiaomi LYWSDCGQ Battery Level”

  • platform: xiaomi_lywsd02
    mac_address: XXXXXXXXXX
    temperature:
    name: “Xiaomi LYWSD02 Temperature”
    humidity:
    name: “Xiaomi LYWSD02 Humidity”

without any success :frowning:

Those are LYWSD03MMC, not get supported. If you want to get some more details, read this thread:

I managed to get data from these using the custom component mitemp_bt installed in hassio via HACS. But the problem is they stop reporting data after a while. it seems that is a problem with Raspberry Pi Bluetooth kernel. So unless i reboot my raspberry pi every so often, that solution also dint help. Btw these seem to be broadcasting encoded/encrypted messages unlike other sensors and hence a decrypting BINDING KEY is required. the process wasnt that painful to find that key. Now waiting for this to be supported in ESPHome as my ESP32 is very reliable with bluetooth and i can anyways reboot it every night to keep it going.

1 Like

How do you reboot your esp32 every night? Could you please share your automation? Or show me the way :slight_smile:

This https://esphome.io/components/switch/restart.html plus this https://esphome.io/components/time.html

Hi Nick, Thanks for the reply. Got it done with the link you shared.

1 Like

This will help you out it explain everything:

If you want to flash the sensors use
https://atc1441.github.io/TelinkFlasher.html

Additional info: