First off it needs to have energy monitoring. Not all smart plugs have this.
Then it's fairly straightforward to use the power attribute changing as a trigger. Then if it is less than a certain amount something happens.
This is a rule I have for our main TV turning on and letting us know when the kids are home by themselves (and supposed to be doing school work) it looks a bit more complicated than I explained above but the basics are still there.