Package dev.digiried.wattpilot.dto
Class PartialStatus
java.lang.Object
dev.digiried.wattpilot.dto.PartialStatus
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBattery SoC to discharge the battery to when boost is enabled.The configured charging current in amperes.Get charging metrics like power, voltage and amperage.Get the configured charging mode.Get the charging state.Get the energy counter in watt-hours (Wh) since the start of the current charging session.Get the total energy counter in watt-hours (Wh).Get the enforced charging state of the wallbox, i.e. whether charging is forcefully enabled, disabled, or nothing is enforced.PV surplus power threshold in watts (W).PV surplus battery SoC threshold in percent (%).Whether charging boost is enabled in eco or next trip mode.Check if charging is currently allowed.Whether single phase charging is currently used.
-
Constructor Details
-
PartialStatus
public PartialStatus()
-
-
Method Details
-
isChargingAllowed
Check if charging is currently allowed.- Returns:
-
isBoostEnabled
Whether charging boost is enabled in eco or next trip mode.- Returns:
-
getBoostSoCLimit
Battery SoC to discharge the battery to when boost is enabled.- Returns:
-
getChargingCurrent
The configured charging current in amperes.- Returns:
-
getChargingState
Get the charging state.- Returns:
-
getEnergyCounterTotal
Get the total energy counter in watt-hours (Wh).- Returns:
-
getEnforcedChargingState
Get the enforced charging state of the wallbox, i.e. whether charging is forcefully enabled, disabled, or nothing is enforced.- Returns:
-
isChargingSinglePhase
Whether single phase charging is currently used.- Returns:
-
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
PV surplus battery SoC threshold in percent (%). This is the minimum PV battery SoC at which solar surplus charging can be started.- Returns:
-
getChargingMode
Get the configured charging mode.- Returns:
-
getChargingMetrics
Get charging metrics like power, voltage and amperage.- Returns:
-
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:
-