A method to provide secure operation of a lighting network , the lighting network comprising a lighting device arranged for illuminating an environment and a local controller for controlling the lighting device, wherein the lighting network is further controllable by an external controller , external to the lighting network, wherein the method comprises: - determining a configuration status of the lighting network, wherein a configuration comprises a functional arrangement of elements of the lighting network; and wherein the configuration status comprises a version of a hardware, software and/or device settings of some or all of the elements; - analyzing the determined configuration status, wherein the analysis of the determined configuration status is based on vulnerability of the lighting network, and the step of analyzing comprises detecting whether the determined configuration status requires a change; - switching an operational mode of the lighting network from a normal mode to a secured mode based on the detection; - changing the configuration of the lighting network in the secured mode, wherein changing of the configuration comprises updating, upgrading or downgrading configuration and/or changing device settings, - switching the operational mode of the lighting network from the secured mode to the normal mode after the configuration is changed; wherein in the normal mode, the lighting network is operably connected to the external controller, and a light rendering function of the lighting device is being controlled by the external controller according to a predetermined set of functions, and wherein in the secured mode, the light rendering function of the lighting device is being controlled by the external controller according to a subset of the predetermined set of functions. - determining a configuration status of the lighting network, wherein a configuration comprises a functional arrangement of elements of the lighting network; and wherein the configuration status comprises a version of a hardware, software and/or device settings of some or all of the elements; - analyzing the determined configuration status, wherein the analysis of the determined configuration status is based on vulnerability of the lighting network, and the step of analyzing comprises detecting whether the determined configuration status requires a change; - switching an operational mode of the lighting network from a normal mode to a secured mode based on the detection; - changing the configuration of the lighting network in the secured mode, wherein changing of the configuration comprises updating, upgrading or downgrading configuration and/or changing device settings, - switching the operational mode of the lighting network from the secured mode to the normal mode after the configuration is changed; - switching the operational mode of the lighting network from the secured mode to the normal mode after the configuration is changed; wherein in the normal mode, the lighting network is operably connected to the external controller, and a light rendering function of the lighting device is being controlled by the external controller according to a predetermined set of functions, and wherein in the secured mode, the light rendering function of the lighting device is being controlled by the external controller according to a subset of the predetermined set of functions. <EOS>