Set a iPhone reminder with "remind me at a location" turned on. Set your home location or whatever you want. Then when you arrive @ the location your lights, door un/lock, etc.... will activate.
(WeMo, SmartThings Apps). When I pull into my driveway my porch lights go on and my front door unlocks.
Popular services on IFTTT