https://support.google.com/googlehome/answer/7535860?co=GENIE.Platform%3DAndroid&hl=en
If using Google assistant / Google home.
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.
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).
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
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
Yes I have tried alarm_stream_max
, but it is not working. If my understanding is correct, it does not work on every phone.
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!
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!
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.
So I’ve been able to cancel by adding a tag
and then cancelling through use of the tag
.
So, to find phone:
- service: notify.mobile_app_pixel_5
data:
message: Home Assistant
title: Home Assistant is finding your phone!
data:
ttl: 0
priority: high
channel: alarm_stream
tag: find-me
alias: Phone alarm rings on highest priority
Then to cancel:
- service: notify.mobile_app_pixel_5
data:
message: clear_notification
data:
tag: find-me
alias: Clear past notifications
I’ve found it works well on my phone but oddly is temperamental for my wife’s Pixel.
I have found this script in the custom_card_imswel_person
find_my_phone:
sequence:
- service: notify.mobile_app_my_android
data:
message: command_volume_level
data:
media_stream: alarm_stream
command: 20
- service: notify.mobile_app_my_android
data:
message: Home Assistant is searching your phone !
data:
ttl: 0
priority: high
channel: alarm_stream
mode: single
I have copied this over to the main script.yaml file is this the wright place?
The card finally works, but I have no clue where to put this script or how to activate it.
I hope somebody can help me…
Thanks for reading
Found it myself…
It seems that if your home has 3 people you’ll need 3 scripts each for every phone
/config/ui_lovelace_minimalist/dashboard/views/home.yaml
cards:
- type: horizontal-stack
cards:
- type: 'custom:button-card'
template: custom_card_imswel_person
variables:
ulm_card_imswel_person_entity: person.guy_forssman
ulm_card_imswel_person_use_entity_picture: true
ulm_card_imswel_person_gps_tracker: device_tracker.pixel7_guy
ulm_card_imswel_person_findmy_script: script.find_my_phone_guy
- type: "custom:button-card"
template: custom_card_imswel_person
variables:
ulm_card_imswel_person_entity: person.eveline
ulm_card_imswel_person_use_entity_picture: true
ulm_card_imswel_person_gps_tracker: device_tracker.pixel7_eveline
ulm_card_imswel_person_findmy_script: script.find_my_phone_eveline
- type: "custom:button-card"
template: custom_card_imswel_person
variables:
ulm_card_imswel_person_entity: person.lieselotte
ulm_card_imswel_person_use_entity_picture: true
ulm_card_imswel_person_gps_tracker: device_tracker.nokia_xr21
ulm_card_imswel_person_findmy_script: script.find_my_phone_lieselotte
and in the /config/script.yaml you’ll get
find_my_phone_guy:
sequence:
- service: notify.mobile_app_pixel7_guy
data:
message: command_volume_level
data:
media_stream: alarm_stream
command: 30
- service: notify.mobile_app_pixel7_guy
data:
message: Home Assistant is searching your phone !
data:
ttl: 0
priority: high
channel: alarm_stream
mode: single
find_my_phone_eveline:
sequence:
- service: notify.mobile_app_pixel7_eveline
data:
message: command_volume_level
data:
media_stream: alarm_stream
command: 20
- service: notify.mobile_app_pixel7_eveline
data:
message: Home Assistant is searching your phone !
data:
ttl: 0
priority: high
channel: alarm_stream
mode: single
find_my_phone_lieselotte:
sequence:
- service: notify.mobile_app_nokia_xr21
data:
message: command_volume_level
data:
media_stream: alarm_stream
command: 20
- service: notify.mobile_app_nokia_xr21
data:
message: Home Assistant is searching your phone !
data:
ttl: 0
priority: high
channel: alarm_stream
mode: single
Sadly I always have my android on mute. There seems to be an option on IOS for that
Is this coming for android as well or someone know how to do ?
If I remember well from my testing months ago, there are already answers in the current thread that cause Android to sound up, even if muted. Try them. I’m afraid I don’t remember which ones.