The primary goal of grid‐connected microgrids is to control the active and reactive power, which is reachable by the inner current control loop in the control structure of power converters. However, when facing unbalanced conditions, the inner current control loop implemented in the dq frame does not function properly. In such conditions, the popular current control loop malfunctions since there is an oscillatory coupling between harmonic components. Therefore, in this study, a new harmonic detector based on decoupled double synchronous reference frame within the current control loop is proposed in which the oscillatory coupling between harmonic components is eliminated, and the overall performance of the power converter control system is significantly improved. The performance of the precisely developed mathematical models is verified by Matlab simulations, and the simulation results confirm the accuracy and proper operation of the proposed strategy.