About a year ago I saw a post about this. Someone used a Chamberlain drive way sensor. If something breaks the beam, then it sends a signal to a base station. The base station has contacts that can be wired to a Zwave door sensor that reports to a hub. Then you put a smart plug where you want the power shut off.