diff --git a/README.md b/README.md index c5b33ba..476a41b 100644 --- a/README.md +++ b/README.md @@ -67,9 +67,6 @@ data: Asleep States: States to indicate being asleep Mobile App: Target for buttons -Please report any issues. -This is my first integration. -Built this in less than a week, with no prior knowledge of Python.
./adb shell+ 2e.
grep -E "authKey=[a-z0-9]*," /sdcard/Android/data/com.xiaomi.wearable/files/log/XiaomiFit.device.log |
+awk -F ", " '{print $17}' | grep authKey | tail -1 | awk -F "=" '{print $2}'
+ 2f. Copy/clipboard the output. Disconnect phone, close ADB.
+ Credit: iamfosscad
+3. Uninstall Mi Fitness
+4. Download/Install Notify for Mi Band (up to 7)
+5. Follow the prompts, enable any permission it asks for, create the profile, input Auth Key, and select Mi Fitness is not installed
+6. Open the hamburger menu on the top left
+7. Search > Search for "Sleep"
+8. Turn on Sleep as Android
+9. Choose the four squares in the upper right
+10. Scroll to and choose "Custom triggers"
+11. Turn on Fell Asleep and set to Sleep as Android - Start sleep tracking
+12. Turn on Awoke and set to Sleep as Android - Stop sleep tracking
+13. Enjoy
+
+(tcp/ssl)://(MQTT User):(MQTT Pass)@(HA URL):(port)+ 3b. Topic > something recognizable. You need this exact topic in HA Integration Config. + 3c. Client ID > I set the same, not sure if it should be, but it works. + 3d. Test > Wait for "Success" toast message +4. Back to app settings > Sleep tracking > + 4a. Automatic Sleep Tracking > After fall asleep + 4b. Sensor > Sonar (if placing phone on a bedside table) Accelerometer (if placing on bed next to you) + 4c. Wearables > + 4c1. Wearables > Xiaomi Mi Band > Test sensor + 4c2. Heart rate monitoring (optional) + 4d. Pair tracking (optional) +5. Enjoy (optional) + + +Please report any issues. +This is my first integration.