I have a flow that when a motion detector registers movement I send a snap-shot picture from my IP-camera to my phone as a push. This should only be done if no-one is at home, which is based on UniFi presence. I would like to change so that i take the picture when the movement is registered but if a phone connects within 1-2 minutes I do not want the push. This is to avoid pushing when I get home myself or my family.
So if the phones have connected to the UniFi network within two minutes no picture should be sent. I cannot wait two minutes with taking the picture.