Possibly add optional attribute for "home" gps latitude longtitude for entity in [integration: unifi]

I use the excellent Places custom component to use Openstreetmap to add location detail to sensors for the people in my home.

I used to use Life360 to track them, but have moved to a mix of Home Assistant app and iCloud v3 to detect locations.

Unfortunately Places does not integrate into the “person.person_name” but creates a “sensor.person_name” that can use “person.person_name” as a source.

As the author of Places has stated to me:

when the Person sensor changes to the Unifi Network plugin, there are no longer any GPS coordinates in the Attributes as it has a Source Type of router rather than gps . Thus, places is not able to evaluated the Person Sensor’s location as it relies on the presence of lat/long coordinates.

Is there any chance the Unifi integration could add a fixed GPS attribute for the “home” location so that when a device connects to home, that GPS location is also provided in the attributes?

I believe that may resolve the issue and provide a more nuanced location representation.

Thanks,
Shane.

You might be interested in my Composite Device Tracker custom integration. It actually pre-dates the person integration.

In the case you ask about it does, indeed, set its source_type to gps and adds the GPS coordinates of home.

What people often do is feed the “raw” trackers and other sensors into the composite tracker, and then use the composite tracker as the input to the person entity.