A system for conducting power factor and harmonics correction in an electrical network without overcompensation, comprising: a controller configured: to receive the electrical network real-time measurement data including power factor, line voltage, line frequency, reactive power, and sign of reactive power; to determine a compensation capacitance required to correct the PF; and to generate one or more driving signals for switching ON and OFF one or more power factor correction capacitors according to the determined compensation capacitance required; a digital PFC capacitor array comprising two or more passive PFC capacitors and configured to receive the driving signals for switching ON and OFF any one of its passive PFC capacitors, providing fine steps increments in the PF correction; wherein the digital PFC capacitor array passive PFC capacitors are of different capacitance values and are arranged in largest to smallest or smallest to largest order; and one or more linear PFC capacitor arrays, each comprising one or more passive PFC capacitors and configured to receive the driving signals for switching ON and OFF its passive PFC capacitors, providing coarse steps increments in the PF correction; wherein each of the linear PFC capacitor arrays has a capacitance that is same or larger than the largest digital PFC capacitor array passive PFC capacitor's capacitance; and characterized in that the controller is further configured to: receive an audio or audio frequency load control (AFLC) current signal; and when the audio or AFLC current signal indicated an audio or AFLC voltage is present in the electrical network, generate: driving signals for switching OFF all the passive PFC capacitors; or timed driving signals for switching OFF one by one in steps the engaged passive PFC capacitors until an audio or AFLC voltage being measured rises to exactly or just above a minimum level; or driving signals for initially switching OFF all the engaged passive PFC capacitors followed by the timed driving signals for switching ON one by one in steps the passive PFC capacitors until an audio or AFLC voltage being measured falls to exactly or just below a minimum level. a controller configured: to receive the electrical network real-time measurement data including power factor, line voltage, line frequency, reactive power, and sign of reactive power; to determine a compensation capacitance required to correct the PF; and to generate one or more driving signals for switching ON and OFF one or more power factor correction capacitors according to the determined compensation capacitance required; to receive the electrical network real-time measurement data including power factor, line voltage, line frequency, reactive power, and sign of reactive power; to determine a compensation capacitance required to correct the PF; and to generate one or more driving signals for switching ON and OFF one or more power factor correction capacitors according to the determined compensation capacitance required; a digital PFC capacitor array comprising two or more passive PFC capacitors and configured to receive the driving signals for switching ON and OFF any one of its passive PFC capacitors, providing fine steps increments in the PF correction; wherein the digital PFC capacitor array passive PFC capacitors are of different capacitance values and are arranged in largest to smallest or smallest to largest order; and one or more linear PFC capacitor arrays, each comprising one or more passive PFC capacitors and configured to receive the driving signals for switching ON and OFF its passive PFC capacitors, providing coarse steps increments in the PF correction; wherein each of the linear PFC capacitor arrays has a capacitance that is same or larger than the largest digital PFC capacitor array passive PFC capacitor's capacitance; and receive an audio or audio frequency load control (AFLC) current signal; and when the audio or AFLC current signal indicated an audio or AFLC voltage is present in the electrical network, generate: driving signals for switching OFF all the passive PFC capacitors; or timed driving signals for switching OFF one by one in steps the engaged passive PFC capacitors until an audio or AFLC voltage being measured rises to exactly or just above a minimum level; or driving signals for initially switching OFF all the engaged passive PFC capacitors followed by the timed driving signals for switching ON one by one in steps the passive PFC capacitors until an audio or AFLC voltage being measured falls to exactly or just below a minimum level. driving signals for switching OFF all the passive PFC capacitors; or timed driving signals for switching OFF one by one in steps the engaged passive PFC capacitors until an audio or AFLC voltage being measured rises to exactly or just above a minimum level; or driving signals for initially switching OFF all the engaged passive PFC capacitors followed by the timed driving signals for switching ON one by one in steps the passive PFC capacitors until an audio or AFLC voltage being measured falls to exactly or just below a minimum level.