A method, comprising: determining, by a controller of an electrical converter, a first reactive power produced by a smoothing filter using pre-determined information on impedance of the smoothing filter, the smoothing filter being electrically connected via a three-phase electrical connection to a converter matrix of the electrical converter of an elevator, the smoothing filter being electrically connected via a three-phase connection to a grid, the converter matrix producing pulse width modulated three-phase output voltages to the smoothing filter, wherein the smoothing filter receives a pulse-width modulated three-phase electrical current from a line bridge of the elevator; and requesting, by the controller, the electrical converter to make a plurality of first compensative electrical connections in the converter matrix to compensate the first reactive power; receiving, by the controller, information on a second reactive power from a remote node over a communication channel, the second reactive power being produced to the grid; adding, by the controller, the first reactive power and the second reactive power to yield a total reactive power; and requesting, by the controller, the electrical converter to make a plurality of second compensative connections in the converter matrix to compensate the total reactive power, wherein the second reactive power is produced to the grid by at least one building electrical subsystem and; and wherein the converter matrix is electrically connected to an inverter bridge via a direct current connection and the inverter bridge is electrically connected to an electrical motor of the elevator. determining, by a controller of an electrical converter, a first reactive power produced by a smoothing filter using pre-determined information on impedance of the smoothing filter, the smoothing filter being electrically connected via a three-phase electrical connection to a converter matrix of the electrical converter of an elevator, the smoothing filter being electrically connected via a three-phase connection to a grid, the converter matrix producing pulse width modulated three-phase output voltages to the smoothing filter, wherein the smoothing filter receives a pulse-width modulated three-phase electrical current from a line bridge of the elevator; and requesting, by the controller, the electrical converter to make a plurality of first compensative electrical connections in the converter matrix to compensate the first reactive power; receiving, by the controller, information on a second reactive power from a remote node over a communication channel, the second reactive power being produced to the grid; adding, by the controller, the first reactive power and the second reactive power to yield a total reactive power; and requesting, by the controller, the electrical converter to make a plurality of second compensative connections in the converter matrix to compensate the total reactive power, wherein the second reactive power is produced to the grid by at least one building electrical subsystem and; and wherein the converter matrix is electrically connected to an inverter bridge via a direct current connection and the inverter bridge is electrically connected to an electrical motor of the elevator.