mirror of
https://github.com/sudoxnym/sleepd.git
synced 2026-04-14 19:47:29 +00:00
Update README.md for Beta Release 0.0.6a
This commit is contained in:
parent
50d09aea3a
commit
7fbbcc3fcb
1 changed files with 46 additions and 3 deletions
49
README.md
49
README.md
|
|
@ -67,9 +67,6 @@ data:
|
|||
Asleep States: States to indicate being asleep</br>
|
||||
Mobile App: Target for buttons </br></br>
|
||||
|
||||
Please report any issues.</br>
|
||||
This is my first integration.
|
||||
Built this in less than a week, with no prior knowledge of Python.
|
||||
|
||||
|
||||
<h3>Changes:</h3>
|
||||
|
|
@ -89,3 +86,49 @@ Last logged: 3:55:19 PM
|
|||
Failed to load integration: saas
|
||||
NoneType: None</pre>
|
||||
No known effects. Just an error message, everything works as expected.
|
||||
|
||||
<h3>Set Up Notify for <a href="https://www.amazon.com/Xiaomi-Activity-Tracker-High-Res-Bluetooth/dp/B0B2DK5YCP">MiBand 7</a> (as of May 29, 2024)</h3>
|
||||
1. Pair MiBand 7 as you normally would with <a href="https://play.google.com/store/apps/details?id=com.xiaomi.wearable&hl=en_US">Mi Fitness</a> app </br>
|
||||
2. Obtain auth key for Notify app. Connect to pc with usb and open your adb <a href="https://developer.android.com/tools/releases/platform-tools">SDK Platform-Pools</a>, or if you're more advanced, connect wirelessly</br>
|
||||
Windows:</br>
|
||||
2a. Open folder with adb in it</br>
|
||||
2b. Right click a blank spot within the folder</br>
|
||||
2c. Open in terminal</br>
|
||||
2d. <pre>./adb shell</pre>
|
||||
2e. <pre>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}'</pre>
|
||||
2f. Copy/clipboard the output. Disconnect phone, close ADB.</br>
|
||||
Credit: <a href="https://www.reddit.com/r/miband/comments/15j0rfq/comment/kxlyzc6/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button">iamfosscad</a></br>
|
||||
3. Uninstall Mi Fitness
|
||||
4. Download/Install <a href="https://play.google.com/store/apps/details?id=com.mc.miband1&hl=en_US">Notify for Mi Band (up to 7)</a></br>
|
||||
5. Follow the prompts, enable any permission it asks for, create the profile, input Auth Key, and select Mi Fitness is not installed</br>
|
||||
6. Open the hamburger menu on the top left</br>
|
||||
7. Search > Search for "Sleep"</br>
|
||||
8. Turn on Sleep as Android
|
||||
9. Choose the four squares in the upper right</br>
|
||||
10. Scroll to and choose "Custom triggers"</br>
|
||||
11. Turn on Fell Asleep and set to Sleep as Android - Start sleep tracking</br>
|
||||
12. Turn on Awoke and set to Sleep as Android - Stop sleep tracking</br>
|
||||
13. Enjoy</br></br>
|
||||
|
||||
<h3><a href="https://play.google.com/store/apps/details?id=com.urbandroid.sleep&hl=en_US">Sleep as Android</a></h3>
|
||||
1. Open the app and follow setup</br>
|
||||
2. Settings wheel in top right > Services > Automation</br>
|
||||
3. MQTT</br>
|
||||
3a. URL
|
||||
<pre>(tcp/ssl)://(MQTT User):(MQTT Pass)@(HA URL):(port)</pre>
|
||||
3b. Topic > something recognizable. You need this exact topic in HA Integration Config.</br>
|
||||
3c. Client ID > I set the same, not sure if it should be, but it works.</br>
|
||||
3d. Test > Wait for "Success" toast message</br>
|
||||
4. Back to app settings > Sleep tracking > </br>
|
||||
4a. Automatic Sleep Tracking > After fall asleep</br>
|
||||
4b. Sensor > Sonar (if placing phone on a bedside table) Accelerometer (if placing on bed next to you)</br>
|
||||
4c. Wearables ></br>
|
||||
4c1. Wearables > Xiaomi Mi Band > Test sensor</br>
|
||||
4c2. Heart rate monitoring (optional)</br>
|
||||
4d. Pair tracking (optional)</br>
|
||||
5. Enjoy (optional)</br></br>
|
||||
|
||||
|
||||
Please report any issues.</br>
|
||||
This is my first integration.
|
||||
|
|
|
|||
Loading…
Reference in a new issue