Selora Homes Selora Homes Academy

Phones and presence

10 min

You will be able to

  • Sign each person's phone in to Home Assistant with their own account
  • Grant the location permissions presence needs
  • Test that Home Assistant sees each person leave and come home
  • Remove someone who no longer lives there

Home Assistant knows who is home from the Companion app on each person's phone: the app reports where the phone is, and the phone stands for its person. Every automation keyed on who is home ("when the last person leaves, arm the alarm") depends on this, which is why the guided installation adds the household before it builds any automation.

One phone, one account

Install the Companion app on each person's phone and sign them in with their own account. Signing in adds the phone to Home Assistant as a device of the Mobile App integration, the one the Companion app talks to: each phone is listed under Settings → Devices & services → Mobile App, with its location and sensors. Home Assistant attaches the phone to the person whose account signed it in: that's what makes the phone count as theirs.

Sign a child's phone in as the homeowner, and the child's comings and goings become the homeowner's. "Unlock the door when Jane gets home" then opens for her son.

Check yourself Single answer

"Arm the alarm when everyone has left" never runs. In Settings → People, the homeowner has two phones tracked, theirs and their daughter's, and the daughter's person has none. What happened?

Not graded: try as often as you like.

Permissions

The app asks for its permissions as it starts. For presence, it needs:

  • Location, all the time (iOS: Always, with Precise Location on; Android: Allow all the time). "While using the app" reports only when someone opens it.
  • Background activity on Android, and no battery saver restriction on the app, or the phone stops reporting once its screen is off.
  • Notifications, so the household gets the alerts the manifest plans.

Ask before granting location: it's their phone. If the manifest plans no automation on who is home, location can stay off, and the person simply never counts as home or away.

Test it, before you test the automations

Presence also needs Home Assistant to be reachable from outside, since a phone that has left can only report over the internet. That's the household's remote access (see The household's remote access): set it up first. Then, for each person:

  1. Check their person shows Home in Settings → People.
  2. Have them take the phone well past the home zone, a few hundred metres down the street. Switching its Wi-Fi off isn't enough: the phone is still where it was.
  3. Check their person goes Away, then Home when they come back.

A person who never changes is the first thing to fix, before you check any automation that depends on them.

Check yourself Ordering

Put the household setup in the order the guided installation needs.

Drag the items, or use the arrows, to put them in order.

Not graded: try as often as you like.

When someone moves out

The homeowner will ask, months later. Two things to remove, in Home Assistant, as an administrator:

  • The person, in Settings → People, which removes their login too.
  • Their phone's device, in Settings → Devices & services → Mobile App. The device has its own way to report to Home Assistant, which doesn't use their password, so deleting the person alone leaves it working.

Go further on selorahomes.com

What you read is saved in this browser only. Sign in to keep it in your account, take the quizzes and get certified.

This lesson by Selora Homes is licensed CC BY 4.0 : share and adapt it, even commercially, crediting Selora Homes with a link. Photos by others keep their own licences, as credited.