# Bluetooth Thermometer Hygrometer from Xiaomi

**URL:** <https://community.homey.app/t/bluetooth-thermometer-hygrometer-from-xiaomi/16483>\
**Category:** Devices\
**Created:** [August 5, 2019, 7:58pm UTC](https://community.homey.app/t/bluetooth-thermometer-hygrometer-from-xiaomi/16483 "2019-08-05T19:58:30Z")\
**Posts on this page:** 18\
**Page:** 2

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [April 26, 2021, 9:08am UTC](https://community.homey.app/t/bluetooth-thermometer-hygrometer-from-xiaomi/16483/22 "2021-04-26T09:08:37Z")

</div>

Ah, I thought you meant you were using the devices with Homey directly 😃

---

<div class="post-metadata">

**Author:** ![Alessandro\_Rossi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/alessandro_rossi/32/37432_2.png) [@Alessandro\_Rossi](https://community.homey.app/u/Alessandro_Rossi)\
**Post date:** [April 26, 2021, 9:13am UTC](https://community.homey.app/t/bluetooth-thermometer-hygrometer-from-xiaomi/16483/23 "2021-04-26T09:13:53Z")

</div>

I can detect them with Homey, but didn’t get how to manage them directly…but HA solved it 😀  
 ![Immagine 2021-04-26 111031](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/f/af2dadd90a815e4d230ec90079678c6e5070ba77.png)

 ![Immagine 2021-04-26 111214](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/6/56f9dcf5f7b327e99a77f8b9a008e558eb3fcf4a.png)

---

<div class="post-metadata">

**Author:** ![rzarajczyk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rzarajczyk/32/8447_2.png) [@rzarajczyk](https://community.homey.app/u/rzarajczyk)\
**Post date:** [May 25, 2021, 10:22am UTC](https://community.homey.app/t/bluetooth-thermometer-hygrometer-from-xiaomi/16483/24 "2021-05-25T10:22:40Z")

</div>

What are these screenshots? They are not from Homey (at least I haven’t seen such screens), and they are not from Home Assistant (at least I haven’t seen such screens)…

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [May 25, 2021, 10:27am UTC](https://community.homey.app/t/bluetooth-thermometer-hygrometer-from-xiaomi/16483/25 "2021-05-25T10:27:21Z")

</div>

[https://tools.developer.homey.app/tools/ble](https://tools.developer.homey.app/tools/ble)

---

<div class="post-metadata">

**Author:** ![Miroslav\_Gluch](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/miroslav_gluch/32/34842_2.png) [@Miroslav\_Gluch](https://community.homey.app/u/Miroslav_Gluch)\
**Post date:** [June 15, 2021, 1:06pm UTC](https://community.homey.app/t/bluetooth-thermometer-hygrometer-from-xiaomi/16483/26 "2021-06-15T13:06:39Z")

</div>

Any new “hopes” about connecting a thermometer? 🙏

---

<div class="post-metadata">

**Author:** ![Thomaz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thomaz/32/10168_2.png) [@Thomaz](https://community.homey.app/u/Thomaz)\
**Post date:** [June 15, 2021, 6:39pm UTC](https://community.homey.app/t/bluetooth-thermometer-hygrometer-from-xiaomi/16483/27 "2021-06-15T18:39:28Z")

</div>

Thought I´d post here to help someone else. I have two Xiaomi BT thermometer hygrometers. Last week I discovered that I can use my Xiaomi Bedside Lamp as “BLE Gateway” (option under profile in the Android Xiaomi app). It connects to the BLE sensors via Bluetooth, and uploads to Xiaomi cloud. It can then be brought into Home Assistant via this integration.

> **[al-one/hass-xiaomi-miot](https://github.com/al-one/hass-xiaomi-miot)**
>
> Auto integrate xiaomi devices by miot-spec for HomeAssistant - al-one/hass-xiaomi-miot

The best would off course be if Homey could connect directly to these devices via Bluetooth.

---

<div class="post-metadata">

**Author:** ![Charles](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@Charles](https://community.homey.app/u/Charles)\
**Post date:** [November 29, 2021, 6:53pm UTC](https://community.homey.app/t/bluetooth-thermometer-hygrometer-from-xiaomi/16483/28 "2021-11-29T18:53:00Z")

</div>

Sorry for revival but does anyone succeeded to add these BLE (Xiaomi and ATC) as passive BLE sensor? I mean sniffing and decoding broadcast?

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [November 29, 2021, 6:55pm UTC](https://community.homey.app/t/bluetooth-thermometer-hygrometer-from-xiaomi/16483/29 "2021-11-29T18:55:06Z")

</div>

You’re going to need a specific app for that, which AFAIK doesn’t exist for Homey.

---

<div class="post-metadata">

**Author:** ![Charles](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@Charles](https://community.homey.app/u/Charles)\
**Post date:** [November 29, 2021, 7:03pm UTC](https://community.homey.app/t/bluetooth-thermometer-hygrometer-from-xiaomi/16483/30 "2021-11-29T19:03:35Z")

</div>

I think so.  
I’m using BLE Ruuvi app with success, ATC and other works the same they send a broadcast frame that just need to be decoded. So my guess would be to have a kind of generic BLE broadcast decoder, starting with ATC or public MI (like the picture) would be awesome. Unfortunately, I’m not skilled for. That’s a shame.

---

<div class="post-metadata">

**Author:** ![ZsR](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/zsr/32/53367_2.png) [@ZsR](https://community.homey.app/u/ZsR)\
**Post date:** [April 1, 2022, 1:23pm UTC](https://community.homey.app/t/bluetooth-thermometer-hygrometer-from-xiaomi/16483/31 "2022-04-01T13:23:50Z")

</div>

Guys, I have just put together an application that scans for these (LYWSD03MMC) devices flashed with ATC firmware.  
It needs to use the ATC441 format.

The code is quite dirty, feel free to use or modify it. 🙂  
Already submitted as an application to Homey, it is currently under testing.

> **[GitHub - Zsoltt-dom/MiTempHum-Homey: Homey App for Xiaomi Mi Temperature and...](https://github.com/Zsoltt-dom/MiTempHum-Homey)**
>
> Homey App for Xiaomi Mi Temperature and Humidity Monitor modded with custom 'ATC' firmware using ATC441 advertising format. - GitHub - Zsoltt-dom/MiTempHum-Homey: Homey App for Xiaomi Mi Te...

---

<div class="post-metadata">

**Author:** ![horakmar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/horakmar/32/33849_2.png) [@horakmar](https://community.homey.app/u/horakmar)\
**Post date:** [July 18, 2022, 9:24pm UTC](https://community.homey.app/t/bluetooth-thermometer-hygrometer-from-xiaomi/16483/32 "2022-07-18T21:24:36Z")

</div>

Hello guys, hello ZsR, I made some changes, fix bug and can participate if you want. I made pull request so you can check it on github. There is still bug with battery, maybe check later. But thx! Finally my thermometers works with homey! 🙂

---

<div class="post-metadata">

**Author:** ![ZsR](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/zsr/32/53367_2.png) [@ZsR](https://community.homey.app/u/ZsR)\
**Post date:** [July 19, 2022, 5:30am UTC](https://community.homey.app/t/bluetooth-thermometer-hygrometer-from-xiaomi/16483/33 "2022-07-19T05:30:56Z")

</div>

Thanks for taking you time and fixing the code! I merged your fix! 🙂

---

<div class="post-metadata">

**Author:** ![VanGilles](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/vangilles/32/11478_2.png) [@VanGilles](https://community.homey.app/u/VanGilles)\
**Post date:** [September 22, 2022, 8:03am UTC](https://community.homey.app/t/bluetooth-thermometer-hygrometer-from-xiaomi/16483/34 "2022-09-22T08:03:19Z")

</div>

Thanks ZsR and horakamr, it works great.

---

<div class="post-metadata">

**Author:** ![Charles](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@Charles](https://community.homey.app/u/Charles)\
**Post date:** [October 13, 2022, 12:33am UTC](https://community.homey.app/t/bluetooth-thermometer-hygrometer-from-xiaomi/16483/35 "2022-10-13T00:33:55Z")

</div>

Awesome does works but CGG1 with ATC are quite long to detect, I needed to install them 3/4 times before seeing it

as we can’t set `polling_interval` and `scan_duration` into this app (we can with ruuvi app)

so default are 60s and 10s scan I have better results with 90s 30s, because 10s we miss often frame

```javascript

        let polling_interval = this.homey.settings.get('polling_interval');
        let scan_duration = this.homey.settings.get('scan_duration');
        //default value for polling and scan
        if (!polling_interval) polling_interval = 60;
        if (!scan_duration) scan_duration = 10;

```

best would be able to set the intervals into app like on ruuvi app

---

<div class="post-metadata">

**Author:** ![ZsR](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/zsr/32/53367_2.png) [@ZsR](https://community.homey.app/u/ZsR)\
**Post date:** [March 29, 2023, 11:14am UTC](https://community.homey.app/t/bluetooth-thermometer-hygrometer-from-xiaomi/16483/36 "2023-03-29T11:14:07Z")

</div>

I have managed to publish the app in the App store!  
Here is the topic:

> [@Xiaomi Miija (Temperature and Humidity)](https://community.homey.app/t/xiaomi-miija-temperature-and-humidity/78560):
>
> I’m happy to announce, that the Xiaomi Miija app is available in the app store. Currently, it supports the Xiaomi Mi Temperature and Humidity monitor (BLE), with the ATC441 protocol, flashed with a custom firmware. The custom firmware can be flashed from here [GitHub - pvvx/ATC\_MiThermometer: Custom firmware for the Xiaomi Thermometers and Telink Flasher](https://github.com/pvvx/ATC_MiThermometer) . I’m not a developer, but in case of any idea, I’m happy to do what I can.

---

<div class="post-metadata">

**Author:** ![Pieter\_Pessers](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pieter_pessers/32/8848_2.png) [@Pieter\_Pessers](https://community.homey.app/u/Pieter_Pessers)\
**Post date:** [January 6, 2024, 10:15pm UTC](https://community.homey.app/t/bluetooth-thermometer-hygrometer-from-xiaomi/16483/37 "2024-01-06T22:15:42Z")

</div>

Does someone know if i can also attatch the XIAOMI MMH MCO-C401 to homey with this app? It also needs to be updated with telink flasher to a custom bluetooth firmware and then a custom zigbee firmware. It’s a e-ink temperature- humitidy sensor.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [January 7, 2024, 6:26am UTC](https://community.homey.app/t/bluetooth-thermometer-hygrometer-from-xiaomi/16483/38 "2024-01-07T06:26:22Z")

</div>

> [@Pieter\_Pessers](#):
>
> Does someone know if i can also attatch the XIAOMI MMH MCO-C401 to homey with this app?

Yes: no.

---

<div class="post-metadata">

**Author:** ![Pieter\_Pessers](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pieter_pessers/32/8848_2.png) [@Pieter\_Pessers](https://community.homey.app/u/Pieter_Pessers)\
**Post date:** [January 7, 2024, 8:01am UTC](https://community.homey.app/t/bluetooth-thermometer-hygrometer-from-xiaomi/16483/39 "2024-01-07T08:01:55Z")

</div>

Thank you, Robert.

[Previous page](https://community.homey.app/t/bluetooth-thermometer-hygrometer-from-xiaomi/16483.md?page=1)
