I manage the distance (in km) of each member of my family

For this, I discovered an integration called Proximity

There is nothing to install, it is already integrated into Home Assistant.

Ref doc: https://www.home-assistant.io/integrations/proximity

Configuration of the integration 

There is no GUI to date, you need to add a piece of code in configuration.yaml

I added:

proximity: Lionel: area: home devices: - person.lionel tolerance: 50 _of _measurement unit: km

On this code:

  • Lionel: will recover the entity proximity.lionel
  • person.lionel it is the entity of the ‘lionel’ person who is an Android user who has the application and who is located.
  • tolerance this is the allowance used to calculate the direction of travel in metres (m) to filter out small changes in GPS coordinates. 50 looks good.
  • _of _measurement Unit this is the result display unit, km by default but can also be m, mi, yd or ft

Result 

On this screen, lionel is 15km from home

dir_of _travel takes the values

  • not set when there is a problem and it is not active
  • arriving
  • towards when the person goes to the target (Home in my example)

  • away_from
  • unknown
  • stationary