Method for configuring a home automation system for a building executed by a configuration device, wherein the home automation system comprises a plurality of communicating devices (6, 8, 10, 22, 24) in order to carry out a plurality of home automation functions and a communications network to which the communicating devices are connected, wherein each communicating device comprises a network interface having a network address and an electronic controller implementing one or more software objects that model the communicating device in the form of resources of at least three types: input, output, and logical unit, wherein the home automation system also includes a software application layer in which the resources that can be provided by each home automation device at any time are accessible by means of an application programming interface implemented by the electronic controller of each communicating device, wherein each software object is a software representation of at least one part of a communicating device in the software application layer, wherein the method comprises the steps of: - discovering the different communicating devices of the communications network, - mapping the resources (72, 74, 76) offered by each communications device discovered on the communications network, this step comprising a sub-step of enumerating the resources (72, 74, 76) offered by each communicating device discovered and a sub-step of associating a resource identifier with each resource enumerated, - programming home automation functions of the home automation system, taking into account the map of the resources (72, 74, 76) on the communications network, this step comprising establishing links between the inputs, logical units, and outputs and configuring the logical units in order to process data provided by the inputs and transmit the result of the processing to the outputs in order to control the output objects. wherein the home automation system also includes a software application layer in which the resources that can be provided by each home automation device at any time are accessible by means of an application programming interface implemented by the electronic controller of each communicating device, wherein each software object is a software representation of at least one part of a communicating device in the software application layer, wherein the method comprises the steps of: - discovering the different communicating devices of the communications network, - mapping the resources (72, 74, 76) offered by each communications device discovered on the communications network, this step comprising a sub-step of enumerating the resources (72, 74, 76) offered by each communicating device discovered and a sub-step of associating a resource identifier with each resource enumerated, - programming home automation functions of the home automation system, taking into account the map of the resources (72, 74, 76) on the communications network, this step comprising establishing links between the inputs, logical units, and outputs and configuring the logical units in order to process data provided by the inputs and transmit the result of the processing to the outputs in order to control the output objects. - discovering the different communicating devices of the communications network, - mapping the resources (72, 74, 76) offered by each communications device discovered on the communications network, this step comprising a sub-step of enumerating the resources (72, 74, 76) offered by each communicating device discovered and a sub-step of associating a resource identifier with each resource enumerated, - programming home automation functions of the home automation system, taking into account the map of the resources (72, 74, 76) on the communications network, this step comprising establishing links between the inputs, logical units, and outputs and configuring the logical units in order to process data provided by the inputs and transmit the result of the processing to the outputs in order to control the output objects.