A gateway device for managing a set of two or more local management devices at a location comprising: a first interface that allows connectivity to a remote network over which the gateway can communicate to remote systems which are remote to the location; a second interface for communication to a local network including a set of local management devices; a processor; a memory; an address of a gateway registry; a serial number of the gateway device; a key; logic that, upon initialization of the gateway device, uses the address of the gateway registry to communicate between the gateway device and the gateway registry, wherein the gateway registry is included on a first server and the gateway server is included on a second server located physically separate from the first server, and sends, from the gateway device over the remote network, a request to the gateway registry specifying the serial number of the gateway device, and in response to the request, receives in the gateway device, from the gateway registry over the remote network, a response including an address of a gateway server that has an account associated with the gateway device for managing the location associated with the gateway device, and receives, from the gateway registry over the remote network, an identification of the account associated with the gateway device for managing the location associated with the gateway device, and communicates between the gateway device and the gateway server upon which the account associated with the gateway device is stored using authentication information derived based on the key, and communicates, over the remote network from the gateway device to the gateway server upon which the account associated with the gateway device is stored, the identification of the account that was received from the gateway registry and, in response to the communication of the identification of the account that was received from the gateway registry, receives account information from the gateway server; and logic that, after initialization of the gateway device, uses the account information to manage a set of local management devices connected to a local network located at the location, wherein the gateway device is also located at the location and connected to the local network.