A mobile device for generating input data for building automation configuration, the mobile device being communicatively coupled with a digital camera, the mobile device comprising: a data storage module configured to record a plurality of subsequent images of a cabinet from the digital camera at different zoom levels or under different viewing angles and to store a single image which integrates the plurality of recorded images, the cabinet including a plurality of control devices (20 to 33) for controlling at least a portion of a building wherein at least a subset of the plurality of control devices is associated with a device identification marker (1, 2), wherein in case of the plurality of subsequent images of the cabinet being under different viewing angles, all visible device identification markers are represented in the single image of the cabinet, and wherein the data storage module is further configured to save graphical representations of control devices in a cabinet layout in accordance with their respective device types, wherein a device type associated with a saved graphical representation is any of the following control device types: switch actuator, dimmer actuator, constant-light-controller, control device with analogue and binary inputs, room controller, and HVAC-controller; a device identification module to identify the control devices (20, 24) of the subset by decoding the corresponding device identification markers (1, 2), and to retrieve a device type for each identified control device; an image processing module configured to determine, from the single image which integrates the plurality of recorded images, a segmentation of the image by identifying walls (210, 220) and separators (230, 240, 250) of the cabinet via image processing wherein one or more determined segments between the walls and separators define the cabinet layout reflecting the physical structure of the cabinet and each determined segment (141-230, 141,240, 141-250) is associated with a physical location within the cabinet, and further configured to determine the relative positions of the identified control devices within the cabinet layout based on their relative positions in the determined segments, and to determine the shapes of the identified control devices as the respective graphical representations, and to insert the respective graphical representations into the cabinet layout; and a provisioning module configured to provide as the input data, to a building automation system, basic configuration data including a list of the identified control devices located inside the cabinet, and to provide the cabinet layout with the graphical representations inserted into the cabinet layout at the relative positions of the identified control devices within the cabinet. a data storage module configured to record a plurality of subsequent images of a cabinet from the digital camera at different zoom levels or under different viewing angles and to store a single image which integrates the plurality of recorded images, the cabinet including a plurality of control devices (20 to 33) for controlling at least a portion of a building wherein at least a subset of the plurality of control devices is associated with a device identification marker (1, 2), wherein in case of the plurality of subsequent images of the cabinet being under different viewing angles, all visible device identification markers are represented in the single image of the cabinet, and wherein the data storage module is further configured to save graphical representations of control devices in a cabinet layout in accordance with their respective device types, wherein a device type associated with a saved graphical representation is any of the following control device types: switch actuator, dimmer actuator, constant-light-controller, control device with analogue and binary inputs, room controller, and HVAC-controller; a device identification module to identify the control devices (20, 24) of the subset by decoding the corresponding device identification markers (1, 2), and to retrieve a device type for each identified control device; an image processing module configured to determine, from the single image which integrates the plurality of recorded images, a segmentation of the image by identifying walls (210, 220) and separators (230, 240, 250) of the cabinet via image processing wherein one or more determined segments between the walls and separators define the cabinet layout reflecting the physical structure of the cabinet and each determined segment (141-230, 141,240, 141-250) is associated with a physical location within the cabinet, and further configured to determine the relative positions of the identified control devices within the cabinet layout based on their relative positions in the determined segments, and to determine the shapes of the identified control devices as the respective graphical representations, and to insert the respective graphical representations into the cabinet layout; and a provisioning module configured to provide as the input data, to a building automation system, basic configuration data including a list of the identified control devices located inside the cabinet, and to provide the cabinet layout with the graphical representations inserted into the cabinet layout at the relative positions of the identified control devices within the cabinet.