[](https://hacs.xyz/docs/faq/custom_repositories)<br>
Sleep As Android Status is my solution for wake/sleep state within HA. It listens for the Sleep As Android MQTT Messages, so it does require being on the same network. As of 0.0.4 Buttons that link with the Companion app have been added.</br></br>
Add https://www.github.com/sudoxnym/saas to your Custom Repositories in HACS</br>
Search and Download SAAS - Sleep As Android Status</br>
Restart Home Assistant</br>
[](https://my.home-assistant.io/redirect/config_flow_start/?domain=saas)<br>
Add Integration: SAAS - Sleep As Android Status</br></br>
Awake Duration: This is for tuning. Time in seconds in which awake states = true to indicate awake. Sensor usually updates within 30 seconds or so after the duration, not entirely sure why the delay.</br>
Asleep Duration: This is for tuning. Time in seconds in which sleep states = true to indicate asleep Sensor usually updates within 30 seconds or so after the duration, not entirely sure why the delay.</br>
<h3>Set Up Notify for <ahref="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 <ahref="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 <ahref="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>