With SmartLighting (and probably rule machine) you can trigger events based off of state. With smart lighting it will run locally which has a few advantages.
Basically if the outlet is off, it will turn it on.
I mentioned how to setup something in this thread: