Add "User" to proximity

Just started a couple days ago with Home Assistant. I have a default user John in the system. He always shows as UNK at the top of the page. I’ve also started playing with proximity. Is there any way to tie a device like an iPhone’s proximity to an existing user in the system?

Thanks.

JR

Proximity works with device_tracker, right? I don’t believe you can tie proximity into a “person”, but you can tie in a device_tracker.

1 Like

I think that the proximity sensor only works between a zone and a device tracker. However, if you want the distance between two device_trackers (users), you can use a template sensor with

  value_template: '{{ distance("device_tracker.first", "device_tracker.second") }}'

and that will yield the distance between them in kilometers. I’m not sure if your unit preferences affect this.

But like @swiftlyfalling said, you should read up on the ‘person’ entity.

edit: corrected type-o in template.

1 Like