From 7fbbcc3fcbe29065863e7658d9135f786f9cf66d Mon Sep 17 00:00:00 2001 From: sudoxnym <76703581+sudoxnym@users.noreply.github.com> Date: Wed, 29 May 2024 16:55:41 -0600 Subject: [PATCH] Update README.md for Beta Release 0.0.6a --- README.md | 49 ++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 46 insertions(+), 3 deletions(-) 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.

Changes:

@@ -89,3 +86,49 @@ Last logged: 3:55:19 PM Failed to load integration: saas NoneType: None No known effects. Just an error message, everything works as expected. + +

Set Up Notify for MiBand 7 (as of May 29, 2024)

+1. Pair MiBand 7 as you normally would with Mi Fitness app
+2. Obtain auth key for Notify app. Connect to pc with usb and open your adb SDK Platform-Pools, or if you're more advanced, connect wirelessly
+Windows:
+  2a. Open folder with adb in it
+  2b. Right click a blank spot within the folder
+  2c. Open in terminal
+  2d.
./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

+ +

Sleep as Android

+1. Open the app and follow setup
+2. Settings wheel in top right > Services > Automation
+3. MQTT
+  3a. URL +
(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.