ESPHome BLE tracking Mi Band 4 - Working

As it is all now setup and working as solid as a rock, I would like to get something more out of it. Is it possible to switch a relay ON/OFF attached to pin2 of the same esp32 based on presence detection?

I think it should be, but I’m not very familiar with that. Have a browse of the Esphome website under components etc. Should be something there?

And take a look at the Esphome automations. It can probably all happen directly on the esp32.

But my knowledge ends there…

Hello,

What if I’m having raspberry pi with bluetooth? may I track my Mi Band 4? if yes, how?

Thank you.

Both devices need to have traditional bluetooth for bluetooth tracking. Mi band only has BLE.

You may be able to track your Mi Band with your raspberry pi (both have BLE) using the Bluetooth LE Tracker. You would need to research/investigate. Also research potential Wifi performance issues as that’s a thing.

hello unfortunately miband4 does not work if it is paired with the mifit application, you can scan miband if the application disconnects from it or turns off the phone then miband sends a ble signal unfortunately in the miband application there is no make discoverable option, maybe in older versions there was such an option or someone can solved this problem?

I am running latest version of Mi fit with a Mi band 4 and I still have that option.

hello and what server are you connected to and which version do you have me band 4 China or Eu? I have the European version and I am connected to the European server and there is no such option :pleading_face:

I believe I have an EU mi band (at least judging by what the seller told me) and I am running Mi Fit 4.0.14 from the Google Play store, so I suppose this is also the EU version.

Do you know about the Notify & Fitness App? It is a good app, and it also has an option to make discoverable (under ‘Tools’). Maybe that could work for you? You can also check your hardware version and do a ton of other stuff.

Mine is V0.25.17.5 Global version and I see discoverable in My Fit App. I’m not sure what server I’m connected to (how do you check?).

hello thanks super everything works in this additional application you can enable this option

2 Likes

What’s the range for the esp32 — xiaomi band 4 combo, may I ask ?
Thanks

I don’t know but you might want to look in to bluetooth 5.0 specs if a long detection range is important to you. The Mi Band has it, and I think you can now get esp32s with it. This appears to significantly improve range. I believe that bluetooth penetrates/is blocked by walls etc in a similar level to WiFi. The rssi value can also used to shorten the detection range (I haven’t tested). https://www.google.com/search?client=ms-android-xiaomi&sxsrf=ALeKk02YpHtQFOB7Px_bjdcYjSJr9ti82g%3A1603137708488&ei=rPCNX7GbHcGw9QPN24W4Bg&q=bluetooth+5.0+range&oq=+bluetooth+5.0&gs_lcp=ChNtb2JpbGUtZ3dzLXdpei1zZXJwEAEYADIECCMQJzIHCAAQsQMQQzIFCAAQkQIyBAgAEEMyAggAMgIIADICCAAyAggAUMwsWMwsYLQ4aABwAHgAgAHyAYgBrwOSAQUwLjEuMZgBAKABAcABAQ&sclient=mobile-gws-wiz-serp

1 Like

Was anyone able to get the Mi Band 5 working? Specifically with a rp4

Works the same way if it has a static BT address

1 Like

Mi Band 6 working fine!

Redmi Smart band pro working;)

Lost my Mi Band 6 and thought I’d give this one with a bigger screen a go.

Edit: Hmmmm… Can’t make it discoverable via usual methods. So it won’t broadcast of it’s connected to your phone (which it needs to be for notifications etc).

It only seems to broadcast if I turn off my phone’s bluetooth.

So not really so useful ATM.

Mi band 7 worked, bit can’t figure out how to make my Mi Band 8 discoverable yet…

how did you get it working? did you pair with the zepp life app first?

No.

Connected via Mi Fitness.

There is no discovery mode and it can only be tracked if it’s not paired I think.

Couldn’t get it working this way either.

In Zepp Life isn’t there a discoverable option? It’s there for my 5 and 6.