pnbruckner / ha-life360

A Home Assistant integration for Life360.
45 stars 6 forks source link

Login failed from UK #30

Closed Muleo14 closed 1 month ago

Muleo14 commented 5 months ago

Hi, since about 10 hours ago I'm unable to login to my L360 account through the integration, it says invalid authentication. I've checked in the L360 app and it appears that my mobile phone number is verified - I don't remember doing this, and certainly not 10 hours ago. I've tried to follow the guide to get the token, however this only seems to work for US accounts as the website will only accept US phone numbers, and doesn't recognise my email address. I've tried the UK version of the L360 website and can't find any way to login, so it appears it maybe app only in the UK??

Am I missing something obvious here, or is there a work around?

Thanks! Sam

figarospares commented 5 months ago

same here it was working until last night with email login but now says the same. Is there a work around as it was working perfect before this happend?

DrTrotty commented 5 months ago

I use it in Hungary...I used it...this is my problem...it says that my account is blocked.

jamacof commented 5 months ago

The same problem - invalid authorisation. Went offline yesterday 1830 utc. Resetting account through the app works for a few minutes and the in drops again. Account registered with an UAE phone number.

smarthomefamilyverrips commented 5 months ago

@pnbruckner not know if is related but I get since yesterday all the time a repair message, and have to enable my account again in configure section of integration. After I do so it stays OK for a bit and then get same again... this is in my logs

This error originated from a custom integration.

Logger: custom_components.life360.coordinator Source: custom_components/life360/coordinator.py:542 integration: Life360 (documentation, issues) First occurred: 13:31:44 (1 occurrences) Last logged: 13:31:44

..........@gmail.com: while getting data for Lor....... Ve....... from Family Ve.......Circle: aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url=URL('https://api-cloudfront.life360.com/v3/circles/REDACTED/members/REDACTED'); status: 403

Menz01 commented 5 months ago

I am getting the 403 error as well and I am in the USA

pnbruckner commented 5 months ago

Hi all. It could be Life360 and/or Cloudflare have changed something about the API, or are taking new steps to prevent unauthorized third-party usage of their API. I really couldn't say.

Up until a couple of days ago, I've heard many reports of people having this problem, but I never experienced the problem myself. But now I have. I re-enabled the account, and it seems to be working again, but who knows for how long.

FWIW, there is a beta -- 0.5.3b0 -- that attempts to retry when this error occurs, but I don't know how effective it is. If you haven't tried the beta, you might want to. It's worth a try. If you do, I'd appreciate feedback, good or bad.

Menz01 commented 5 months ago

i am was already on the beta and am getting the 403 now

pnbruckner commented 5 months ago

I just released 0.5.3b1 with increased retrying. If anyone tries it, please let me know if it makes any difference.

figarospares commented 5 months ago

I just released 0.5.3b1 with increased retrying. If anyone tries it, please let me know if it makes any difference.

Ok I have just installed it now I will let you know. I had b0 installed and that was working better but yesterday kept on disable the account but after last time i reset last night was connected for 17hrs maybe they was doing something there end but will test b1 now

pnbruckner commented 5 months ago

FWIW, I'm now seeing it more consistently myself, but only on one of my two systems (that use the same Life360 account.) I'm experimenting with different delay & max retry counts. But, if this happens a lot, even if I can find a way to automatically recover, it might make the integration useless, since the time between updates could be very large.

jamacof commented 5 months ago

On b1 now as well. Was connected for 18 minutes but then dropped again and hasn't reconnected since....

figarospares commented 5 months ago

Screenshot (131)

4th yesterday b0 right up to 10mins ago when updated tp b1

pnbruckner commented 5 months ago

Was connected for 18 minutes but then dropped again and hasn't reconnected since....

@jamacof, do you mean you re-enabled the account? If so, it does have to retrieve the Circles & Members list, and that can take a while. Please wait and let me know how it goes.

figarospares commented 5 months ago

I am on Free account with verfied phone number and logging in with email and password and based in the U.K

pnbruckner commented 5 months ago

4th yesterday b0 right up to 10mins ago when updated tp b1

I'm not sure what you mean by "4th yesterday"

figarospares commented 5 months ago

4th of june

pnbruckner commented 5 months ago

@figarospares, I'm sorry, but your comments are too cryptic. I really don't understand what you're trying to tell me. Please expand.

