pnbruckner / ha-life360

A Home Assistant integration for Life360.
32 stars 4 forks source link

Login failed from UK #30

Open Muleo14 opened 2 weeks ago

Muleo14 commented 2 weeks 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

Menz01 commented 2 weeks ago

i did a complete uninstall and re-install of the integration and got a new token but it will not grab my circle anymore

This error originated from a custom integration.

Logger: custom_components.life360.coordinator Source: custom_components/life360/coordinator.py:194 integration: Life360 (documentation, issues) First occurred: 5:44:52 PM (2 occurrences) Last logged: 5:53:26 PM

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

smarthomefamilyverrips commented 1 week ago

@pnbruckner I did login from web browser and did retrieve a token, after that did delete my account from configure flow and then added it again using the token instead of my email/password. It did now authenticate, now I am waiting if it will load my circle, at least is positive it did now let me authenticate.

smarthomefamilyverrips commented 1 week ago

i did a complete uninstall and re-install of the integration and got a new token but it will not grab my circle anymore

This error originated from a custom integration.

Logger: custom_components.life360.coordinator Source: custom_components/life360/coordinator.py:194 integration: Life360 (documentation, issues) First occurred: 5:44:52 PM (2 occurrences) Last logged: 5:53:26 PM

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

@Menz01 did it retrieve circle in the end?

Menz01 commented 1 week ago

Nope. Still no entities. No account error either but no members

smarthomefamilyverrips commented 1 week ago

Nope. Still no entities. No account error either but no members

Thanks for your answer I will wait a bit and see if at me retrieve circle

smarthomefamilyverrips commented 1 week ago

@pnbruckner seems I have the same problem as @Menz01 .... when I used token method for authentication it does authenticate my account, I get and stay connected but it not retrieve the devices in my circle.... I am connected for 6 hours now but my device tracker entities stay unavailable.

smarthomefamilyverrips commented 1 week ago

At a certain point I get this warning message in my logs

This error originated from a custom integration.

Logger: custom_components.life360.coordinator Source: custom_components/life360/coordinator.py:439 integration: Life360 (documentation, issues) First occurred: July 6, 2024 at 23:53:02 (1 occurrences) Last logged: July 6, 2024 at 23:53:02

Getting response from Life360 for sma.................@gmail.com is taking longer than expected

smarthomefamilyverrips commented 1 week 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

@figarospares is yours still working? Also did it retrieve all members from circle, all are available and showing correct location results?

figarospares commented 1 week ago

I can confirm I have had b1 running for 3 days now and is working perfect. No down time...

smarthomefamilyverrips commented 1 week ago

I can confirm I have had b1 running for 3 days now and is working perfect. No down time...

OK I will try to delete and re-install again also then tomorrow.

pnbruckner commented 1 week ago

Please see: https://github.com/pnbruckner/ha-life360/issues/25#issuecomment-2214072752

I'm not sure this integration can be made to work well anymore.

figarospares commented 1 week ago

Screenshot (136)

It is working perfectly

pnbruckner commented 1 week ago

@figarospares as I said in the other incident, although it may not be flagging an error and disabling the account, it may still be having to retry very often, and therefore getting very infrequent location updates.

You can easily find out by enabling debug for the integration, then after a while, go to Settings -> System -> Logs, enter "[custom_components.life360.coordinator] Finished fetching" in the "Search logs" box, and click LOAD FULL LOGS. You should see messages like this:

2024-07-09 08:58:38.059 DEBUG (MainThread) [custom_components.life360.coordinator] Finished fetching John Doe data in 0.198 seconds (success: True)

If the number of seconds is always less than one, then you're not being affected by these errors. However, if you're actually getting the errors, but the integration is able to successfully retry, then you'll see numbers that are around multiples of 60 seconds. These numbers show how long it actually takes to get an update from the server.

smarthomefamilyverrips commented 1 week ago

Screenshot (136)

It is working perfectly

@figarospares I did delete and re-install version b.02 but still am not able to login by email, I can using access token but still it never retrieves my members of my life360 account, iI not have any device tracker entities in the integration. This is why I asked if you have all members available as device trackers and if they update frequently when not stationary.

figarospares commented 1 week ago

[custom_components.life360.coordinator] Finished fetching

I just checked the logs and they are fine see pic Screenshot (137)

smarthomefamilyverrips commented 1 week ago

[custom_components.life360.coordinator] Finished fetching

I just checked the logs and they are fine see pic Screenshot (137)

@figarospares thanks for your response, I will try to delete one more time tomorrow and then do a re-install with version b.01 instead of b.02

figarospares commented 1 week ago

[custom_components.life360.coordinator] Finished fetching

I just checked the logs and they are fine see pic Screenshot (137)

@figarospares thanks for your response, I will try to delete one more time tomorrow and then do a re-install with version b.01 instead of b.02

version b1

figarospares commented 1 week ago

life 360 app phone number is verified then it would not login with email went over to https://app.life360.com/login then tried to login with email but would not login so went to forgot password and used same password now i could login using email and password it as been working as you can see. I have also setup custom card which display Place and if unkown shows location and also speed in mph and battery level. I am also on discord if you want to pm me

