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)
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!
@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.
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.
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.
Doesn’t seem to be an obvious way to turn off 2FA.
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
You are right, I had a Life360 folder with a previous workaround. After removing it and rebooting it works.
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)