figarospares commented 5 months ago

That is time line on b0 yesterday 4th of June lot of disconnects then last night did not change anything just enabled account again and was perfect for 20hrs and I have just updated to b1 and will see our it goes. when it did disconnect yesterday on b0 the log showed 403 forbidden

jamacof commented 5 months ago

Was connected for 18 minutes but then dropped again and hasn't reconnected since....

@jamacof, do you mean you re-enabled the account? If so, it does have to retrieve the Circles & Members list, and that can take a while. Please wait and let me know how it goes.

I deleted and set up the account again and it did retrieve the Circles etc. Was working fine for 18 minutes and then went offline and hasn't connected since. If I reenable the account manually in the settings now, it disconnects straight away or shows Invalid Authorisation.

Screenshot 2024-07-05 at 19 18 51
figarospares commented 5 months ago

Was connected for 18 minutes but then dropped again and hasn't reconnected since....

@jamacof, do you mean you re-enabled the account? If so, it does have to retrieve the Circles & Members list, and that can take a while. Please wait and let me know how it goes.

I deleted and set up the account again and it did retrieve the Circles etc. Was working fine for 18 minutes and then went offline and hasn't connected since. If I reenable the account manually in the settings now, it disconnects straight away or shows Invalid Authorisation. Screenshot 2024-07-05 at 19 18 51

I had that the other day on the official release I had to reset my password on life 360 and I was back in

jamacof commented 5 months ago

Was connected for 18 minutes but then dropped again and hasn't reconnected since....

@jamacof, do you mean you re-enabled the account? If so, it does have to retrieve the Circles & Members list, and that can take a while. Please wait and let me know how it goes.

I deleted and set up the account again and it did retrieve the Circles etc. Was working fine for 18 minutes and then went offline and hasn't connected since. If I reenable the account manually in the settings now, it disconnects straight away or shows Invalid Authorisation. Screenshot 2024-07-05 at 19 18 51

I had that the other day on the official release I had to reset my password on life 360 and I was back in

Let me try that then.

figarospares commented 5 months ago

Was connected for 18 minutes but then dropped again and hasn't reconnected since....

@jamacof, do you mean you re-enabled the account? If so, it does have to retrieve the Circles & Members list, and that can take a while. Please wait and let me know how it goes.

I deleted and set up the account again and it did retrieve the Circles etc. Was working fine for 18 minutes and then went offline and hasn't connected since. If I reenable the account manually in the settings now, it disconnects straight away or shows Invalid Authorisation. Screenshot 2024-07-05 at 19 18 51

I had that the other day on the official release I had to reset my password on life 360 and I was back in

Let me try that then.

Did that work mate?

jamacof commented 5 months ago

Was connected for 18 minutes but then dropped again and hasn't reconnected since....

@jamacof, do you mean you re-enabled the account? If so, it does have to retrieve the Circles & Members list, and that can take a while. Please wait and let me know how it goes.

I deleted and set up the account again and it did retrieve the Circles etc. Was working fine for 18 minutes and then went offline and hasn't connected since. If I reenable the account manually in the settings now, it disconnects straight away or shows Invalid Authorisation. Screenshot 2024-07-05 at 19 18 51

I had that the other day on the official release I had to reset my password on life 360 and I was back in

Let me try that then.

Did that work mate?

Not really. Was online for 34 minutes then it went offline again.

figarospares commented 5 months ago

mine as been on for 3hrs now still perfect.

How did you update it did you delete existing files?

jamacof commented 5 months ago

mine as been on for 3hrs now still perfect.

How did you update it did you delete existing files?

No, deleted the account through the integration, then updated through HACS and set up the account again. Guess I'll try removing it completely and resetting everything again...

figarospares commented 5 months ago

I deleted the integration then removed file in home assistant / config / custom components. Delete life 360 folder and uploaded new folder b1. Then back to home assistant and set up life 360 again.

smarthomefamilyverrips commented 5 months ago

Here did stay connected for 2 hours and 27 minutes on b.1 and then got the "403 error" in logs and get disconnected, now when I try to re-enable it not let me anymore and says "invalid authentication" when click "next" in authentication screen.

pnbruckner commented 5 months ago

says "invalid authentication" when click "next" in authentication screen

What "authentication screen"? I assume you mean something in the config flow, but there's no step called authentication. Do you mean when you enter username & password?

