A method of controlling a
building automation system (1) for controlling at least one device (10, 15, 20, 25, 30, 35) such as a window, blind,
shutter,
awning, door,
ventilation shaft and / or
light source, wherein said
building automation system (1) comprises one or more controllable units (12, 13, 22, 23, 32, 33) being associated with said at least one device (10, 15, 20, 25, 30, 35). One or more mobile clients (4, 5) wirelessly transmits a
client identifier (CI) for identifying the
mobile client (4, 5), and a
receiver (200) receives said
client identifier(s) (CI) transmitted from said mobile clients (4, 5). The received data is processed based on
client identifier
information data (CII) comprising information of one or more registered client identifiers (CI) of mobile clients (4, 5), and
client status information (CSI) comprising information of registered
mobile client(s) (4, 5) registered as present, is updated according to said
processing of received client identifiers (CI). This information is used for operating controllable units of the
system according to different sets of predefined rules. The client identifier (CI) may be a
MAC address and the transmitted client identifier (CI) may be used for user occupation presence detection. The disclosure moreover relates to a
building automation system, a
receiver and a
software program product.