Notification Based On ”Away From Home”

I am trying to setup an automation that notifies me when a door is open for 5 seconds if I am away from my house. Does anyone know how to setup the “location” part of this automation? I have attached an image of what I have so far. The automation works except the missing piece that I’m looking for is the location portion. I would like for it to notify me IF I’m not home. Is this something that is possible?