Step 1: Disable Background Tracking on Your Phone To ensure Home Assistant never tracks you automatically, you need to turn off the background location sensors in the Android app.
Enable this:
Note: Do not revoke the Android OS location permission for the app itself. The app still needs system permission to grab the GPS coordinates when Home Assistant manually requests them.
Step 2: Create the “Locate Phone” Script Next, we will create a script in Home Assistant that forces the Android app to report its current location immediately using a high-priority notification command.
sequence:
- action: notify.mobile_nokiax10
data:
message: command_request_location
mode: single
icon: mdi:crosshairs-gps
alias: Request Phone Location
** if above doesnt work, use this:
action: notify.mobile_app_nokiax10
data:
message: command_request_location
Step 3: Add the Button to Your Dashboard Now, add a button card to your Lovelace dashboard so you can trigger the location request on demand.
type: button name: Locate My Phone icon: mdi:cellphone-marker tap_action: action: perform-action perform_action: script.request_phone_location