core: Life360 failed setup, will retry

The problem

Just upgraded Home Assistant to 2023.12.4 and Life360 is still failing. Got the following in the log files.

2023-12-27 10:15:00.738 DEBUG (MainThread) [life360.api] Error GET(https://api-cloudfront.life360.com/v4/circles), attempt 1: ClientResponseError(RequestInfo(url=URL(‘https://api-cloudfront.life360.com/v4/circles’), method=‘GET’, headers=<CIMultiDictProxy(‘Host’: ‘api-cloudfront.life360.com’, ‘user-agent’: ‘com.life360.android.safetymapd/KOKO/23.49.0 android/13’, ‘Accept’: ‘application/json’, ‘cache-control’: ‘no-cache’, ‘Authorization’: ‘Bearer REDACTED’, ‘Accept-Encoding’: ‘gzip, deflate, br’)>, real_url=URL(‘https://api-cloudfront.life360.com/v4/circles’)), (), status=401, message=‘Unauthorized’, headers=<CIMultiDictProxy(‘Date’: ‘Wed, 27 Dec 2023 15:15:00 GMT’, ‘Content-Type’: ‘application/json’, ‘Transfer-Encoding’: ‘chunked’, ‘Connection’: ‘keep-alive’, ‘Access-Control-Allow-Origin’: ‘https://api-cloudfront.life360.com’, ‘Access-Control-Allow-Methods’: ‘GET, PUT, POST, DELETE, OPTIONS’, ‘Access-Control-Allow-Headers’: ‘accept,origin,x-requested-with,authorization,content-type,geolocation,x-location-metadata’, ‘Access-Control-Allow-Credentials’: ‘true’, ‘x-request-id’: ‘e1588264ef822766a33f57b343a21fd1’, ‘CF-Cache-Status’: ‘DYNAMIC’, ‘Set-Cookie’: ‘__cf_bm=82YT3tJ9X8z8Rv.zzOEJD85GuC8PSfyX_zLzBJRgy6A-1703690100-1-AQASJr9A+/FaxuVqcIxJ3CAK5XTtc8dmFT7XakwyT0dhrqZEBXHbfMcsDuFkyD14N32dT6OoL7NJ3A+NjCHAe6Q=; path=/; expires=Wed, 27-Dec-23 15:45:00 GMT; domain=.life360.com; HttpOnly; Secure; SameSite=None’, ‘Set-Cookie’: ‘_cfuvid=vF.JIHs3eBbRu.TapIGDDzTVOWoYtxragnQC9xFZQmM-1703690100126-0-604800000; path=/; domain=.life360.com; HttpOnly; Secure; SameSite=None’, ‘Server’: ‘cloudflare’, ‘CF-RAY’: ‘83c2843568365073-ORD’, ‘alt-svc’: ‘h3=“:443”; ma=86400’)>) 2023-12-27 10:15:00.740 DEBUG (MainThread) [homeassistant.components.life360] CommError: unauthorized 2023-12-27 10:15:00.740 DEBUG (MainThread) [homeassistant.components.life360] Finished fetching life360 (jordaneku@gmail.com) data in 5.127 seconds (success: False)

What version of Home Assistant Core has the issue?

core-2023.12.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Life360

Link to integration documentation on our website

https://www.home-assistant.io/integrations/life360/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2023-12-27 10:15:00.738 DEBUG (MainThread) [life360.api] Error GET(https://api-cloudfront.life360.com/v4/circles), attempt 1: ClientResponseError(RequestInfo(url=URL('https://api-cloudfront.life360.com/v4/circles'), method='GET', headers=<CIMultiDictProxy('Host': 'api-cloudfront.life360.com', 'user-agent': 'com.life360.android.safetymapd/KOKO/23.49.0 android/13', 'Accept': 'application/json', 'cache-control': 'no-cache', 'Authorization': 'Bearer REDACTED', 'Accept-Encoding': 'gzip, deflate, br')>, real_url=URL('https://api-cloudfront.life360.com/v4/circles')), (), status=401, message='Unauthorized', headers=<CIMultiDictProxy('Date': 'Wed, 27 Dec 2023 15:15:00 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Access-Control-Allow-Origin': 'https://api-cloudfront.life360.com', 'Access-Control-Allow-Methods': 'GET, PUT, POST, DELETE, OPTIONS', 'Access-Control-Allow-Headers': 'accept,origin,x-requested-with,authorization,content-type,geolocation,x-location-metadata', 'Access-Control-Allow-Credentials': 'true', 'x-request-id': 'e1588264ef822766a33f57b343a21fd1', 'CF-Cache-Status': 'DYNAMIC', 'Set-Cookie': '__cf_bm=82YT3tJ9X8z8Rv.zzOEJD85GuC8PSfyX_zLzBJRgy6A-1703690100-1-AQASJr9A+/FaxuVqcIxJ3CAK5XTtc8dmFT7XakwyT0dhrqZEBXHbfMcsDuFkyD14N32dT6OoL7NJ3A+NjCHAe6Q=; path=/; expires=Wed, 27-Dec-23 15:45:00 GMT; domain=.life360.com; HttpOnly; Secure; SameSite=None', 'Set-Cookie': '_cfuvid=vF.JIHs3eBbRu.TapIGDDzTVOWoYtxragnQC9xFZQmM-1703690100126-0-604800000; path=/; domain=.life360.com; HttpOnly; Secure; SameSite=None', 'Server': 'cloudflare', 'CF-RAY': '83c2843568365073-ORD', 'alt-svc': 'h3=":443"; ma=86400')>)
2023-12-27 10:15:00.740 DEBUG (MainThread) [homeassistant.components.life360] CommError: unauthorized
2023-12-27 10:15:00.740 DEBUG (MainThread) [homeassistant.components.life360] Finished fetching life360 (jordaneku@gmail.com) data in 5.127 seconds (success: False)

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 6 months ago
  • Reactions: 1
  • Comments: 47 (15 by maintainers)

Most upvoted comments

Ok. Deleting the integration and reinstalling it worked. Thanks for your work on this. 😃

I have a simple RP4 install with SSD. Didn’t have any of the workarounds. I uninstalled the integration, then installed the newly released 2023.12.4. Tried reinstalling the integration, but it didn’t immediately work with my existing password. After resetting the Life360 password, I tried again and it’s now working.

This is the link to reset Life360 password: https://support.life360.com/hc/en-us/articles/360041365814-Reset-My-Password

Thank you @pnbruckner for all your support!

From Life360 support: please know that we no longer support home automation programs such as Home Assistant, Google Home, Alexa, IFTTT, and others, and these programs are no longer compatible with Life360. Currently, we have no plans to reintroduce compatibility with these programs.

@Jeppedy, yes, multiple people have reported that response. Please note that this may not actually be a change in their position, at least towards Home Assistant. To my knowledge, Home Assistant has never been supported, officially or otherwise.

I’ve slightly worked around this. I created what is essentially a service account that I added to my family circle and used it to log in from HA. You can get a phone number for the text messages using Google Voice.

  1. Get a number using GV (or any other text service of your choosing).
  2. Sign up for a new account using that new number.
  3. Add an email address to the account.
  4. Add the new account to your existing circle (this will generate a code).
  5. Sign into the Life360 app with the new account and join the circle using the code from step 4.
  6. Sign back into the app using your normal account.
  7. Use the new account in HA.

My kids live with their mom and she already has Life360 setup for them. I really didn’t want to have to either have them install HA or another tracking app just to get location.

It eventually forces you to verify your phone number.

FWIW, when I just opened my Life360 app, it had a message across the top to verify my phone number so I wouldn’t eventually lose access to my account. I clicked on it, but then exited out of that screen without verifying my phone number. It stopped bothering me about it. But, I suppose, at some point, it may force the issue.

I tried that as well, but later when I opened up my app (iOS) it had logged me out and the only way to get back in was to verify using the SMS 2FA. It’s looking pretty bleak, but I wanted to thank you @pnbruckner for all your hard work on this. I’m sure it’s been frustrating for you, but please know how much your efforts are appreciated. Cheers.

They are only allowing 1 login at a time.

I did see that, but I can tell you I’m able to use the HA life360 integration AND the Life360 app at the same time. I think that new “feature” might only apply if you’ve enabled their 2FA, which appears to be verifying your phone number with them.

Doesn’t seem to be an obvious way to turn off 2FA.

By the way, login information requires the EMAIL and PASSWORD.

That’s not clear. I’ve heard of people having success adding the Life360 integration in HA using the phone number registered with Life360 as the username.

I think the main issue now seems to be the new Life360 2FA. I.e., if the Life360 app asks you to verify your phone number, DON’T do that. Doing so seems to break the HA integration (since it can’t do 2FA w/ the Life360 server.) If you already have done that, then there is some indication that changing your password again might help.

I got it working. Found the link to reset my Life360 password using email address, and that fixed it. Thank you for fixing the integration! Much appreciated

I could be overlooking something but I don’t see in HA how to change the Life360 password. I didn’t use any workarounds. I have restarted HA twice, once after upgrading and once after I changed my Life360 password.

You are right, I had a Life360 folder with a previous workaround. After removing it and rebooting it works.

I could be overlooking something but I don’t see in HA how to change the Life360 password.

If the username and password you previously entered works (no auth error), then you shouldn’t need to. If you do get auth errors, there should be a persistent notification and box on the Integrations page that will let you reconfigured the Life360 integration, which basically asks you to enter your password. If none of that works for some reason, then you’ll need to delete and re-add the Life360 integration.

Hey there @pnbruckner, mind taking a look at this issue as it has been labeled with an integration (life360) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of life360 can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign life360 Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


life360 documentation life360 source (message by IssueLinks)