New MiBand6 integration for xDrip


I’m glad to present a new Xiaomi MiBand6 (also known as the Xiaomi Mi Smart Band 6) integration for xdrip. The new version is already available for people who supports this project on patreon and would be available after 8.11.2021 for everyone.

Xiaomi managed to pack in more features while keeping the price as low as it always was, which I think makes this band ideal for glucose monitoring.

The watchface uploading for this band takes 1-2 seconds, which allow offering up to 10 days of battery life with active life tracking features. And I think it can last much more with the power saver mode, but I’ve not tested this at the moment.

This time, MiBand6 brings SpO2 monitoring that helps to monitor blood oxygen saturation levels, which is more important than ever.

I like this watch and hope you will like it too 🙂

I want to thank everyone who supported developing this integration with suggestions and donations. 

Special thanks to Otto75so3e, mzst 123, Lukas Petro, István Ficsór, Felix Seidel, Aleandro Corallo, Gábor Vértényi, who supported me here almost from the beginning of this project

Dedicated thanks to Kichul Kim for the testing.

The configuration for MiBand6 is the same as for the previous versions. But at the moment it works only on the latest firmware. So before installing patched mifit, you should install official mifit and let update your band to the latest firmware version. 

Since 1.0.4.1 MiBand6 firmware version, the MiBand developers has significantly changed the authentication mechanism. The new authentication can’t work stable if use MiBand6 with two different applications which share the same Bluetooth connection. So if you planning to use MiBand6 with MiFit or any alternative apk, you would need to downgrade device firmware below 1.0.4.1.

Mi Band 6 downgrade firmware procedure

WARNING: This instruction is only for expert users. Doing something wrong may stop band connect with official app / phone.

PREREQUISITES – IMPORTANT!

  1. Ensure new firmware is fully installed correctly with official app (fw, res, font installed)
  2. Ensure you know which account you have used to login with official app (where Mi Band 6 is currently paired). If you don’t know, unpair band, hard reset band (from band settings menu), reinstall official app and create a new account to pair band. Your official app account will be required later. If you don’t know the correct account the entire procedure will fails and your band will stop working

PROCEDURE

  1. Install Notify app, pair the Mi Band 6 (“Mi Fit installed” status) and ensure the band is connected, then go on tools -> update firmware and choose the old version (the version below 1.0.4.1)
  2. Use Notify app to install the old firmware only (you should see “connect to update” on band at the end). Do not try to install resources then.
  3. Uninstall the official app. Do not open it, and do not allow official app to force update the firmware again.
  4. Install an old MiFit app version and login using the same account. Suggestion: install apk from freemyband.com to get the authkey code too. Here i copied a links to the old app from freemyband website  Mi Fit 5.0.1 mod (Drive),  Mi Fit 5.0.1 mod (MEGA)  Mi Fit 5.0.1 mod (Zippyshare)
  5. Notice: by using the same account you will get the Mi Band 6 already paired. If you try use a different/wrong account, you will not be able get band working!
  6. If old official app version doesn’t complete the firmware update automatically, open Notify app again and complete the update by uploading the resources. Hint: press reconnect bluetooth button on main left menu if Notify is not connected after reinstalling official app.
  7. It’s done!

Xdrip integration apk changelog

If you like this project and want to thank an author for work done or want to support further development of features, become a sponsor on Patreon

If you have some advices regarding features that you want to see, or want to see similar feature on some specific band type, please write them in the comment of the donation form.

Ver 0.6.3(03.12.2021) This version contains the latest hotfix for the Dexcom followers issue from the official xdrip branch.

  • Fixed  reconnect issue on MiBand6
  • Merge with master xdrip branch (03.12.2021)

Ver 0.6.2 + Xdrip Carelink v0.6.2 (26.11.21)

  • Added phone battery status property in config.json
  • Added more options for lines display properties in config.json 
  • Fix. Attempt to fix reconnect issue on MiBand6 (in case if bt connection was lost)
  • Merge with master xdrip branch (26.11.21)

