Device Detection and Smart Plugs question