[OBSOLETE] Life360 - Refreshed Every Minute & All Places & More All API Data available for webCoRE Usage

Best thing you can do it is open IDE logging before you get home so you can get the logs of what is happening

I can’t remember the last time my life360 not working correctly. Are you using iOS or android?

Thanks…will try that to see if anything shows up…its IOS 12

Bill P

OK I watched the culprit phone from the IDE
Its almost like it thinks its moving when at home…
example when away …
6:54:38: info Life360 generatePresenceEvent (present = false, homeDistance = 4081.2159944196)
that repeats over and over and is solid…showing the phone remaining stationary
but when at HOME

17:09:46: info Life360 generatePresenceEvent (present = true, homeDistance = 0)
17:11:39: info Life360 generatePresenceEvent (present = true, homeDistance = 185.14594125214305)
17:12:46: info Life360 generatePresenceEvent (present = true, homeDistance = 87.47423897042653)
17:14:38: info Life360 generatePresenceEvent (present = true, homeDistance = 71.39903667115833)
17:15:38: info Life360 generatePresenceEvent (present = true, homeDistance = 29.280101102135625)
17:16:38: info Life360 generatePresenceEvent (present = true, homeDistance = 19.131508153322365)

any clues in this as to why its moving around wildly when actually at HOME…?
thanks

Bill P

Yes …this is now looking repeatable… when either presence sensor (iPhone 6 and 10 both running ios12) returns HOME, it shows as PRESENT, then immediately leave for a minute or so then Present again , where it seems to then settle down …thats what is causing false triggers…
I have attached IDE and smarthings showing this…
any ideas what this could be? my life360 HOME radius has been increased to 2400feet so the phones are not actually leaving that zone, yet think they are on first arrival only
As mentioned I have seen a couple of life360 updates to the iOS app in the last week…wonder if they broke something?

Bill P

weird !

I think I understand the problem give me a few hours

I don’t understand why it is doing it
annoying I need to see more of this line
I have made changes to the app to help me understanding the logs

Will see if I have the rest …if not will capture again…much appreciated !

Bill P

EDIT…sadly I dont have the rest of that particular one, but expect that presence sensor back in the next hour so am live logging as we speak

ok here are the 2 lines just triggered as phone arrives home…whole lines this time ! i removed a couple of the access token numbers in case thats a security issue…

17:36:38: info Life360 placeEventHandler: params=[placeId:ec0f5efa-7c5e-4101-90ce-c87d7051e956, direction:in, userId:8e80e778-b331-48a0-9fbe-2eba5cf5ab1e, circleId:9c667df1-1aec-4cc9-b4c7-4e7cc34d8391, access_token:2-d7cd-4b7f-ab36-412801, appId:97d23ecf-9db9-4830-b263-602d5098af0e, param1:placecallback, action:[GET:executeSmartAppGet, POST:executeSmartAppPost, PUT:executeSmartAppPut, DELETE:executeSmartAppDelete, OPTIONS:executeSmartAppOptions], controller:smartAppApi], settings.place=ec0f5efa-7c5e-4101-90ce-c87d7051e956

and then

17:36:38: info Life360 placeEventHandler: params=[placeId:ec0f5efa-7c5e-4101-90ce-c87d7051e956, direction:in, userId:8e80e778-b331-48a0-9fbe-2eba5cf5ab1e, circleId:9c667df1-1aec-4cc9-b4c7-4e7cc34d8391, access_token:2-d7cd-4b7f-ab36-412801 appId:97d23ecf-9db9-4830-b263-602d5098af0e, param1:placecallback, action:[GET:executeSmartAppGet, POST:executeSmartAppPost, PUT:executeSmartAppPut, DELETE:executeSmartAppDelete, OPTIONS:executeSmartAppOptions], controller:smartAppApi], settings.place=ec0f5efa-7c5e-4101-90ce-c87d7051e956

and this odd one

17:36:38: debug Life360 event raised on child device: 97d23ecf-9db9-4830-b263-602d5098af0e.8e80e778-b331-48a0-9fbe-2eba5cf5ab1e

hope that helps !

Bill P

any ideas on this one? thanks in advance

Bill P

All I can think of doing is making a setting to delay another refresh but no one else is reporting the same issue

Very odd indeed! …thanks for looking into it

Bill P

Here you go made you some special code - Runs every 2 mins instead of one
Please test to see if this reduces the problem I have a idea to improve this if it does IDE logs would be nice next time to arrive home

https://raw.githubusercontent.com/tmleafs/life360-smartthings-refresh/d219173322e1db2534a45fe54b178ea78781b919/smartapps/tmleafs/life360-connect.src/life360-connect.groovy

Thats very kind…thanks!..its in and running now, should have some answers pretty soon , as one of the presence sensors is out and about to return

will report back !

Cheers

Bill P

so here is what happened with the new code
the sensor which was odd before is named KAREN…that was already out and returned…(at 11.05)
it seems stable now but takes 15 mins or so to show HOME position accurately …it seems to think HOME is measured at 636 .initially .im guessing thats feet ?
it then settles down to being much more accurate…but at least its not randomly wildly varying

karen is iphone6
Mine is iPhone x both running same OS
Does this give any clues?

thanks again !

Bill P

I’m having the same issue, no issues when using your previous life 360 app. Now though, the garage is going insane and siren keeps going off because of the presence

Sorry to hear that, any chance your devices are iOS? Trying to work out why mine has never been better, yet some people are having issues

Yes they all are. Sorry I glanced through this quickly while with an eye doctor. But I had set up webcore rules that would only open the garage door if a person came back and had been gone
previously for 10 minutes to avoid the garage door opening again once a person was inside. In theory, I’m fairly certain that should have solved the issue, but the garage doesn’t open on the initial presence arriving. So I’m really not sure how to solve on my own. If you need any type of logging, let me know and I’ll set it up.

All iPhones on latest ios, two iPhone 6 and one iPhone xs.

@wakevortex & @Andy_Armijo

Can you change your app to this code
https://raw.githubusercontent.com/tmleafs/life360-smartthings-refresh/tmleafs-delay/smartapps/tmleafs/life360-connect.src/life360-connect.groovy

When a webhook (the official way the presence is updated) is sent it now disables the update of the new way for 4 mins. I believe iOS app has a bug where its sending a webhooks but not updating other information at the same time.
Would be interesting if we can prove this as it might best to change the update time for iOS users. the current default is 1 minute used to be 5 but it wasn’t useful for me

@Andy_Armijo I take it its only going crazy during the first few minutes of arrival? and not going completely mad?

Yes, just the first few minutes. And yes, other information seems to go without being updated. WIFI and charging are two that never change.

Thanks …yes all IOS 12 devices here…will add the new code, though sadly won’t be able to test for a few weeks for various reasons…will keep an eye on the thread though !

Bill P