Turn on a light after i arrive and then a door opens

I would say Simulated Switch will be an easier way since you are just implementing one scenario. To create a simulated switch, go to SmartThings IDE, then do to “My Devices” and then click on “+ New Device”… Then create a simulated switch like shown below.

You can then use this switch as follows,

Upon arrival, turn on “Arrival Switch”, wait 5 minutes and turn off
or if { arrival switch = “ON”} AND {Contact = open} AND { Mode = Night} , then turn ON Light

You can then leverage this switch for any other automations as well that you may want based on your arrival

image