A system for initializing home-automation device, the system can include server-hardware including a processor and computer memory, the serve-hardware configured to receive point-of-sale data specifying a specified bed-controller and specifying a specified peripheral-controller and transmit setup data to a computing device. The computing device including a processor and computer memory, the computing device configured to receive the setup data, and cause, based on the setup data, the specified bed-controller to pair with the specified peripheral-controller.