Distinguish between Open door for come in or go out?

My SHM Delay app does all of that and more.
For Exit Delay:

  1. When using a Keypad in conjunction with the SHM Delay and Lock Manager, there is a timed exit in Keypad when the Smarthome system is not armed.
  2. When not using a keypad use SHM Delay TrueExit in conjunction with SHM Delay for a timed exit when the SmartHome system is not armed

For Entry Delay:

  • When Contact sensor is opened, a motion sensor may be set to “Follow”, meaning it won’t trigger the alarm. However, at other times in away mode it triggers an instant alarm.

SHM Delay also has Open Door messages issued after the system is armed and at user defined intervals after the initial warning.