The latest Amazfit Bip firmware (0.0.9.49, only available in the staging version of Mi Fit 3.1.6.1 at this time) includes a "find my phone" feature in the Settings menu.
According to my logs, Gadgetbridge sees it being invoked as "unhandled event 8". I was not able to obtain Bluetooth logs, but hopefully that is enough information to implement it.
@LuccoJ
I know that we get event 8. But that is not enough and it is more complicated than ringing the phone when we receive it.
The Bip expects a reply after sending out event 8, else it will show an error after some seconds. ~The real problem is that if you stop the find phone feature we won't get an event, so the phone will ring forever.~
The correct procedure would be:
It seems that we do get an event when stopping the find phone mode but only if we do that before we get an error.
So with the current knowledge it would be possible to just let the phone ring for a maximum of the timeout timespan.
I have looked at how one deals with BtSnoop files, so in case they are useful, here are the parsed logs
Note, in case it makes any difference, that the former is on bacon, the latter on i9300.
I implemented this feature quick and dirty, strings are not even translatable...
One todo is make the find phone screen stop on the watch when the button on the app side has been pushed. This is a minor problem because it can dismissed manually on the watch afterwards or one can just wait until it timeouts.
He wow! @ashimokawa I hope that feature isn't limited to the AmazFit, but also works with other devices (especially my Pebble Time Steel)? Can't wait to see that! Though my phone rarely goes amiss (it has its special pocket on my belt).
@IzzySoft
Currently this is limited to Bip and Cor, because these have the feature in their firmware.
But I want to release a pbw for pebble which has extra features as an addon for the pebble, find your phone will be one of them, and then I want to ship the pbw inside Gadgetbridge so that everyone can install right away. I still use my pebble, Bip, Cor, Arc and all the upcoming Huami devices kill a lot of time though :O
That's good news, @ashimokawa – maybe you also pick the relative of "find your phone", which is "lost your phone" (aka "connection gone")? Pebble should vibrate on that occasion, but mine no longer does. So vibrate and a note (like a calendar entry would place it, just in "reddish style" if possible) would be cool here.
@IzzySoft
Vibration on disconnect is configured per watchface (if supported), there is no standard IIRC.
Technically we could register as a background app (bad for users who already use one) and go to foreground as soon as we register a disconnect, but we cannot send a standard notification from our pebble app itself. Pebble chose a weird path which needs to contact the phone and then send a notification back, no direct access from code running on the pebble :/
And somehow TrekVolle fails at that, plus Volle gone silent. Besides: how shall a "notification back" work without a connection?
Most helpful comment
@IzzySoft
Currently this is limited to Bip and Cor, because these have the feature in their firmware.
But I want to release a pbw for pebble which has extra features as an addon for the pebble, find your phone will be one of them, and then I want to ship the pbw inside Gadgetbridge so that everyone can install right away. I still use my pebble, Bip, Cor, Arc and all the upcoming Huami devices kill a lot of time though :O