I'm looking for a smart outlet (IoT controlled device that allows turning whatever is plugged into it on/off remotely). But, I'm specifically trying to find one that can also be programmed/modified/set so that it will auto cycle power (turn off then back on) if or when the power draw of whatever is plugged into it falls below a certain wattage that I will set (for example 500 Watts)
Please let me know if there's any off-the-shelf IoT device that can do this, and if not, where should I look for info/resources on how to build my own.