… and still waiting.
Honestly, not sure how to get this done. I think I’m proposing a reasonable compromise, but it seems to be dead in the water. No response in over 9 days. If anyone has any suggestions, I’m all ears. Or feel free to chime in.
[Add support for Life360 device tracker PR #23405 ](https://github.com/home-assistant/home-assistant/pull/23405
FWIW, I think this part of the discussion is the crux of the matter:
balloob 9 days ago
Home zone is created based off the core configuration. We can’t have integrations start overriding it, because it won’t be clear who “owns” the data and there is no longer a single source of truth.
pnbruckner 9 days ago •
Sorry, but I don’t understand this.
First, as I already mentioned, the need came from practical experience. If HA and Life360 have different definitions of home then they can, and will, disagree. This has been noticed by the users of my existing custom component and has caused confusion.
Second, to avoid that bad situation the two systems need to come into agreement as to where home is. Either this needs to be done manually, which is error prone and not as easy as it might seem (HA defines via GPS coordinates, whereas Life360 does it via address or a map), or this can be done automatically for the user. At least making HA agree with Life360 can be done automatically. (See this on the proposed doc page for more details.)
Third, who’s to say whether HA’s or Life360’s definition of home is correct? I think this should be up to the user. Updating HA’s home zone from Life360 info is a configurable feature – the user can decide whether that’s what they want or not.
And lastly, even in HA there is no “single source of truth”, because it can come from either configuration.yaml or from an IP address lookup. And even if it comes from the config, there’s two choices: under homeassistant or zone. So that’s three different places it can come from in HA.
The bottom line to me is, it should be up to the user, and having a way to automatically keep the two systems in sync is better than forcing a user to manually copy data from one system to the other.
Oh, and BTW, if debug is enabled it tells you that it’s doing this:
2019-05-13 12:58:59 DEBUG (SyncWorker_29) [homeassistant.components.life360.device_tracker] Updating zone.home from Place: Home: LATITUDE, LONGITUDE, RADIUS
pnbruckner 2 days ago
balloob so how can we make some progress on this? Maybe I should back out the changes to the zone and owntracks components and just put the life360 code back the way it was, which as I’ve said, has been not only working well in my custom component that many, many people use, but it also solves the real problems I’ve outlined. Then you can take your time to work out what you want to do with zones, and then this, as well as owntracks, etc., can be updated accordingly. But in the meantime I can retire my custom component and people can start using a standard component.