Class ApplyPowerHandler


public class ApplyPowerHandler extends Object
  • Constructor Details

    • ApplyPowerHandler

      public ApplyPowerHandler()
  • Method Details

    • apply

      public void apply(AbstractGoodWe goodWe, int setActivePower, ControlMode controlMode, Value<Integer> gridActivePower, Value<Integer> essActivePower, Value<Integer> maxAcImport, Value<Integer> maxAcExport, boolean isPidEnabled) throws OpenemsError.OpenemsNamedException
      Apply the desired Active-Power Set-Point by setting the appropriate EMS_POWER_SET and EMS_POWER_MODE settings.
      goodWe - the GoodWe - either Battery-Inverter or ESS
      setActivePower - the Active-Power Set-Point
      controlMode - the ControlMode to handle the different EmsPowerMode for the GoodWe battery inverter
      gridActivePower - the grid active power
      essActivePower - the ESS active power
      maxAcImport - the max AC import power
      maxAcExport - the max AC export power
      isPidEnabled - if PID Filter is enabled
      OpenemsError.OpenemsNamedException - on error