You don't need Alexa to do that. Just about any home automation system that has a motion sensor product can do that. This includes SmartThings, Wemo, D-Link, Philips, and many more. Devices that require a hub (e.g. SmartThings), well, requires a hub. No hub = no magic. Wemo devices, on the other hand, do not require a hub.