The present invention relates to a method of controlling a 
lighting system, the 
lighting system being arranged as a 
wireless network comprising a controller and a plurality of operating nodes arranged to communicate with each other, wherein the method comprises the steps of 
synchronizing the operating nodes with the controller, determining, from the plurality of operating nodes, a set of operating nodes that are located within a predetermined operating area, estimating a state-shift 
delay based on a maximum communication 
delay between the controller and the set of operating nodes located within the predetermined operating area, communicating the estimated state-shift 
delay to the plurality of operating nodes, and communicating a state-shift command to the plurality of operating nodes.An 
advantage with the invention is that the 
visual artifact of the state-shift may be essentially removed as the 
time synchronization and 
timer interrupt alignment together with the estimated state-shift delay allows for the plurality of nodes to shift state at essentially the same time.