Method and apparatus for controlling device

The disclosure, which belongs to the communication field, relates to a method and apparatus for controlling a device. The method comprises: type identifier information of a to-be-controlled device is obtained, wherein the type identifier information is used for identifying a manufacturer and a device type of the to-be-controlled device; according to the type identifier information, a control interface for controlling devices with the device type is obtained, wherein the devices are manufactured by the manufacturer; and the to-be-controlled device is controlled by the control interface. The apparatus includes a first obtaining module, a second obtaining module, and a control module. According to the invention, the control interfaces for controlling all functions contained by the to-be-controlled device is obtained based on the type identifier information of the to-be-controlled device; and thus all functions of the to-be-controlled device are controlled by using the control interface.