1. A network device, comprising:a housing mountable inside an electrical box and including a room-facing wall and an electrical box-facing wall;
a data processor within the housing connected to a wireless transceiver and a memory for storing a customizable setting;
a relay configured to control a power state of an electrical device, wherein the data processor is operable to open or close the relay;
electrical terminals connectable to an electrical supply for providing power to the data processor and for providing switchable power to the electrical device through the relay, wherein the electrical terminals are coupled to the electrical box-facing wall of the housing; and
a restore button located on the room-facing wall and connected to the data processor for erasing the customizable setting of the network device.