A method, a component, and an electronic device (102) relating to the field of industrial automation technology, particularly relating to the creation of a human machine interface (HMI), and are used for automatically creating an HMI of a system (101). The method for creating an HMI comprises: a first component (1011) of a system receives, via an HMI, a first command for creating an HMI for the system (101) (S304); the first component (1011) obtains, from each searched and found second component (1012) of the system (101) an HMI resource of each of the second components (1012) (S307); and the first component creates, on the basis of an HMI resource of the first component (1011) and the obtained HMI resource from each of the second components (1012), the HMI for the system (101) (S308). One component of the system (101) collects the HMI resource of another component of the system and creates the HMI for the whole system (101), providing a method for automatically creating the HMI for the system (101).