Sleep as Android talks to Xiaomi Mi Band 1&2

It was a long quest. Starting with the introduction of the first version of the budget band from Xiaomi, we have been flooded with requests from you, the users of Sleep as Android, to make good use of the band.

Unfortunately, there was no documented protocol which we could use and the task seemed repeatedly possible and impossible with the efforts of various independent developers who seemed to crack the Bluetooth protocol that Mi Band used.

But Xiaomi always stroke back and changed the protocol.

After a long long long and seemingly impossible quest to get Mi Band talk to Sleep as Android, we got a word from Zdenek Horak, the author of Tools & MiBand (called MiBand Tools then) that he might be able to get this relationship working. But even for him, it was not an easy task, and even Zdenek felt at times that it’s an impossible thing.

But he didn’t give up. And finally, here we are.

Today, we can announce that Sleep as Android supports Xiaomi Mi Band 1&2!


How to:

For the integration to work, please buy & download the amazing Tools & Mi Band – the best Mi Band app on Android – Sleep as Android gets a full featured Mi Band support.

Motion tracking (sleep phases tracking)

Enable Settings > Wearables > Use wearable. 

Heart rate measurement

You need to enable heart rate in Tools & Mi Band:

Go to Tools & Mi Band > Navigation drawer > Heart rate > Settings and set the interval at which you want heart rate to be measured. This will then send heart rate to Sleep as Android at selected rate during sleep tracking.

You also need to enable heart rate monitoring in Sleep as Android:

Enable Sleep as Android > Settings > Wearables > Heart rate monitoring.

And battery life? With a full charge, you get to 95% in the morning after a whole night’s track. So we are probably better off than the Pebble (RIP)…

CAUTION: Sorry Mi Band 1 users, the integration only works with the Mi Band 2 with the newer firmware. For Mi Band 1 it is not technically possible. No access to its data. Mi Band 1 has been integrated as well! Please see Now Sleep as Android talks Mi Band 1+2 (-1S)


130 thoughts on “Sleep as Android talks to Xiaomi Mi Band 1&2

  1. Does smart wake up work with the Mi Band? I ask because since I switched from using the smartphone sensors to the Mi Band 2, I get woke up at the exact alarm time and not at some point in the 30 minute window before. I’m wondering whether I’m missing some setting or whether it just works this way.

    I configured “Use wearable” and the heart rate settings in both apps as described above. What about the smartphone sensors (e.g. sonar)? Do they have to get turned off somehow or otherwise configured differently?

    Any hints are greatly appreciated.

  2. Currently, I’m running into strange synchronizations problems with MITool and Mi Band 2. I have sent them to you already.At this moment SAA seems to sometimes register no activity and no HR; sometimes there are two HR, and no activity, and sometimes all activity but no HR.
    I am wondering what happens if I add the Phaser to the mix. I ordered the Phaser already, so now I hope it will work well.

    I am hopeful, as SAA worked without problems for two years before I added the Mi Band.

  3. Seconded! I got the test tracking to work once but doesn’t work on average. Last night was a flat graph. I specifically bought that mi band app to enable better sleep tracking. Ideas?

  4. It allows to do both motion detection and heart rate tracking, when it works, but even the motion taken from the hand alone should be better than phone readings form the bed, anyway.

    I speak from what I’ve read, I do not own the device, but intend to.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.