Configuring the smart plug