Door sensors issue

Hey there. New to SmartThings. I just set up the multi purpose sensors so that they turn some lights on when you open the door. My question is what do I do so that lights don’t turn on when I’m leaving?

Are you using webCore or just the ST app? If just the ST app set a goodbye routine that will just shut them off after you are outside the geofence. If webcore I think you can check the status of your presence sensor, if you haven’t been present for X number of minutes turn the light on when the door opens, if you have been present longer than X then do nothing.

I bought the ST home monitoring system so that is what I’m using hardware wise. I was thinking I’d just use the ST app.

Do you have your phone set up as a presence sensor?