A "find my phone button"

I use an Android phone.
I would like to have a button in HA to make my phone ring.
Of course I could use the notify component.
But if my phone is on silent it wouldn’t work.
I want something like in Android device manager.
Put the volume to 100 percent and ring.
I guess this would work with ifttt.
Anyone who have any ideas?

1 Like

This means you are on a computer. You can use Google function for it

How do you mean?
Of course, my HA is running on a computer.
We are 5 in our family, I want to have one button for each phone.

I got this working using IFTTT.
Made an applet that set the volume to 100% then call the phone with VoIP when i send an webhook from HomeAssistant.

1 Like

https://support.google.com/googlehome/answer/7535860?co=GENIE.Platform%3DAndroid&hl=en

If using Google assistant / Google home.

I am not using assistant or home.
I tried two different ways.
First IFTTT. This is working but not always 100% reliable.
Now i use LlamaLab Automate android app and the LlamaLab Automate notifcation component in HA.

I have one flow combining TTS and “findmyphone”
If i send any string to my phone it will read what i sent.
If i send findmyphone (as one word, you can set this to what ever you want), it will set the volume to 100% and then ring. This solution seems stable.

1 Like

I managed to do something like this. When I hit a button in HA a push bullet notification is sent to my phone. Tasker is installed on phone and intercepts the pushbullet notification and takes action on it. The tasker automation will play a song in ‘alarm mode’ so I don’t need to worry if phone is silenced or not. The script works great. I even took it a step further and setup a command for Alexa. I can say ‘Alexa, ask Alfred to find Keith’s phone’ And bam, it works! ( I call HA ‘Alfred’ via Alexa).

3 Likes

Is it possible to achieve this without tasker? I’ve googled but can’t find an app that you can tie to Home Assistant. Looking for something that plays the sound as media sound so that it also works when the phone is silenced.

Maybe use Assistant Relay addon and make a switch with a command find my phone?

Hi, it is possible in the meantime by using the Home Assistant App (at least for android, I’m not aware of apple). The only restriction: The notification uses the alarm volume, it is not set automatically to max (at least on my Google PIXEL phone). Here an example of my script:

alias: Find My Phone
sequence:
  - service: notify.mobile_app_my_phone
    data:
      message: Home Assistant
      title: Home Assistant is searching your phone!
      data:
        ttl: 0
        priority: high
        channel: alarm_stream
16 Likes

Did you try channel: alarm_stream_max ?
I tried this but have som problem with it.
Se here https://github.com/home-assistant/companion.home-assistant/issues/387

1 Like

Yes I have tried alarm_stream_max, but it is not working. If my understanding is correct, it does not work on every phone.

1 Like

Thanks for sharing this! Been using it for a while and it works flawlessly.

hi,

maybe some of you that are using llamalab automate on android are intrested in a recent automation i made to send audio feedback to users by ringing the phone. it can be used to find the phone also.

you can have a look to the repository:
repository on github

i hope you will find the automation useful in some way.

        - service_template: "{{device}}"
          data:
            title: "20"
            message: command_volume_level
            data:
              channel: alarm_stream
              priority: high
              ttl: 0

Should turn the alarm volume up if you run that before the alert. You can do this all through the companion app. You don’t really need any 3rd party apps to do this…

this is only for TTS notifications only

share the YAML because it does not work for a standard notification, only TTS notification

the alarm_stream normal text feature is broken on some phones because the manufacturer does not allow it. This only impacts some Samsung devices.

Some times ago my code above stopped working. I do not know why, I assume due to an Android update. Meanwhile I found another code which does almost the same. There is not anymore a ringtone, however a message which can be defined. The announcement works great in all situations (do not disturb mode, quiet mode, etc.).

service: notify.mobile_app_XYZ
data:
  message: TTS
  data:
    ttl: 0
    priority: high
    media_stream: alarm_stream_max
    tts_text: Hello! Here is your mobile phone!
3 Likes

If you have two or more phones with the app on then you can turn up the ring volume to max on the phone you want to find then send a command to the other phone to make a phone call to it.
The wait for trigger that the ringing stops, then you send a new ring volume to your phone you want to find that is more reasonable.

This is awesome, and works on 2 Pixel 7s in my household, thank you so much!
I have a quick question related to my efforts to make this automation perfect. In the past I had an automation serving this feature which showed a notification that could be cancelled once the phone was found. This function is great, but does not have a way to cancel it.

Is there a way to make this cancelable once the phone is found?

Thank you everyone for making this the best community!

1 Like

Hi, my alarm can neither be cancelled, I’m repeating the hole thing 5 times, normally that is enough to find the mobile phone. If not, I trigger the automation again.