Automation qestion

Hi, i need help about an automation i want to create:

if the door is open
wait 10 seconds
then check if someone is at home
if none then send me a notification “the door is open”
if yes do nothing

is it possible? i use netear rotuer for device track aqara door sensor and telegram notification.

Thanks in advance