[General Accessories] Bonoboo:
Playing sound on phone when alarm on the bracelet

Also check other useful additions for Mi Band

Important!

This is no longer works due changes in Mi Fit app.

Guaranteed working at least on ancient 1.4.341 which support only band with color LED.

What is this

For some people vibration too weak to wake and they would like to supplement it with sound.

But you always need to keep extra alarm on the phone and sync it with the bracelet.

And there are disadvantages if use smart alarm: wake-up time when inaccurate.

There is profile for Tasker that performs an action when the alarm goes.

To simplify things here standalone application or profile.

It will play selected sound file when triggered by any type of bracelet alarm.

Also you can enable alarm logging into /sdcard/wakeup.txt

How it works

1. After phone booting starting task in cycle, you set how often in minutes

2. At first time debug log file cleared (/sdcard/mili_log.txt)

3. If Bluetooth turned off – it's turning on (we need constant connection with bracelet)

4. In the log searching text onDeviceStatusChanged:16 or 17 (smart and normal alarm)

6. If the text found – playing sound /sdcard/alarm.mp3

7. Then clearing log and waiting for screen on to stop sound

8. When screen turned on: wait for n-minutes and again check log

9. If text not found: wait n-minutes and again check the log

10. Also there are variable-activated actions for vibration and increasing volume

Settings description

If you want change settings: clean app data or delete it and install again.

For Tasker: change variables.

– Vibration – 1 - on, 0 - off

– Increase vol. – 1 - on, 0 - off

– Delay in minutes – time between log checks. Preferred 2, minimum 1

– Log of alarms – on or off alarm logging (don't forget about delay)

About battery discharge

Awaking to check log affects battery very small.

You can manually set how often check log. Recommended 2 minutes.

Less delay > more wakeups > more battery consumption

After 9 hours task running with 1 minute delay in flight mode phone was awake 10 minutes, it is 2% of the all time and no one percent of battery.

To disable app you need delete or "freeze" it.

What you need to know: please read

– Sound will played even if you wake up or canceled alarm by shaking hand

– Sound will be repeated even if the alarm remind

– Sound somehow not playing in loop - select longer

– Will be some delay before sound – you manually set frequency of checks, but delay usually less

– Minimum frequency – 1 minutes, 2 preferred

– To stop sound just turn screen on

– Without increasing: using alarm volume in system

– For increasing: volume step – 5 seconds

– For increasing: system alarm volume will be set to max (7)

– File format must be MP3, you can use any converter

– When the screen on sound will NOT play

– App will always keep Bluetooth on

– Add app Mi Band Alarm Sound into exceptions of your task-killer and Stamina

– Use at your own risk, I can't guarantee that the program will always run smoothly

Installation

1. Place desired long sound file alarm.mp3 into /sdcard (usually internal memory)

2. Download and install application below post (Mi_Band_Alarm_Sound.apk)

3. Run it. Enter all settings, details above

4. You can hide it's icon from launcher, we don't need it anymore

Installation if you use Tasker

0. For custom alarm action better use this profile

1. Place desired long sound file alarm.mp3 into /sdcard (usually internal memory)

2. Download project below post (Mi_Band_Alarm_Sound.prj.zip)

3. File from ZIP copy to /sdcard/Tasker/projects

4. Tasker > menu > Preferences > Interface > untick Beginner mode

5. Tasker > tap on the home below > Import > Mi_Band_Alarm_Sound

5. Run task Mi Band Alarm Sound manually. Enter all settings, details above

Changelog

2.0

– added option for logging alarms into /sdcard/wakeup.txt

– preventing entering 0 minutes as delay, it will fall-back to 1

– improved input initial settings

1.0

– initial release (10)