How to set minutes before something happens?


#1

Simple question

My piston says if both of the phones leave then set the location to away, but the gps area is so small that it runs both left and arrived at the same time

So I wanna do something like if both are phones change to not present for at least 5min then change location to away

Thanks


#2

You can add a wait before setting the location.

Or you can do an expression using the age() function.

age([presence device:presence]) > 300000

#3

Thanks will try that

What I did was if both phone are presence not present AND did not change for 5minutes

Then change location to away


#4

Did not change looks at the previous 5 minutes.

Stays starts a timer for 5 minutes.

You might be better off using stays instead


#5

Ok thanks