A luminaire device for providing lighting within a lighting system, the luminaire device comprising an apparatus for controlling addition of the luminaire device to a wireless network, wherein the apparatus comprises: - a network admission control unit for controlling a network joining process of the luminaire device; - a first network joining unit adapted to, by default, use auto-joining mode for controlling the network admission control unit to search for and try to join an open network if one has been found, and when the luminaire device receives a trigger from a commissioning tool, to send a predetermined network independent message, which indicates a triggered state of the luminaire device; - a second network joining unit adapted to use a controlled joining mode for controlling the network admission control unit to apply a network joining process in which a first network node is only admitted to the network if a further predetermined network independent message has been received from the first network node, which indicates that the first network node has been triggered by the commissioning tool; - wherein the network admission control unit is adapted to switch from the first network joining unit to the second network joining unit and create and open a network upon occurrence of one of the following conditions: - the luminaire device not having been able to successfully join a network in the auto-join mode during a predetermined time; - the trigger from the commissioning tool was repeated or - the luminaire device having received a command or attribute for switching. - a network admission control unit for controlling a network joining process of the luminaire device; - a first network joining unit adapted to, by default, use auto-joining mode for controlling the network admission control unit to search for and try to join an open network if one has been found, and when the luminaire device receives a trigger from a commissioning tool, to send a predetermined network independent message, which indicates a triggered state of the luminaire device; - a second network joining unit adapted to use a controlled joining mode for controlling the network admission control unit to apply a network joining process in which a first network node is only admitted to the network if a further predetermined network independent message has been received from the first network node, which indicates that the first network node has been triggered by the commissioning tool; - wherein the network admission control unit is adapted to switch from the first network joining unit to the second network joining unit and create and open a network upon occurrence of one of the following conditions: - the luminaire device not having been able to successfully join a network in the auto-join mode during a predetermined time; - the trigger from the commissioning tool was repeated or - the luminaire device having received a command or attribute for switching. - the luminaire device not having been able to successfully join a network in the auto-join mode during a predetermined time; - the trigger from the commissioning tool was repeated or - the luminaire device having received a command or attribute for switching.