How to block a mobile device from the Mobile App integration

Hi folks,

My Home Assistance instance is being used by close to 10 people. So each of them has a separate account and is logged in via the Home Assistant app.
I am trying to find a way for their mobile device not to be tracked, in other words, not to have it under Integrations → Mobile App.
Regardless of whether I disable or delete their device in the below list, as soon as they open the app again, their device appears as enabled with the entities that it exposes (location, battery state etc.).

Is there some way that I can remove those so that they are not part of the devices/entities in Home Assistant?

1 Like

why dont you just disable the sensors you dont want and leave it alone? or ask them to use the browser?

I have a similar use case, and using the app is just more convenient than using a browser for the people I work with.

Deleting or disabling a phone in the integration is not viable, because it gets turned on again automatically as soon as people open the app. And by default there are 100 or more sensors being initiated for all kinds of private data, phone charging status, alarm clock time, location data.

My current workaround is to remove phone data from the recorder via config, but as phones change you have to manually adjust since their names change based on make and model.

recorder:
  commit_interval: 30
  exclude:
    entities:
      - binary_sensor.updater
    entity_globs:
      - binary_sensor.iphone_*
      - binary_sensor.xq_cc*
      - device_tracker.*
      - sensor.iphone_*
      - sensor.xq_cc*
      - person.*

There are only 3 sensors enabled by default. Any sensor not enabled will not send any data .

Well here’s the solution: In your configuration.yaml you comment out the default_config, and instead put in the list of individual services from the documentation here: Default Config - Home Assistant

And then comment out or remove mobile_app, and any other integrations that you don’t need or want. The below list is taken from the documentation today for version 2025.4.4, update as needed.

# Configure a default setup of Home Assistant (frontend, api, etc)
#default_config
assist_pipeline:
backup:
#bluetooth:
config:
conversation:
dhcp:
energy:
go2rtc:
history:
homeassistant_alerts:
cloud:
image_upload:
logbook:
media_source:
#mobile_app:
my:
ssdp:
stream:
sun:
#usb:
webhook:
zeroconf:

That removes mobile app access to all users, so if you need phone sensors for at least 1 device, then it won’t work.