I lose my phone a lot, often right under my nose. I used to use the Absolutely Proprietary FindMyPhone on Android, but now that I have degoogled, I often have to ask someone to call me to find it.
What I really need is to remotely trigger the phone to ring/alarm. According to the docs, I can create an Activity Notification Command that will trigger any intent of any android app. The example on that page opens google maps navigation to Arby’s:
Does anyone have (or know how to get) the intent data for an alarm or phone ring?
There are other notification commands that can enable the screen/flashlight/volume/location. These would all be useful in conjunction with the audible alarm going off. In this thread, I hope to create a config snippet for the general task of finding a lost phone. I’m just stuck on step one.
A bit kludgy but it might work. Just need to set the alarm time to datetime.now() using some kind of jinja. I will post a config if I get this working.
One thing that might keep it from working is the seconds. If current time is 10:18:15 and the alarm is set for 10:18:00, it will be missed. If I set it to 10:19:00, I have to wait 45 seconds before it starts ringing. I don’t think android alarms have seconds resolution so I don’t think I can set an intent to alarm at 10:18:16.
A better solution might be an intent to set a timer for 1 second, since I know android timers have seconds.
This is the automation I made. It flashes the flashlight for 60 seconds, maximizes volume, turns on the ringer, sends a location update, maximizes screen brightness, and turns on the screen. Also sets a one-second-timer as above.
This is working for me except that the timer alert is supposed to turn off after 60 seconds using android.intent.action.DISMISS_TIMER, but I couldn’t get it to work. So, if I don’t find my phone, it will keep making noise until the battery dies. If somebody can fix this, please reply.
To use this automation, create a button (settings > Devices & Services > Helpers tab > Create helper > “button”). I called mine “Find phone” so if you name it something else, change the entity_id below. Also change all the actions from notify.mobile_app_myphone to the correct name of your phone.