Class PartialStatus

java.lang.Object
dev.digiried.wattpilot.dto.PartialStatus

public class PartialStatus extends Object
DTO for the (partial) status received from FullStatusMessage or DeltaStatusMessage. The status may only contain a subset of the available properties, so null must be allowed for all properties.
Author:
Florian Hotze - Initial contribution
  • Constructor Details

    • PartialStatus

      public PartialStatus()
  • Method Details

    • isChargingAllowed

      public Boolean isChargingAllowed()
      Check if charging is currently allowed.
      Returns:
    • isBoostEnabled

      public Boolean isBoostEnabled()
      Whether charging boost is enabled in eco or next trip mode.
      Returns:
    • getBoostSoCLimit

      public Integer getBoostSoCLimit()
      Battery SoC to discharge the battery to when boost is enabled.
      Returns:
    • getChargingCurrent

      public Integer getChargingCurrent()
      The configured charging current in amperes.
      Returns:
    • getChargingState

      public ChargingState getChargingState()
      Get the charging state.
      Returns:
    • getEnergyCounterTotal

      public Integer getEnergyCounterTotal()
      Get the total energy counter in watt-hours (Wh).
      Returns:
    • getEnforcedChargingState

      public EnforcedChargingState getEnforcedChargingState()
      Get the enforced charging state of the wallbox, i.e. whether charging is forcefully enabled, disabled, or nothing is enforced.
      Returns:
    • isChargingSinglePhase

      public Boolean isChargingSinglePhase()
      Whether single phase charging is currently used.
      Returns:
    • getSurplusPowerThreshold

      public Float getSurplusPowerThreshold()
      PV surplus power threshold in watts (W). This is the minimum solar surplus power at which solar surplus charging can be started.
      Returns:
    • getSurplusSoCThreshold

      public Integer getSurplusSoCThreshold()
      PV surplus battery SoC threshold in percent (%). This is the minimum PV battery SoC at which solar surplus charging can be started.
      Returns:
    • getChargingMode

      public ChargingMode getChargingMode()
      Get the configured charging mode.
      Returns:
    • getChargingMetrics

      public ChargingMetrics getChargingMetrics()
      Get charging metrics like power, voltage and amperage.
      Returns:
    • getEnergyCounterSinceStart

      public Double getEnergyCounterSinceStart()
      Get the energy counter in watt-hours (Wh) since the start of the current charging session. If no session is active, the counter since the start of the last charging session is returned.
      Returns: