Creating an interface for the smart plug