Ver 0.6.1(08.11.2021)

  • Added support of old authentication on MiBand6 firmware versions below 1.0.4.1
  • Improvement. Allow to style bg graph lines and axis via config.json file
  • Fix. Кemove carbs part from bolus line in order to fit insulin bolus into the one line (https://github.com/NightscoutFoundation/xDrip/issues/1870)

Ver 0.6(29.10.2021)

  • Added Xiaomi MiBand6 support
  • Added “Graph Limit” option in miband graph settings, so it is possible to control graph scale
  • Improvement in watchface configurator.  Allow removing “graph” item from config.json, which is allowing creating custom watchfaces without graph
  • Improvement in watchface configurator .  Added  “rotate” option into position property in config.json so it’s now possible to rotate items
  • Synchronized with the latest official xdrip nightly build (28.10.2021)

25 thoughts on “New MiBand6 integration for xDrip

  1. Hi,

    I am eagerly waiting for the post to be unlocked. The said date has already passed. I also tried to become Patron but somehow my payment is not getting through. May I know when will it be unlocked?

    Like

  2. Hi guys. Appreciate your hard work. Once I have the watchface setup I tried to download the official app to connect but I can’t connect. At the moment I don’t have any notification such as text messages.how can I solve it?

    Like

  3. hello, thank you for new mi band 6 integration… currently i’m using xdrip v.0.6.1 with downgraded firmware and everything is fine with bt connection, notyfications ect. – what is prespective for integration with new firmware? i have band with NFC and i want to use it with my MasterCard Curve card – only with newest firmware 😦

    Like

    1. Cześć Bartek. Mógłbys mi pomóc w połączeniu miband 6 z xdripem? Nie wiem jak i na jaki zrobić downgrade opaski. Mam nowego xdripa, ale po wpisaniu mac adresu, na chwilę się łączy i jest brak autoryzacji, a zaraz nie jest nawet połączono.
      Jakbyś mógł odezwać się na messengerze: Łukasz Kesler

      Like

      1. There is no possibilities to add banking card in old MiFit versions (only China cards). If I added card at new firmware and mifit, and after that downgrade the firmware, then mi band restart when i choose card to payment… So two options: 1. xdrip+notyfications, 2. xdrip+nfc card at new firmware 😦

        Liked by 1 person

        1. I don’t understand. Is there any option to get xdrip & NFC Mastercard running on the MIBand 6? This really is the only feature why I upgraded from the Band 5.

          Like

            1. Hi thanks for the answer. I played around a bit and indeed got it to work. Thank you so much!! One last question: Is it possible to customize the tiles showing on the screen (you can do this in the official mifit app, however it seems to have no effect when using xdrip). So for example when I swipe right from the basic screen, I want to access the NFC Card feature.

              Like

  4. Hello Artem.

    About this thread: https://github.com/NightscoutFoundation/xDrip/pull/1659#issuecomment-979924823

    Are you really going to create an stand-alone app providing MiBand xDrip integration?
    If yes, what is estimate time for the first release?
    I dont think my situation is unique: I already use a modified xDrip app and want MiBand support too.

    Me and my wife would be happy to become your patrons if you really going to create such an app.

    Like

  5. Hi, where can i find config.json file or watchface generator? When i copy watchface.bin from xdrip folder and load it “Mi.Band.WatchFace.Editor” it making watchface.json, and i dont see option to disable graph?

    Like

  6. Hello, I have installed version 0.6, however my notifications do not work on it (WhatsUp, SMS). They work on newer versions or there is a problem elsewhere? Thanks for your answer.

    Like

  7. Hi Artem,
    your xDrip mod works great with my Bip (0.6.3). Thank you very much. For all other things like settings, weather data and notification I use Gadgetbridge. Is there a way to use both apps side by side?
    When I pair the watch first in xDrip, connecting to Gadgetbridge will not be possible. The other way round it is possible to pair first with Gadgetbridge and then with xDrip (at least for the first time after installation). After some hours one of the connections got lost and never reconnect. It seems to me that there is a rat race between the two apps.

    Wouldn’t it be possible to handle all communication via Gadgetbridge? Maybe as an option? Then there would only have to be one connection to the device and you would have all functions (xdrip, notifications, weather, etc.) simultaneously.

    TinyWeatherForecastGermany (https://codeberg.org/Starfish/TinyWeatherForecastGermany) for example, has such an option using Gadgetbridge for updating the weather on the device.

    Like

    1. I don’t understand if the version 0.6.3 are good also for mi band 5.

      בתאריך יום א׳, 9 בינו׳ 2022, 00:45, מאת Artem blog ‏:

      > atomphil commented: “Hi Artem, your xDrip mod works great with my Bip > (0.6.3). Thank you very much. For all other things like settings, weather > data and notification I use Gadgetbridge. Is there a way to use both apps > side by side? When I pair the watch first in xDrip, connec” >

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create your website with WordPress.com
Get started
%d bloggers like this: