A method for commissioning a building with a data network and with at least two actuators (3a - 3e, 4a - 4e), each actuator (3a - 3e, 4a - 4e) having an identifier and connecting to the data network, and with at least two sensors (5a - 5d), each sensor (5a - 5d) having an identifier and connecting to the data network, the method comprising the steps of: obtaining via the data network from each of the at least two actuators (3a - 3e, 4a - 4e) and from each of the at least two sensors (5a - 5d) an identifier; obtaining via the data network from each of the at least two actuators (3a - 3e, 4a - 4e) a setting and from each the of at least two sensors (5a - 5d) a reading; forming at least two pairs of identifiers, each pair comprising an identifier of an actuator (3a - 3e, 4a - 4e) and an identifier of a sensor (5a - 5d); forming for each pair of identifiers a pair of data, each pair of data comprising the setting obtained from the actuator (3a - 3e, 4a - 4e) of the corresponding pair of identifiers and the reading obtained from the sensor (5a - 5d) of the corresponding pair of identifiers, thereby establishing a surjective correspondence between pairs of identifiers and pairs of data; determining for each pair of identifiers a correlation coefficient between the actuator setting of the corresponding pair of data and the sensor reading of the corresponding pair of data, thereby establishing a surjective correspondence between pairs of identifiers and correlation coefficients; using said correlation coefficients to identify amongst the pairs of identifiers at least one pair of identifiers with the closest correlation between the corresponding actuator setting the corresponding sensor reading; assigning the actuator (3a - 3e, 4a - 4e) of said most closely correlated pair of identifiers to the sensor (5a - 5d) of said most closely correlated pair of identifiers, characterized in that at least one of the actuators (3a - 3e, 4a - 4e) or at least one of the sensors (5a - 5d) is operable to estimate its location by providing a circuit component for satellite navigation or by using a sensor for particulate matter or by measuring signal strengths of wireless signals and using triangulation to determine proximity of the at least one of the actuators (3a - 3e, 4a - 4e) or of the at least one of the sensors (5a - 5d) to radio frequency devices nearby. obtaining via the data network from each of the at least two actuators (3a - 3e, 4a - 4e) and from each of the at least two sensors (5a - 5d) an identifier; obtaining via the data network from each of the at least two actuators (3a - 3e, 4a - 4e) a setting and from each the of at least two sensors (5a - 5d) a reading; forming at least two pairs of identifiers, each pair comprising an identifier of an actuator (3a - 3e, 4a - 4e) and an identifier of a sensor (5a - 5d); forming for each pair of identifiers a pair of data, each pair of data comprising the setting obtained from the actuator (3a - 3e, 4a - 4e) of the corresponding pair of identifiers and the reading obtained from the sensor (5a - 5d) of the corresponding pair of identifiers, thereby establishing a surjective correspondence between pairs of identifiers and pairs of data; determining for each pair of identifiers a correlation coefficient between the actuator setting of the corresponding pair of data and the sensor reading of the corresponding pair of data, thereby establishing a surjective correspondence between pairs of identifiers and correlation coefficients; using said correlation coefficients to identify amongst the pairs of identifiers at least one pair of identifiers with the closest correlation between the corresponding actuator setting the corresponding sensor reading; assigning the actuator (3a - 3e, 4a - 4e) of said most closely correlated pair of identifiers to the sensor (5a - 5d) of said most closely correlated pair of identifiers, characterized in that at least one of the actuators (3a - 3e, 4a - 4e) or at least one of the sensors (5a - 5d) is operable to estimate its location by providing a circuit component for satellite navigation or by using a sensor for particulate matter or by measuring signal strengths of wireless signals and using triangulation to determine proximity of the at least one of the actuators (3a - 3e, 4a - 4e) or of the at least one of the sensors (5a - 5d) to radio frequency devices nearby.