Interface BatteryInverterKacoBlueplanetGridsave
- All Superinterfaces:
ManagedSymmetricBatteryInverter
,OpenemsComponent
,StartStoppable
,SymmetricBatteryInverter
- All Known Implementing Classes:
BatteryInverterKacoBlueplanetGridsaveImpl
public interface BatteryInverterKacoBlueplanetGridsave
extends ManagedSymmetricBatteryInverter, SymmetricBatteryInverter, OpenemsComponent, StartStoppable
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Retry x attempts for set-command.static final int
Retry set-command after x Seconds, e.g.static final int
Sets the KACO watchdog timeout to 60 seconds.static final int
The watchdog gets triggered every WATCHDOG_TRIGGER_CYCLES seconds.Fields inherited from interface io.openems.edge.batteryinverter.api.SymmetricBatteryInverter
POWER_DOC_TEXT
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
_setMaxStartAttempts
(Boolean value) Internal method to set the 'nextValue' onBatteryInverterKacoBlueplanetGridsave.ChannelId.MAX_START_ATTEMPTS
Channel.default void
_setMaxStopAttempts
(Boolean value) Internal method to set the 'nextValue' onBatteryInverterKacoBlueplanetGridsave.ChannelId.MAX_STOP_ATTEMPTS
Channel.Gets the Current State.default StateChannel
Gets the Channel forBatteryInverterKacoBlueplanetGridsave.ChannelId.MAX_START_ATTEMPTS
.default StateChannel
Gets the Channel forBatteryInverterKacoBlueplanetGridsave.ChannelId.MAX_STOP_ATTEMPTS
.Gets the Channel for KacoSunSpecModel.S64201.REQUESTED_STATE.Gets the target Start/Stop mode from config or StartStop-Channel.<T extends Channel<?>>
TGet the Channel for the given Point or throw an error if it is not available.default void
Writes the value to the KacoSunSpecModel.S64201.REQUESTED_STATE Register.Methods inherited from interface io.openems.edge.batteryinverter.api.ManagedSymmetricBatteryInverter
getPowerPrecision, getStaticConstraints, isManaged, isOffGridPossible, run
Methods inherited from interface io.openems.edge.common.component.OpenemsComponent
_channel, _getChannelAs, alias, channel, channel, channels, debugLog, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, serviceFactoryPid, servicePid
Methods inherited from interface io.openems.edge.common.startstop.StartStoppable
_setStartStop, getStartStop, getStartStopChannel, isStarted, isStopped, setStartStop, start, stop
Methods inherited from interface io.openems.edge.batteryinverter.api.SymmetricBatteryInverter
_setActiveChargeEnergy, _setActiveChargeEnergy, _setActiveDischargeEnergy, _setActiveDischargeEnergy, _setActivePower, _setActivePower, _setGridMode, _setMaxApparentPower, _setMaxApparentPower, _setReactivePower, _setReactivePower, getActiveChargeEnergy, getActiveChargeEnergyChannel, getActiveDischargeEnergy, getActiveDischargeEnergyChannel, getActivePower, getActivePowerChannel, getGridMode, getGridModeChannel, getMaxApparentPower, getMaxApparentPowerChannel, getReactivePower, getReactivePowerChannel
-
Field Details
-
WATCHDOG_TIMEOUT_SECONDS
static final int WATCHDOG_TIMEOUT_SECONDSSets the KACO watchdog timeout to 60 seconds.- See Also:
-
WATCHDOG_TRIGGER_SECONDS
static final int WATCHDOG_TRIGGER_SECONDSThe watchdog gets triggered every WATCHDOG_TRIGGER_CYCLES seconds. This must be less than WATCHDOG_TIMEOUT_SECONDS.- See Also:
-
RETRY_COMMAND_SECONDS
static final int RETRY_COMMAND_SECONDSRetry set-command after x Seconds, e.g. for starting battery or battery-inverter.- See Also:
-
RETRY_COMMAND_MAX_ATTEMPTS
static final int RETRY_COMMAND_MAX_ATTEMPTSRetry x attempts for set-command.- See Also:
-
-
Method Details
-
getStartStopTarget
StartStop getStartStopTarget()Gets the target Start/Stop mode from config or StartStop-Channel.- Returns:
StartStop
-
getSunSpecChannelOrError
Get the Channel for the given Point or throw an error if it is not available.- Type Parameters:
T
- the Channel type- Parameters:
point
- the SunSpec Point- Returns:
- the optional Channel
- Throws:
OpenemsException
- if Channel is not available
-
getCurrentState
KacoSunSpecModel.S64201.S64201CurrentState getCurrentState()Gets the Current State.- Returns:
- the
KacoSunSpecModel.S64201.S64201CurrentState
-
getMaxStartAttemptsChannel
Gets the Channel forBatteryInverterKacoBlueplanetGridsave.ChannelId.MAX_START_ATTEMPTS
.- Returns:
- the Channel
-
getMaxStartAttempts
- Returns:
- the Channel
Value
-
_setMaxStartAttempts
Internal method to set the 'nextValue' onBatteryInverterKacoBlueplanetGridsave.ChannelId.MAX_START_ATTEMPTS
Channel.- Parameters:
value
- the next value
-
getMaxStopAttemptsChannel
Gets the Channel forBatteryInverterKacoBlueplanetGridsave.ChannelId.MAX_STOP_ATTEMPTS
.- Returns:
- the Channel
-
getMaxStopAttempts
- Returns:
- the Channel
Value
-
_setMaxStopAttempts
Internal method to set the 'nextValue' onBatteryInverterKacoBlueplanetGridsave.ChannelId.MAX_STOP_ATTEMPTS
Channel.- Parameters:
value
- the next value
-
getRequestedStateChannel
default WriteChannel<KacoSunSpecModel.S64201.S64201RequestedState> getRequestedStateChannel() throws OpenemsExceptionGets the Channel for KacoSunSpecModel.S64201.REQUESTED_STATE.- Returns:
- the Channel
- Throws:
OpenemsException
- on error
-
setRequestedState
default void setRequestedState(KacoSunSpecModel.S64201.S64201RequestedState value) throws OpenemsError.OpenemsNamedException Writes the value to the KacoSunSpecModel.S64201.REQUESTED_STATE Register.- Parameters:
value
- the next value- Throws:
OpenemsError.OpenemsNamedException
- on error
-