A power system comprising a power converter and a controller, wherein the power system has a plurality of operating modes including at least an active mode and an active standby mode, wherein the power converter is configured to adapt a power supply to a desired output from at least one power source, the power converter comprises a plurality of semiconductor switches, and the plurality of semiconductor switches are configured to receive a gate signal when the power system is in the active mode such that the power converter is in a gating state, and the controller is configured to control the power converter in the active mode and the active standby mode, the controller is configured to: determine whether the power system should enter into the active standby mode in which the power converter is synchronized to a grid and is in a non-gating state, and when it is determined the power system should enter into the active standby mode, control the power converter to be in a non-gating state such that the power system is in the active standby mode, characterized in that the controller being configured to determine whether the power system should enter into the active standby mode includes the controller being configured to: determine whether the power system is in a charge state or a discharge state by determining whether a power command is positive or negative; when it is determined that the power system is in the charge state, compare the power command to a first predetermined threshold, and when it is determined that the power command is higher than the predetermined threshold, determine that the power system is in an idle state and should enter into the active standby mode; when it is determined that the power system is in the discharge state, compare the power command to a second predetermined threshold, and when it is determined that the power command is lower than the second predetermined threshold, determine that the power system is in the idle state and should enter into the active standby mode. determine whether the power system should enter into the active standby mode in which the power converter is synchronized to a grid and is in a non-gating state, and when it is determined the power system should enter into the active standby mode, control the power converter to be in a non-gating state such that the power system is in the active standby mode, characterized in that the controller being configured to determine whether the power system should enter into the active standby mode includes the controller being configured to: determine whether the power system is in a charge state or a discharge state by determining whether a power command is positive or negative; when it is determined that the power system is in the charge state, compare the power command to a first predetermined threshold, and when it is determined that the power command is higher than the predetermined threshold, determine that the power system is in an idle state and should enter into the active standby mode; when it is determined that the power system is in the discharge state, compare the power command to a second predetermined threshold, and when it is determined that the power command is lower than the second predetermined threshold, determine that the power system is in the idle state and should enter into the active standby mode. determine whether the power system is in a charge state or a discharge state by determining whether a power command is positive or negative; when it is determined that the power system is in the charge state, compare the power command to a first predetermined threshold, and when it is determined that the power command is higher than the predetermined threshold, determine that the power system is in an idle state and should enter into the active standby mode; when it is determined that the power system is in the discharge state, compare the power command to a second predetermined threshold, and when it is determined that the power command is lower than the second predetermined threshold, determine that the power system is in the idle state and should enter into the active standby mode.