The invention provides a method of inputting a code to a thermostat comprising the following steps, providing a thermostat having a display panel and a receiver for receiving signals from a local router, the local router configured to receive signals via the internet from a remote input device (RID), transmitting a register command to the local router, transmitting new user information to the local router and the thermostat receiving a serial number from the local router and the thermostat synchronizing with the RID without requiring any direct inputs to the display panel of the thermostat. The RID may verify the service set identifier (SSID).