A lighting device (1, 1'), comprising: a set up processor (3, 3') for carrying out a set up of the lighting device (1, 1'), identification data which identifies the lighting device (1, 1'), a security key, a random data generator, a communication unit, a volatile memory for storing control data, and a controller for controlling, after the set up is completed, an operation of the lighting device (1, 1') in accordance with control data stored in the volatile memory, wherein the set up carried out by the set up processor includes, upon powering up of the lighting device (1, 1'): - continuously sending out a message, cycling through all RF channels known by the lighting device, the message comprising the identification data and a random generated number, generated by the random data generator, the message indicating power up of the lighting device; - receiving, while listening on the RF channel through which the message has been sent, a confirmation message; - accepting, only when the confirmation message includes the random generated number and is authenticated with the security key of the lighting device, the confirmation message; - receiving, while staying in the RF channel in which the accepted confirmation message is received, control data, comprising a short address, network key, frame counter and data used for light control, via the communication unit; and - storing the received control data in the volatile memory. a set up processor (3, 3') for carrying out a set up of the lighting device (1, 1'), identification data which identifies the lighting device (1, 1'), a security key, a random data generator, a communication unit, a volatile memory for storing control data, and a controller for controlling, after the set up is completed, an operation of the lighting device (1, 1') in accordance with control data stored in the volatile memory, wherein the set up carried out by the set up processor includes, upon powering up of the lighting device (1, 1'): - continuously sending out a message, cycling through all RF channels known by the lighting device, the message comprising the identification data and a random generated number, generated by the random data generator, the message indicating power up of the lighting device; - receiving, while listening on the RF channel through which the message has been sent, a confirmation message; - accepting, only when the confirmation message includes the random generated number and is authenticated with the security key of the lighting device, the confirmation message; - receiving, while staying in the RF channel in which the accepted confirmation message is received, control data, comprising a short address, network key, frame counter and data used for light control, via the communication unit; and - storing the received control data in the volatile memory. - continuously sending out a message, cycling through all RF channels known by the lighting device, the message comprising the identification data and a random generated number, generated by the random data generator, the message indicating power up of the lighting device; - receiving, while listening on the RF channel through which the message has been sent, a confirmation message; - accepting, only when the confirmation message includes the random generated number and is authenticated with the security key of the lighting device, the confirmation message; - receiving, while staying in the RF channel in which the accepted confirmation message is received, control data, comprising a short address, network key, frame counter and data used for light control, via the communication unit; and - storing the received control data in the volatile memory.