Android phone presence randomly cycles


(Don Caruana) #1

I use my android presence to run a few things. Recently I’ve noticed that the phone will cycle the presence. Every time this happens (average 2-3 times a day), the whole change takes less than 20 seconds and it’s back where it started.

Has anyone seen anything like this and does anyone have any suggestions on how to address it?

I thought about modifying the mobile presence dth somehow but I’m not sure how I would put a delay in there that would work in an actual departure or arrival.

I use CORE to drive stuff off the presence and I was thinking maybe I could build some kind of time delay switch to trigger off as an intermediary (instead of directly off the presence) but wasn’t sure how to do that.

Any other suggestions with what I have? I don’t really want to go to life360 or tasker if I can help it.


(Ricci Hoffer) #2

You can try something like this. Not sure sure which direction the cycling is affecting you, arriving or closing. “Was not present for” could be changed to “was present for”


( I hate Mondays) #3

My iPhone and my wife’s iPhone started doing the same a few days ago.


#4

IPhones :iphone: here too.
Threw off my unlock pistons

Any ideas?


( I hate Mondays) #5

This is how I plan on addressing it with CoRE (SE). That app is still in alpha and I strongly recommend AGAINST using it in production at this point. But it’s coming soon as BETA and that’s when courageous people can try it out.

I am using two functions there, ge (greater or equal than) and previousAge (which returns the duration of the previous state of the device/attribute pair provided).

Still testing it though…


(Don Caruana) #6

Sounds like a smartthings issue to me. The problem with any code is the level of granularity available - everything has to be at least one minute.


#7

I hope ST app gets fixed soon, the graph ide shows correct presense but wife’s piston still launched even though my iPhone arrived but my wife’s iPhone is miles away hours ago…


(Don Caruana) #8

One thing you might want to do is look in the app at the geofence logs. Every time there has been an issue, the geofence logs show a reading outside my normal home area. Now I don’t know if those are directly received from my phone or ST is interpreting them, but it is possible it’s not ST’s fault.

You can find the logs in the app menu under Support->Help Us Debug