If you enter or exit an area then toggle the lights on/off

Location allows apps and websites to use information from cellular, Wi-Fi, and GPS networks to determine your approximate location. This service requires downloading the IFTTT app for iPhone or Android. Locate your phone or find your mobile device.
WIFIPLUG is the world's smallest app controlled smart plug with live energy monitoring.