smarthomefamilyverrips commented 1 week ago

life 360 app phone number is verified then it would not login with email went over to https://app.life360.com/login then tried to login with email but would not login so went to forgot password and used same password now i could login using email and password it as been working as you can see. I have also setup custom card which display Place and if unkown shows location and also speed in mph and battery level. I am also on discord if you want to pm me

@figarospares one more question if you not mind, if I did understand correctly out of on ofyour previous responses you did manually add the content of the life360 integration folder into your custom components folder you not used HACS for installation correct?

figarospares commented 1 week ago

life 360 app phone number is verified then it would not login with email went over to https://app.life360.com/login then tried to login with email but would not login so went to forgot password and used same password now i could login using email and password it as been working as you can see. I have also setup custom card which display Place and if unkown shows location and also speed in mph and battery level. I am also on discord if you want to pm me

@figarospares one more question if you not mind, if I did understand correctly out of on ofyour previous responses you did manually add the content of the life360 integration folder into your custom components folder you not used HACS for installation correct?

yes correct.... Delete the integration first then goto home assistant folder config custom comments delete life360 folder and drop new b1 in there then re add integration in home assiant and login with email and password

figarospares commented 1 week ago

@smarthomefamilyverrips How did you get on?

smarthomefamilyverrips commented 1 week ago

@smarthomefamilyverrips How did you get on?

@figarospares I will try again tomorrow to manually add b1 .... now is 23:00 here and probably my wife will make me sleep with the dog if I still go play with HA now :))) .... I will keep you posted when have news.

figarospares commented 1 week ago

@smarthomefamilyverrips Ok mate

figarospares commented 1 week ago

not sure if this would effect anything i am on HA version 2024.7.1

Menz01 commented 1 week ago

life 360 app phone number is verified then it would not login with email went over to https://app.life360.com/login then tried to login with email but would not login so went to forgot password and used same password now i could login using email and password it as been working as you can see. I have also setup custom card which display Place and if unkown shows location and also speed in mph and battery level. I am also on discord if you want to pm me

@figarospares one more question if you not mind, if I did understand correctly out of on ofyour previous responses you did manually add the content of the life360 integration folder into your custom components folder you not used HACS for installation correct?

yes correct.... Delete the integration first then goto home assistant folder config custom comments delete life360 folder and drop new b1 in there then re add integration in home assiant and login with email and password

i did all these steps now and it did not work for me. i can still add the integration and add my account but it will only create one single binary sensor that stays connected but will not add any of the members of the circle image

Menz01 commented 1 week ago

hey... just an FYI.... i think being on the latest version of HA makes a difference. i was on 20246.2 because Alexe Media Player integration is having issues. i have a work around in place now for it so i updated to 2024.7.1 and i noticed after the reboot that life360 was showing all my member entities now. will see how long it lasts but wanted to update everyone

figarospares commented 1 week ago

@Menz01 how is it going is it still connected?

smarthomefamilyverrips commented 1 week ago

@figarospares I followed all the steps you did, also reset my password to same password using the forgot password on https://app.life360.com/login, delete integration, removed the life360 folder from custom components, added manually the b1 version, restarted and try add integration again in UI, and still I get the "invalid authentication" message when I try to login with email/password ..... still it works if I try to login with token but then again as before it only create a entity that show connection state and shows I am connected but it never retrieves the members within my circle nor add them as entities within the integration :(

EDIT, only thing is I am still on 2024.6.x and not yet updated to 2024.7.x

Menz01 commented 1 week ago

@Menz01 how is it going is it still connected?

So far so good. all my entities are still showing in the integration. how long it will work for i cannot say as this has happened before. as for now it is working

Menz01 commented 1 week ago

@figarospares I followed all the steps you did, also reset my password to same password using the forgot password on https://app.life360.com/login, delete integration, removed the life360 folder from custom components, added manually the b1 version, restarted and try add integration again in UI, and still I get the "invalid authentication" message when I try to login with email/password ..... still it works if I try to login with token but then again as before it only create a entity that show connection state and shows I am connected but it never retrieves the members within my circle nor add them as entities within the integration :(

EDIT, only thing is I am still on 2024.6.x and not yet updated to 2024.7.x

upgrading to 2024.7.1 was the key to fixing mine

figarospares commented 1 week ago

@Menz01 so you are up and running now?

smarthomefamilyverrips commented 1 week ago

@figarospares I followed all the steps you did, also reset my password to same password using the forgot password on https://app.life360.com/login, delete integration, removed the life360 folder from custom components, added manually the b1 version, restarted and try add integration again in UI, and still I get the "invalid authentication" message when I try to login with email/password ..... still it works if I try to login with token but then again as before it only create a entity that show connection state and shows I am connected but it never retrieves the members within my circle nor add them as entities within the integration :( EDIT, only thing is I am still on 2024.6.x and not yet updated to 2024.7.x

upgrading to 2024.7.1 was the key to fixing mine

Thanks for replying, I will try/see then when I update to 2024.7.x ... for the moment the 2024.7 updates cause problems with the icloudv3 integration, so I will wait till there is a fix for this before I end up not having any device trackers anymore :)))