FWIW, there is now a 0.5.3b2 release.

smarthomefamilyverrips commented 5 months ago

says "invalid authentication" when click "next" in authentication screen

What "authentication screen"? I assume you mean something in the config flow, but there's no step called authentication. Do you mean when you enter username & password?

FWIW, there is now a 0.5.3b2 release.

@pnbruckner yes in Configure section under modify account where you can re-enable, if I select enable and click next I get the "invalid authentication" pop-up above credential fields

pnbruckner commented 5 months ago

@smarthomefamilyverrips have you verified your phone number in the Life360 app? If so, username & password won't work anymore. You either have to reset your Life360 account (with Life360), or you have to use the other (token) method with the integration.

smarthomefamilyverrips commented 5 months ago

@pnbruckner I did install b.2 but still am not able anymore to re-enable under the modify account section. Before when i was on the original non-beta version I was able to re-enable my account, only then it lasted maximum 10-20 minutes till got disconnected again

smarthomefamilyverrips commented 5 months ago

Life360

@pnbruckner I did not do anything to my life360 account or made any changes. I never did verify my phone number as far as I can remember if I already ever did it would have been when I created my account few years ago. I checked my app but only thing I can see related to phone number is option to change it, I not find anything that says my number is validated, is there anywhere where shows when your number is validated if this would be the case?

pnbruckner commented 5 months ago

@smarthomefamilyverrips I can guarantee you, even if you go back to the non-beta version, it will be the same situation. Your username/password combination will no longer work. Are you in the US? Can you try using https://life360.com/login and see if the username & password work there? What do you use to log into your Life360 app? In the app, when you look at your account under settings, does it say the phone number is verified?

smarthomefamilyverrips commented 5 months ago

@smarthomefamilyverrips I can guarantee you, even if you go back to the non-beta version, it will be the same situation. Your username/password combination will no longer work. Are you in the US? Can you try using https://life360.com/login and see if the username & password work there? What do you use to log into your Life360 app? In the app, when you look at your account under settings, does it say the phone number is verified?

As stated in my last message in my app under my account at phone number I only have option to change it but not see anything related to validation nor says anything about being verified. I am located in Romania and I use e-mail and password to login to app, I can login to app but using same credentials for the integration gives me the "invalid authentication" error. If I try login on the link you send it redirect me to https://app.life360.com/login and there I can login with my email and password.

pnbruckner commented 5 months ago

Ok, thanks. Given everything I've heard recently, and my own experience, it appears something about the Life360 API has changed that is preventing the integration from working reliably anymore. The change may be intentional or unintentional as far as trying to prevent third parties (such as this HA integration) from using their API. I'm getting very close to "throwing in the towel" again.

smarthomefamilyverrips commented 5 months ago

Ok, thanks. Given everything I've heard recently, and my own experience, it appears something about the Life360 API has changed that is preventing the integration from working reliably anymore. The change may be intentional or unintentional as far as trying to prevent third parties (such as this HA integration) from using their API. I'm getting very close to "throwing in the towel" again.

@pnbruckner Yeah it sure have the looks of it, I hope is just something temporary or something you still can overcome before you really throw in the towel... I personal really like the accuracy and frequent location updates of life360 and it is a nice addition to have trackers in HA. To bad that life360 not just wanna cooperate with the HA team, specially for people same as myself that have payed subscriptions to life360, you would had hope on some more customer-care from their side. Anyway one way or a other thank you for all the time and effort you put in now and before when life360 still was included in HA-core 🥇

smarthomefamilyverrips commented 5 months ago

I still will try to get a token when I am behind my PC again and see if can make it work that way.

figarospares commented 5 months ago

I am on b1 and it as been running now for 6hrs no problem

smarthomefamilyverrips commented 5 months ago

I am on b1 and it as been running now for 6hrs no problem

Unfortunately here I not even get it re-enabled again

figarospares commented 5 months ago

I am on b1 and it as been running now for 6hrs no problem

Unfortunately here I not even get it re-enabled again

are you on b1? Are you in the u.k?

smarthomefamilyverrips commented 5 months ago

I am on b1 and it as been running now for 6hrs no problem

Unfortunately here I not even get it re-enabled again

are you on b1? Are you in the u.k?

@figarospares I was on b1 and did not work to re-enable, then did try b2 and still exactly the same issue. I am located in Romania

figarospares commented 5 months ago

