-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Life 360 Integration - Invalid Authentication with correct details #97470
Comments
Hey there @pnbruckner, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) life360 documentation |
Can confirm the issue. This is likely affecting all users currently. |
Same issue here |
Same here . |
Same issue. Had the Should also note, I was logged out of the mobile app and forced to re-login around the same time HA reported Life360 stopped working. |
I now only get 500 error. Also can't remove the integration :( |
+1 |
2 similar comments
+1 |
+1 |
Same here. |
Same |
Please Just use the "thumb up" on the original post if you have the same issue rather than clutter up the comments. |
Myself included, however to note I also couldn't login via the app at first, until I updated the app from the Play Store. So seems they have changed some auth mechanism. |
Following, same issue here |
I removed the integration and an attempt at adding again renders the following in the log:
It appears that life360 is migrating to cloudflare and they royally screwed the pooch on it. |
FYI I just created a fix for this. If you want to use it now, you can download this repo and copy the |
Confirmed, change does indeed fix the issue. |
I wonder who at life360 would think it's a good idea to roll out breaking changes on Saturday..... |
A company with users accessing their API outside of their application in an unintended fashion. Something we need to be careful about - given the recent changes by other large API's suddenly charging for (or preventing) access. |
Thanks @alexyao2015 , the repo fixed my issue. However, a quick question (sorry if this is a n00b question). Will I have to remove the config/life360 folder once the official fix is released? |
Mind you they broke the ife360 API for legitimiate users of the app too not just the reverse engineered HA integration. TL;DR I would not put such a prod change in on a Friday/Saturday but then again I'm not the oncall for this so..... |
Yes, once the pull request gets folded into the python library and the new library version gets incorporated into a new HA release you should be able to remove the life360 dir you just added to your instance. |
Thanks for the fix, it is working. I was going to wait for life360 to fix their issues on there side, but it seems it taking ages. A quick look at their twitter shows it is a Sh!t show. Users are getting emails that it is working, but it still not letting people login. I also work in I.T and I guess they did this change over the weekend, as it is possibly the quietest time.. but it seems it wasn't tested very well. |
I downloaded repo mentioned above but it does NOT fix the issue. I put "life360" directory in CONFIG and second try in custom_components but no result. Life360 still broken. What is wrong? |
I am still not able to sign in to readd the integration, any ideas |
Hello, I have the same problem since last night... My error has been, without looking at anything, of information, thinking that the problem was mine, I have deleted the integration and of course now I cannot include it because it does not recognize my credentials, I will not be able to try the FIX, hopefully they will solve it quickly, we will have to update HA or will it only be a component thing... does anyone know? THANK YOU! |
Many thanks for the fix. My instance of HA is running under TrueNAS Scale. A "restart" from the HA menu did not work. A "reboot" did. |
Hi all. I just released a new version of the life360 pypi.org package that includes the change provided by @alexyao2015 that compensates for the Life360 API changes. Next I need to submit an update to the HA built-in life360 integration to pick up that new package version. And, yes, this HA integration uses an undocumented & unsupported Life360 API that was reverse engineered years ago by people I don't even know. We've been lucky for many years, but this was bound to happen some day. Hopefully it won't happen again for another 5 or so years. 😉 |
Awesome!! Thank you 🙂 |
Thank you. Can I ask a really dumb question, does this mean I need to update my HA Core version to get the new integration? Been putting it off since I'll need to upgrade Python and it'll just be safer to build a new HA from scratch. |
I don't know why you need to put a whole new module in I manually put the fixes from this in |
more easy to put the whole module !!!!!!!!!!!!!
Le mer. 2 août 2023 à 17:31, Frak ***@***.***> a écrit :
… I don't know why you need to put a whole new module in /config instead of
making the small fixes in the existing code.
I manually put the fixes from this
<alexyao2015/life360-python@485e063>
in /usr/local/lib/python3.11/site-packages/life360/api.py, restarted HA
and it works now.
—
Reply to this email directly, view it on GitHub
<#97470 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKZUCQMBKJ4XQD5IVAV36LXTJXGNANCNFSM6AAAAAA24Z72OM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
The permanent fix is in 2023.8.1 and it's working for me. Thanks for turning this around so quickly! |
can i delete the manual Life360 integration after this update ??
Le sam. 5 août 2023 à 23:38, psfales ***@***.***> a écrit :
… The permanent fix is in 2023.8.1 and it's working for me. Thanks for
turning this around so quickly!
—
Reply to this email directly, view it on GitHub
<#97470 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKZUCVTSKV3QO7SBECUUSLXT24MBANCNFSM6AAAAAA24Z72OM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Yes you can delete the folder that you placed in your config after update to 2023.8.1 |
Working for me as well since latest update. Thanks again for sorting |
I think life360 broke the api again? As it stopped working with the same errors this morning for me. |
I think too, i have version 2023.8.3 , i verify in my api.py have _HOST = "api-cloudfront.life360.com" Error: Error handling request |
Have not noticed any issues on my instance. Locations are reporting correctly at least. Haven't went too much further. Home Assistant 2023.8.3 |
I create a month ago one folder in config named life360 with api.py and some files, i delete it an reboot HA but not work |
If you're still using the old fix, delete it and update HA. Has been working flawlessly for about a month now |
Interesting, I have 2x 360 accounts in Home Assistant, one is working, the other now fails the same way. Been working ever since the patch, both manual or via integrated. This one went "unknown" at around 3:15pm Eastern yesterday. Maybe something is going on? |
Could it be a cloudflare caching issue? Mine appears to be working fine with no interruptions as of right now.... |
sorry, how do you remove the life360 integration? |
same problem.... |
I solved my issue going to https://app.life360.com/myaccount and clicking forgoten password, changing password , going to HA and add entry with new password If work, now you can delete old entry that not work |
I'm not sure exactly what is causing the initial situation that causes the system to force a reconfiguration, but it seems once it is in that state, you're stuck, because there is a bug in the HA life360 integration that causes the reconfiguration to fail. I'm going to try and get to the bottom of that and fix it, but in the meantime, a workaround seems to be to change your Life360 password. Then either add the HA life360 integration again, with the new password, which seems to work, and then it seems the old entry can be deleted. Or, some have found, that entering the new password into the entry in .storage/core.config_entries, seems to also work. |
work also for me |
@bmcgair are you using at least 2023.8? FWIW, the config flow bug fix (that allows reconfiguring an existing config entry that causes a Life360 login, or possibly another error) is in the 2023.9.0b0 release. I'd recommend using at least 2023.8, deleting any current HA Life360 integration entry (that isn't working), then trying to add it again. I'm still getting some indications that some people are not able to add Life360 to HA, but I have no idea why. If, after trying all existing suggestions, if you still have trouble adding Life360 to HA, please enable debug (per the following), restart HA, try adding Life360 again, and then find all life360 related messages in the FULL log, including, and especially, debug messages (which don't normally show in the UI), and share them here, or email me, or PM me on the community forum. logger:
default: warning
logs:
life360: debug
homeassistant.components.life360: debug |
Thanks. Working now with 2023.9.0b0. Docker was still using an old image. |
The problem
I've noticed that around 1 am GMT, the life360 integration stopped working and prompted me with 'Invalid authentication.' Despite trying to provide the correct details and attempting to reboot and reinstall the integration, it still didn't work. Interestingly, I was able to log out and log back into the Android app successfully, which suggests that they might have made some changes that affected the integration.
In the logs I've provided, it appears that Python is generating an 'empty auth header.' It's possible that 360 now requires an additional header that is not being passed.
What version of Home Assistant Core has the issue?
core-2023.7.1
What was the last working version of Home Assistant Core?
core-2023.7.1
What type of installation are you running?
Home Assistant Container
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?
Additional information
No response
The text was updated successfully, but these errors were encountered: