Xiaomi wireless smart electronic digital clock hydrometer thermometer

Hi guys

Is it possible to integrate this xiaomi product as it uses BLE and shows temperature, humidity and clock on a e-ink screen.

https://s.click.aliexpress.com/e/XGCsbzQ

Thanks.

It might be supported by the ESPHome project.
ESPHome supports the circular LCD mijia/xiaomi thermometer.

https://esphome.io/components/sensor/xiaomi_mijia.html

Isn’t this a completely different device? In my OP the device has temperature, humidity and time

Yes! hence the might :slight_smile:
There are three different xiaomi BLE temperature devices - the round LCD one, a similar round e-paper one, and the square version you linked.
Perhaps the BLE API is the same?

yeah thats what I though the BLE API might be the same

I integrated a Xiaomi Mijia temperature and humidity sensor using BLE through an ESP32 and ESPHome.
Link here: https://esphome.io/components/sensor/xiaomi_mijia.html?highlight=mijia

I get about 15m (40ft) transmission range between sensor and receiver

1 Like

I would love to see this device integrated into HA!
I also think it shouldn’t be hard as it PROBABLY uses the same or similar BLE sensor implementation, but it’s just a guess.

There is actually a raw custom integration for home assistant. Someoe tried to reverse-engineer the BLE protocol used in this thermometer. Here’s the article (it’s in Russian, but I guess google translate can handle it).
And here’s a github page for those who wish to contribute.

1 Like

Wonderful! It would be great if Home Assistant developers use this custom component to give official support to the Xiaomi e-ink thermometer.

Just integrated it into OpenMQTTGateway, I tested with ESP32 but it should work with Arduino/ESP8266 + HM10 also.

it is available on the development branch.

3 Likes

Is the update just for the square one? Or also for the new e-ink round one?

The update is for the e-ink square one ; -). The round one e-ink should be integrated rapidly also.

1 Like

Thank you for the hard work. Please keep us posted when you add it.
BTW, do you think polling for these sensors have a separate interval definition than the other Bluetooth devices? I wanna keep polling other devices at 10 second intervals but I’m afraid that 10 seconds on the xiaomi sensor will kill its battery much faster.

I could do some μcurrent checks when there is a sensor value readings to see if it has an impact. The actual method reads sensor advertisements, it does not connect to the sensors. I’m not sure it will impact the battery life if you go down the polling interval. I will confirm that with my current ranger.

1 Like

One other way is to put the polling interval to 10s and see how much the mi jia battery go down. And compare it with one week with 55s. The 2 weeks compared should be close to avoid being on a different battery discharge acceleration.
From what I see with my Mi jia, I went from 94 % to 92 % in the last seven days.

I went down from 12 to 11 and back to 12 in the last couple of days since I started on 10s, I’ll check it after a couple of weeks as well, but battery voltage isnt very precise at these levels usually.

Just added it in dev branch, nevertheless I need to do some tests with autodiscovery.

1 Like

On a different note does the openmqttgateway integrate the Xiaomi bt temp and humidity ?

OMG integrates all these devices :

and yes the mijia temp &hum works.