I am using another method that works also with muted phone.
Instead of playing some random sound it will start a 1s timer which than rings the phone like a normal timer does.
It also works when the phone is not connected to homeassistant and only uses google notifications.
alias: Find my Phone
description: Rings the phone when button is pressed
triggers:
- entity_id:
- input_button.find_my_phone
trigger: state
- trigger: conversation
command:
- Where is my phone
- Find my phone
conditions: []
actions:
- set_conversation_response: I will find you and I will ring you
- data:
message: command_activity
data:
ttl: 0
priority: high
intent_package_name: com.google.android.deskclock
intent_action: android.intent.action.SET_TIMER
intent_extras: >-
android.intent.extra.alarm.LENGTH:1,android.intent.extra.alarm.SKIP_UI:true
action: notify.mobile_app_nothingphone_2a
mode: single