I am on b1 and it as been running now for 6hrs no problem

Unfortunately here I not even get it re-enabled again

are you on b1? Are you in the u.k?

@figarospares I was on b1 and did not work to re-enable, then did try b2 and still exactly the same issue. I am located in Romania

that is what happened to me on official version. to resolve it I had to reset my password on https://app.life360.com/login and it allowed me to enable again

smarthomefamilyverrips commented 5 months ago

I am on b1 and it as been running now for 6hrs no problem

Unfortunately here I not even get it re-enabled again

are you on b1? Are you in the u.k?

@figarospares I was on b1 and did not work to re-enable, then did try b2 and still exactly the same issue. I am located in Romania

that is what happened to me on official version. to resolve it I had to reset my password on https://app.life360.com/login and it allowed me to enable again

@figarospares my password still works as well in browser as in app, I did change my password in the app and try to re-enable again with the new password but this not works and still gave me the invalid authentication" message

figarospares commented 5 months ago

This is mine Screenshot (133)

figarospares commented 5 months ago

I am on b1 and it as been running now for 6hrs no problem

Unfortunately here I not even get it re-enabled again

are you on b1? Are you in the u.k?

@figarospares I was on b1 and did not work to re-enable, then did try b2 and still exactly the same issue. I am located in Romania

that is what happened to me on official version. to resolve it I had to reset my password on https://app.life360.com/login and it allowed me to enable again

@figarospares my password still works as well in browser as in app, I did change my password in the app and try to re-enable again with the new password but this not works and still gave me the invalid authentication" message

How did you update to b2 through hacs or delete life360 folder and copied new files?

smarthomefamilyverrips commented 5 months ago

This is mine Screenshot (133)

I hope yours keeps working, at least that gives hope for rest of us

smarthomefamilyverrips commented 5 months ago

I am on b1 and it as been running now for 6hrs no problem

Unfortunately here I not even get it re-enabled again

are you on b1? Are you in the u.k?

@figarospares I was on b1 and did not work to re-enable, then did try b2 and still exactly the same issue. I am located in Romania

that is what happened to me on official version. to resolve it I had to reset my password on https://app.life360.com/login and it allowed me to enable again

@figarospares my password still works as well in browser as in app, I did change my password in the app and try to re-enable again with the new password but this not works and still gave me the invalid authentication" message

How did you update to b2 through hacs or delete life360 folder and copied new files?

Did update from original to b1, and after to b2, did use hacs to update beta's

figarospares commented 5 months ago

@smarthomefamilyverrips Yes I hope so it such a good integration when it is working. Hopefully we can work it out together.

figarospares commented 5 months ago

I am on b1 and it as been running now for 6hrs no problem

Unfortunately here I not even get it re-enabled again

are you on b1? Are you in the u.k?

@figarospares I was on b1 and did not work to re-enable, then did try b2 and still exactly the same issue. I am located in Romania

that is what happened to me on official version. to resolve it I had to reset my password on https://app.life360.com/login and it allowed me to enable again

@figarospares my password still works as well in browser as in app, I did change my password in the app and try to re-enable again with the new password but this not works and still gave me the invalid authentication" message

How did you update to b2 through hacs or delete life360 folder and copied new files?

Did update from original to b1, and after to b2, did use hacs to update beta's

I never updated like that I deleted the integration then deleted the folder from custom comments the life360 folder and replaced with new version then rebooted home assistant and added the life360 integration.

smarthomefamilyverrips commented 5 months ago

I am on b1 and it as been running now for 6hrs no problem

Unfortunately here I not even get it re-enabled again

are you on b1? Are you in the u.k?

@figarospares I was on b1 and did not work to re-enable, then did try b2 and still exactly the same issue. I am located in Romania

that is what happened to me on official version. to resolve it I had to reset my password on https://app.life360.com/login and it allowed me to enable again

@figarospares my password still works as well in browser as in app, I did change my password in the app and try to re-enable again with the new password but this not works and still gave me the invalid authentication" message

How did you update to b2 through hacs or delete life360 folder and copied new files?

Did update from original to b1, and after to b2, did use hacs to update beta's

I never updated like that I deleted the integration then deleted the folder from custom comments the life360 folder and replaced with new version then rebooted home assistant and added the life360 integration.

I will try tomorrow to delete it all and re-install or else will try to use token to authenticate