Xiaomi Mijia bluetooth temperature & humidity sensor compatibility

Hi everobody, you should consider adding mi_temp custom_component in HACS store…

Why? It is already there… :smiley: Look under integrations in HACS it is called “Xiaomi passive BLE monitor sensor platform”.

Btw the install instruction say the same…
The easiest way is to install it with HACS. First install HACS if you don’t have it yet. After installation you can find this custom component in the HACS store under integrations.

not working with the square version LYWSD03MMC

The custom component does support the LYWSD03MMC. You do need to add a key in the encryptions option (GitHub - custom-components/ble_monitor: BLE monitor for passive BLE sensors) however.

2 Likes

:star_struck: Thank’s Ernst, it’s working now ! :innocent:
I download the software on me Android and get the pairings.txt file containing the Bindkey.

software = https://ru.kapiba.ru/mihome/files/old/MiHome_5.6.65_63005_vevs.apk
more info = https://github.com/custom-components/sensor.mitemp_bt/issues/7

1 Like

ooops. New to the forum, not used to…

Has anyone compared the bluetooth range of a Rpi 3B+ vs the Rpi 4 ? I have quite a lot of Xiaomi bluetooth temperature sensors and I wouldn’t like to lose connection with some of them.

I have a LYWSD03MMC that I want to integrate with HA.
Do I have to sync bluetooth with hcitool before?
Thank you !

You need to install the custom component, you cannot use the build in component for LYWSD03MMC. Just follow the instructions here.

Already is OK.
Thanks :slight_smile:

hi rg123, https://ru.kapiba.ru needs username and password, is there any other link to get the apk?

I would never ever try an unknown russian source… And for all your android needs, there is always apkmirror. :slight_smile:

https://www.apkmirror.com/uploads/?q=mihome

1 Like

The username is not needed and the password is 54789512458 according to the blog.

I have successfully integrated 3 sensors with the custom component (all are the square model LYWSD03MMC), and they are working in other rooms without almost any issues with the bluetooth range of the RPi4.
image

1 Like

Hi, i cant connect the square xiaomi sensors.

I downloed the app: https://ru.kapiba.ru/mihome/files/old/MiHome_5.6.65_63005_vevs.apk

Then i add my new temp sensors in the app, but i don’t know what have to do now or where can i find de file with de keys of the sensors :frowning:

Thanks and sorry for my bad english

This sensor is now supported by OpenMQTTGateway on ESP32 based boards.
The data are retrieved every 10 minutes by default.
No password needed, once the firmware is flashed the values are retrieved.

[EDIT] LYWSD03MMC is also supported by OpenMQTTGateway with the ATC custom firmware. This way you get the values more frequently and with no impact on device battery life.

1 Like

TIP: Getting the bind key for the Xiaomi Mijia LYWSD03MMC sensor

see https://github.com/mKeRix/room-assistant/issues/277

2 Likes

I suspect this is is a silly question, but is it ok to delete the custom Vevs app once the bindkeys have been discovered, the YAML config updated and the sensors are reporting successfully in HA?

For sure - once the bind keys are in place, you can delete the said apps.

1 Like

Hello! Can you share the config? I managed to connect esphom. Now I am trying to implement it in hasio.

If someone is interested in a pure shell solution: https://github.com/belkop-ghb/LYWSD03MMC. Data are read by a cronjob and posted to MQTT.

1 Like