A method for controlling a compressor system, and which comprises an electrically operated compressor, which is configured for compressing a working medium, and a further electrical load,
- wherein the compressor in turn comprises:
- an electric motor for providing a mechanical movement for compressing the working medium;
- an inverter, which supplies the electric motor with single- or multi-phase alternating current;
- and
- a power factor correction filter, which supplies the inverter with direct current and whose current input for supplying power to the compressor is connected to a grid connection point of a grid current source providing alternating current;
- and, for supplying power to the further electrical load, the further electrical load is connected to the same grid connection point as the power factor correction filter,
- wherein the method comprises:
- operating the compressor system with electrical current from the grid current source;
- determining at least one current characteristic value of the further load, which describes a current consumption of the further load;
- and
- controlling the power factor correction filter of the compressor at least in dependence of the determined at least one current characteristic value of the further load.