Finding your Phone with Home Assistant
Here's how to add a "Find My Phone" script and a matching "Stop Ringing" automation to your Home Assistant setup. With these, you can ring any Android phone connected to Home Assistant and easily stop the ringing from a button on your phone or when you unlock the screen. This will work even if your phone is on silent.
How it works:
Tip: If you don't want ringing to stop automatically when you unlock your phone, you can simply delete the second trigger (the Your phone must have the Home Assistant Companion App installed and notifications enabled. Now you'll have a button right on your dashboard to quickly ring your phone - just click it, select your phone and repeat count, and your device will start ringing! 1. Add the Find My Phone Script
alias: Find Phone
description: "Ring a selected Android phone via Home Assistant Companion App."
mode: restart
fields:
target_phone:
name: Phone
description: The phone to ring/notify.
required: true
selector:
device:
integration: mobile_app
repeat_times:
name: Repeat Count
description: How many times to ring (set to 1 for just once).
default: 1
selector:
number:
min: 1
max: 15
step: 1
sequence:
- service: notify.mobile_app_{{ device_attr(target_phone, 'name') | slugify }}
data:
message: command_ringer_mode
data:
command: normal
- repeat:
count: "{{ repeat_times }}"
sequence:
- service: notify.mobile_app_{{ device_attr(target_phone, 'name') | slugify }}
data:
message: Finding Phone
data:
ttl: 0
priority: high
channel: alarm_stream
tag: find_phone
actions:
- action: FIND_PHONE_STOP
title: Stop Ringing
- delay:
seconds: 30
- service: notify.mobile_app_{{ device_attr(target_phone, 'name') | slugify }}
data:
message: clear_notification
data:
tag: find_phone
When you run this script, your phone will play your alarm sound at full alarm volume - even if it's on silent or vibrate! This is because the notification uses the alarm_stream channel, which always plays through the alarm audio path.
What you'll hear: Instead of your normal ringtone, you'll hear the sound you have set as your alarm in your Clock app.
Why set ringer mode? Changing the ringer mode to "normal" (not silent) isn't strictly necessary when using alarm_stream, but it can help if you also want to make your phone ring in other ways or ensure it's not stuck in silent mode after finding it.
2. Add the Stop Ringing Automation
alias: Stop Finding Phone
description: "Stop the Find Phone script and clear the notification."
mode: single
trigger:
# Trigger 1: Notification button pressed on your phone
- platform: event
event_type: mobile_app_notification_action
event_data:
action: FIND_PHONE_STOP
# Trigger 2: Phone becomes interactive (screen unlocked/touched)
- platform: state
entity_id: binary_sensor.your_phone_interactive # <-- Change this to your phone's interactive sensor, or delete this trigger if not using
to: "on"
condition: []
action:
- service: script.turn_off
target:
entity_id: script.find_phone # <-- Change if your script is named differently
- service: notify.mobile_app_your_phone # <-- Change to your phone's notify.mobile_app service
data:
message: clear_notification
data:
tag: find_phone
notify.mobile_app_pixel_7) binary_sensor.pixel_7_interactive)platform: state one). If your phone's interactive state is already on when you start finding the phone, the trigger will not fire when you interact with it - you will need to either click the "Stop ringing" button in the notification, wait for the script to stop on its own after the set number of repeats, or manually stop it.
How It Works
3. Add Find My Phone to Your Dashboard
script.find_phone).