Life360 Officially Supported Integration

I did try to quickly fix the issues due to the changes in the core code base so I could try and see if it would work, but the changes were not easy to work around while maintaining compatibility with older HA versions, which I always try to do. Still, I was getting “too many requests” errors from the server, so it didn’t look good. Not sure why some don’t see those errors, but again, it’s the nature of the problem. I.e., their attempts to block unauthorized usage aren’t foolproof, but they are effective enough to make working on this again less than promising.

UPDATE: I tried the life360 package by itself, and it does seem to work. I’ll have to try and find some time to update the custom integration. It may “work” with the current HA release, but I’m almost positive it won’t with the next one (2024.4), since it doesn’t work with the dev branch.

But, even if I get those issues resolved, there’s no telling if/when Life360 might lock us out again.

UPDATE: I now have a version of my custom integration that basically works. It’s not complete, and I’m not even ready to release a beta, but this is potentially good news.

9 Likes

If anyone would like to try it, the custom integration is available in this repo:

https://github.com/pnbruckner/ha-life360

Beta version 0.5.0b5 is the latest. Documentation can be found here:

ha-life360/README.md at new-api · pnbruckner/ha-life360 (github.com)

9 Likes

@pnbruckner thanks for picking this up again, just installed 0.5.0b7. So far the installation did go flawless and all four devices in my life360 account are added. So far so good!!! :orange_heart: … will monitor and report in case any issues pop up.

Thanks again!!! :pray:

1 Like

Thanks a lot buddy, this is much needed.

1 Like

Well well. I had lost all hope in Life360 and transitioned to Google Maps Location tracking, but recently had ‘issues’ with this. Couldn’t figure out why. Never could get it working correctly on my account again
So, came back to this thread. What a turnaround!!
@pnbruckner persistence pays off. This integration works perfectly. Thanks so much for your continued support on this.

Glad you were able to use it again.

On the Google Maps front, what kind of issues were you having? Were you using the built-in integration, or my custom version?

I tried both. Your Custom integration works, but I have a strange feeling its a strange hidden Google configuration relating to my account only (I can track my wife, but cant track me for some strange reason). I just didn’t see any entities relating to me
I tried multiple reboots after cleansing all files of configurations, it always ended up with the same results.

Thanks for the work you put in Phil.
I just installed the latest beta 0.5.3b0. When I tried to add the integration I got the following message: Fout: Config-flow kon niet geladen worden: {“message”:“Invalid handler specified”}. This is in dutch but I think/hope it is pretty universal. Do you have an idea of what went wrong for me or what mistake I possibly made?

Hi @pnbruckner,

thank you very much for this new mod extension!

I had disabled the original one because it was not working anymore and I am glad to see such an advancement here. :slight_smile:

I have an issue though: I have successfully installed the version 0.5.2 and configured it using the token, but the circles cannot be downloaded.

I always get the error message:

Could not retrieve full Circles & Members list from server; will retry

followed by the message:

Circles & Members list retrieval cancelled

I tried to restart HA, to reload the extension, to wait for a couple of hours, but the result is always the same: no circles are downloaded. Any idea where the problem could be?
Thanks!

Yes, Life360 and/or Cloudflare have found new ways to break the integration. I have a beta available that might help (0.5.3b2). It seems to work for some, but not for others. I myself run two instances of HA (production & test), both running this beta, and both using the same Life360 account info. The test system works flawlessly, but the production system won’t work. Constant error 403 from the server.

I’m pretty much stumped, again. I found a way to work around the problems the last time it broke (with an almost complete rewrite), but no such luck this time. I think I’m done trying, again.

1 Like

Thank you for the prompt feedback @pnbruckner!
I will give a try to the beta version. Let’s see if in my system will work.
It’s a pity anyway. Still do not understand why they are so strict on dev. APIs.

Just offering some feedback on what I did, I am unsure if this is helpful at all though.

I tested beta 0.5.3b2 and it worked on the first try by authenticating with the token method.

HA Version
Core: 2024.7.3
Supervisor: 2024.06.2
Operating System: 12.4
Frontend: 20240710.0

Thank you - it works like a charm.

1 Like

Recent releases:

20240528 0.5.0

  • Change to one config entry & deal with errors 403 & 429 when retrieving Circles due to Life360 server API changes.

20240603 0.5.1

  • Handle error 404 when Member removed from Circles
  • Remove config entry migration
  • Avoid broken old versions of pytest-homeassistant-custom-component

20240604 0.5.2

  • Check for possible existence of /config/life360

20240809 0.5.3

  • Delay & more retries for error 403 while fetching Member data
  • Fix bug when disabling account
  • Move “client” request to background task
  • Display retry attempt number in debug message

20241111 0.5.4b0

  • Use UTC datetimes internally to avoid DST → Standard Time issues
  • Fix error due to breaking change in 2024.11
1 Like

Thanks for the update Phil. Without tempting fate this integration has worked very well for me since your last update. A couple of times I’ve had to re submit account but overall tracking has worked very well.
Your efforts are very much appreciated.
(This update installed fine)
Cheers.

1 Like

Thanks for the continued work on this mate. Really, really appreciated. Things have been pretty solid for me since the integration suddenly kicked back into life.

Quick question though, is there still a method of retrieving a list of places within Life360 through the integration. There used to a debugging / logging method from what I remember but not sure if that exists anymore.

1 Like

See: Life360 Device Tracker Platform - Third party integrations - Home Assistant Community

Thank you @pnbruckner

1 Like

Just a reminder…

This topic is really meant to address the desire for an “official” integration between Life360 & HA. It is not meant for discussion of my current, custom integration. That discussion belongs here:

I know, I’ve violated that myself. :sweat_smile: Please, in future, direct questions, comments, etc. about my custom integration in the above linked topic. THANKS!