Intelligent integrated power capacitor compensation device