Binary presence sensor

Hello,

I’m trying to create some way to see who is entering home (I don’t want to use the tracker the location of the smartphone).

Basically, the idea I thought is like this:

When I push a dedicated button in HA, my iPhone will get notification (using notify.mobile_app) that will ask me “Who opened the door?” and the selection buttons will be “Me” or “Wife” or “Both”.
Then based on my selection in the iPhone notification, the entities of me and my wife will change from “Away” to “Home” (or from “Away” to "Home).

I tried several times, (I even drew the whole idea on paper :smiley: ), I also saw some video about templating sensor, but I just keep confusing about all the process.

Is there some one that know how to guide me?

Add this to your known_devices.yaml and restart (no idea if quick reload could be enough):

me_presence:
  name: me_presence
  mac:
  icon:
  picture:
  track: true

wife_presence:
  name: wife_presence
  mac:
  icon:
  picture:
  track: true

Then use a service call like:

service: device_tracker.see
data:
  dev_id: me_presence
  location_name: home

or

service: device_tracker.see
data:
  dev_id: me_presence
  location_name: away