Gadgetbridge: Smart Alarms for Mi Band 2?

Created on 3 Nov 2017  路  10Comments  路  Source: Freeyourgadget/Gadgetbridge

Before opening an issue please confirm the following:

  • [x] I have read the wiki, and I didn't find a solution to my problem / an answer to my question.
  • [x] I have searched the issues, and I didn't find a solution to my problem / an answer to my question.
  • [x] If you upload an image or other content, please make sure you have read and understood the github policies and terms of services

Your issue is:

I vaguely remember that Gadgetbridge (and Mi Fit) supported smart alarms some time ago (smart alarms = flexible alarm times depending on your individual stages of sleep). I enjoyed that very much with my Mi Band 1S. It worked very well for me. Very comfortable wakening in the morning! :-)

Please(!) bring this nice functionality back to Gadgetbridge! (I dont'n know if this regression was caused by Mi Band Firmware or Gadgetbridge)

I noticed that when you open up the Mi Band 2 alarm settings the very first time after installation(!) there is a "smart" slider or something similar at one of the alarms but it disappears when you leave this screen and doesn't come back.

Your wearable device is:

Mi Band 2 (FW 1.0.1.54)

Your android version is:

Android 7.1.2

Your Gadgetbridge version is:

0.22.1

device mi band 2

Most helpful comment

@LuccoJ Why not just set the alarm with the exact time in advance (when you first set it)? Worst case you'd get the (not smart) alarm you've set. If a light sleep would be detected before you could overwrite it before anyway.

All 10 comments

If smart alarms are not possible for Mi Band 2 - is there any other Gadgetbridge supported device that still has this functionality? I really hope so. This sleep cycle alarm worked far better for me than any conventional alarm clock on bed table.

Gadgetbridge still supports smart alarms, just not for the Mi Band 2. They got removed from Mi Fit as well some time ago without explanation, even for the original Mi Band from what I've read.

I am not sure if the Mi Band 2 ever supported smart alarms properly, they got disabled on Gadgetbridge in ba7d13fa5da455519f246ace667f133fb335050a, but the referenced issue is deleted due to the DCMA takedown, so I don't know the details.

Maybe @cpfeiffer or someone else from the core team could shed some light into this, I would also like smart alarm support for the Mi Band 2, if possible.

@joserebelo
I think the Mi Band 2 never supported smart alarms, in Gadgetbridge the commit you mentioned was to clarify that by not show the smart alarm checkbox at all.

I there was an old version of Mi Fit which supported smart alarms with Mi Band 2 let me know.

Mi Band 2 seems to support Smart Alarms. At least one other well-known (proprietary) android app with "Tools" in name supports it. Would really like to see this functionality it in Gadgetbridge too. :-)

@HennesTheSecond can you confirm it supports them without an active connection to the phone? If I'm not mistaken it processes sleep data on the phone and it triggers the alarm.

There are hints regarding smart alarms inside bip and mi band 2 firmware, I tried setting smart alarms on the bip, but it did not work as expected, will try on the mi band 2 later.

If the Bip turns out not to have this at all (and perhaps the same thought could be had about other devices), might it not be nice to do the following as a "software emulation" of smart alarms?

  • you tell Gadgetbridge when you intend to wake up at the latest
  • Gadgetbridge doesn't set an alarm on the watch, but only remembers it internally
  • 30 minutes before your wakeup time, Gadgetbridge forces a data sync
  • if the data show you are in light sleep, it pushes an instantaneous alarm
  • if not, it tries again 20 minutes and then 10 minutes before the deadline
  • if you're still deep sleeping by the deadline, it pushes an instant alarm anyway

Of course, to do this, one "events" slot should be taken away from the Bip's three alarms... but that's something many people would do anyway just to get calendar events. A more potentially serious issue is that you won't get your alarm if the phone loses its connection to the watch, but this could be obviated by having Gadgetbridge initially set an on-watch alarm, and only overriding it as an "events" alarm when the deadline approaches (i.e. starting 30 minutes before it) if your sleep data tell it that it should wake you up before the deadline.

@LuccoJ Why not just set the alarm with the exact time in advance (when you first set it)? Worst case you'd get the (not smart) alarm you've set. If a light sleep would be detected before you could overwrite it before anyway.

@HennesTheSecond:can you confirm it supports them without an active connection to the phone? If I'm not mistaken it processes sleep data on the phone and it triggers the alarm.

I also thought so. But from this thread appears that BT connection isn't necessary to smart alarm work on Mi Band 2: https://bit.ly/2td2YG7

@LuccoJ: a "software emulation" of smart alarms
Set display sleep to never (because of missing WakeLock)
if heartrate is 30 minutes before your wakeup time higher than 60 minutes before , it pushes a notification

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wYhyzByH picture wYhyzByH  路  4Comments

NeverUsedID picture NeverUsedID  路  5Comments

raku-cat picture raku-cat  路  7Comments

leonardomaccari picture leonardomaccari  路  5Comments

ruimnetob picture ruimnetob  路  4Comments