A method of transitioning a power generator, from an initial reactive power state to a desired reactive power state, the power generator belonging to a power farm, the power generator having a local voltage controller, the power farm having a central reactive power controller, the reactive power generated by the power generator during the initial and desired reactive power states being determined based on values of reactive power demand sent by the central reactive power controller, the method characterised in that it comprises the steps of: detecting an absolute change of voltage above a predetermined voltage threshold at the power generator; transitioning, with a dead-time compensator, the reactive power state of the power generator from the initial reactive power state to a first reactive power state, wherein the reactive power generated by the power generator during the first reactive power state is determined by the local voltage controller in response to the detected change of voltage; receiving a series of values of reactive power demand at the power generator sent from the central reactive power controller, said values corresponding to demands for reactive power generation; identifying a received value of reactive power demand as a trigger value when the absolute difference between said value of received reactive power demand and a previous received value of reactive power demand is above a predetermined reactive power threshold; transitioning to a second reactive power state when the trigger value is detected, wherein the reactive power generated by the power generator at any given moment during the second reactive power state is set based on a calculation of a transition controller as a function of the last received value of reactive power demand and of the value of reactive power at a previous setting moment; transitioning to the desired reactive power state when the calculation fulfils a predetermined criterion. detecting an absolute change of voltage above a predetermined voltage threshold at the power generator; transitioning, with a dead-time compensator, the reactive power state of the power generator from the initial reactive power state to a first reactive power state, wherein the reactive power generated by the power generator during the first reactive power state is determined by the local voltage controller in response to the detected change of voltage; receiving a series of values of reactive power demand at the power generator sent from the central reactive power controller, said values corresponding to demands for reactive power generation; identifying a received value of reactive power demand as a trigger value when the absolute difference between said value of received reactive power demand and a previous received value of reactive power demand is above a predetermined reactive power threshold; transitioning to a second reactive power state when the trigger value is detected, wherein the reactive power generated by the power generator at any given moment during the second reactive power state is set based on a calculation of a transition controller as a function of the last received value of reactive power demand and of the value of reactive power at a previous setting moment; transitioning to the desired reactive power state when the calculation fulfils a predetermined criterion.