[APP][Pro] Xiaomi Miija (Temperature and Humidity)

Currently, it supports the Xiaomi Mijia (LYWSD03MMC) (BLE + Zigbee), with the ATC441 protocol enabled, 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 · GitHub .

Xiaomi MJ_HT LYWSDCGQ/01ZM, Xiaomi Mijia LYWSD03MMC and Xiaomi Temperature and Humidity Monitor Clock LYWSD02MMC - shall be working out of the box (Bluetooth only).

Please note that Bluetooth on Homey 2023 is far from ideal state, mostly due to the limited range. So if device works in close distance but do not work from 3-4m, it’s not this app fault - please keep contacting Athom.

Key credits still to ZsR, original developer of this app.
Also thank you to robertklep for code contribution and some consultancies :wink:

note
Latest LYWSD03MMC are shipped with firmware 2.1.1_0159, which requires MI Token Extractor and special modified firmware, so that you can flash later on ATC BLE or Zigbee firmware.

Support the development

:heart: Community apps and appreciation

These Homey Community apps are developed and maintained in my spare time.

Did you know? In my experience maintaining community Homey apps, only a very small proportion of users choose to support their development financially—even when a new device integration or specific feature has been implemented at their request.

Contributions are never required, but they are a meaningful way to recognise the time invested in development, testing, compatibility updates and ongoing user support. If one of my apps has been useful to you, you can optionally show your appreciation here:

:heart: Send an optional thank-you via PayPal

A contribution does not unlock additional features or affect the support you receive. It is simply a way to say thank you.

My Homey apps

Smart Presence  | 72x72
Smart Presence
Wi-Fi presence detection
Xiaomi Mi Home | 72x72
Xiaomi Mi Home
Xiaomi Mi Home devices
Broadlink    | 72x72
Broadlink
IR, RF and smart devices
TP-Link KASA LAN |                     72x72
TP-Link KASA LAN
Local Kasa control
Yeelights LAN | 72x72
Yeelights LAN
Local Yeelight control
Xiaomi Miija | 72x72
Xiaomi Miija
Temperature and humidity sensors
Octoprint    |            72x72
Octoprint
Monitor your 3D printer
Virtual Radar | 72x72
Virtual Radar
ADS-B aircraft tracking
enigma2      | 72x72
enigma2
Control Enigma2 receivers

View all my Homey apps →

Thanks for adding this. I do have an issue with reading the correct values in Homey.
After flashing the firmware, all looks well in the Telink Flasher app:

These values are also shown on the display.

However, the values in Homey are totally off:

Does anyone have an idea on how to fix this?

Hello DGalama,

Can you check if the advertising format is atc441?

Awesome, that did the trick!
Thanks!

I’m happy that it worked! :slight_smile:
Enjoy your smart home! :slight_smile:

Could you please help me wih adding a LYWSD03MMC to my Homey Pro 2019 using your app? I have succesfilly flashed the sensor:
Status: Hardware Version: LYWSD03MMC B1.4, Software Version: 4.3
Vbat: 2745 mV , Temp: 28.20°C, Humi: 55.85%, ID: 190, Reed switch counter: 0, flg: 0x04:r0/t0

I set it to advertising type ATC1441, but Homey / the app can’t find the sensor while sarching for it. “No new devices found”. Do I need to pair it first with Homey? Or am I missing something else?

Thanks for your help!

I need to test it on my 2019 Homey Pro, but it should work. Sometimes you need to wait a few minutes until it is discovered.
I’ll test it and I will get back to you.

Thanks! Already any idea? I can wait but it keeps returning no devices found. Do I have to do something with the sensor? There is no button on it. Thanks again.

How much distance is there between Homey and the sensor? Since it uses BLE, range is limited.

Hi!
Thanks for highlighting this issue! It looks like that the uuid is reported differently on the Homey Pro 2019 and on the new Homey Pro.
I have just corrected this and and the new version 1.1.3 is already out! Please update to the latest version, and then it shold be working now.

Hi Robert,

Yeah, the BLE range is quite limited, but in the custom firmware there is a possibility to raise the transmitting dB, that could help.
I live in a 3 storey building, the homey is in the middle. It receives sensor data from all storeys. I think the range can be defined around 20m in buildings…

Probably not on HP23, right :frowning:

I’m on HP23 currently. In our house, it is working quite well. (10-15m distances, through walls) Of course, I need to place the HP23 in the middle. But a satellite Homey Bridge that could repeat the BLE would also be helpful.

Yes, after the update I can add the monitor without any problems. Thank you! :smiley:

Hoe often do the readings update? Can I adjust these values?

Hi there!

I have a Xiaomi Miija and flashed it using the provided link (see screenshot) and it seems to work correctly on the web app, but when adding it to Homey Pro it says no device found…

Any idea and suggestion to make it work?

The thermometer is 2 meters away from the Homey, so range shouldn’t be an issue.

App version is v1.1.3

Have you enabled ATC441 protocol ?

As @Sharkys asked, I think the protocol is not set correctly. Please check it. :slight_smile:

Actually, I did! :grin:

ATC1441, right?

And just to be sure, you also closed this browser page, to ensure it’s disconnected.
In case you have tried multiple times and it still do not work, I would suggest to restart your Homey…