-
Notifications
You must be signed in to change notification settings - Fork 437
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Edge - EVCS Api State: remove CHARGING_FINISHED, i.e. "Car is full" - Removed "CHARGING_FINISHED" from Status in evcs.api - Fix for every part where CHARGING_FINISHED was referenced - Fix CI Build: remove OCPP dependency javax.xml.soap - Edge: Mennekes Occupied Check - Added Check if ActivePower is present when mapping the OcppStatus 1 of the Mennekes Register 104. - Controller.Ess.EmergencyCapacityReserve: recharge from grid - Config setting + channel in Meta Component - new state for in satemachine of emergencyreservesoc - change logic of statehandlers to include new state - UI - Add Custom Min Value for Y-Axis in Charts to enhance schedule display - dark mode improvements - replace legacy percentagebar - delete unused old systemupdate component - change header title color - Emergency Reserve with Charge-from-Grid --------- Co-authored-by: Sebastian Asen <47855186+sebastianasen@users.noreply.github.com> Co-authored-by: Stefan Feilmeier <3515268+sfeilmeier@users.noreply.github.com> Co-authored-by: Johann Kaufmann <165755282+johannk24@users.noreply.github.com> Co-authored-by: Sagar Venu <32655208+venu-sagar@users.noreply.github.com> Co-authored-by: Lukas Rieger <73471197+lukasrgr@users.noreply.github.com>
- Loading branch information
1 parent
e37f9b2
commit 2a1b88a
Showing
63 changed files
with
722 additions
and
576 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...ems/edge/controller/ess/emergencycapacityreserve/statemachine/ForceChargeGridHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package io.openems.edge.controller.ess.emergencycapacityreserve.statemachine; | ||
|
||
import io.openems.common.exceptions.OpenemsError.OpenemsNamedException; | ||
import io.openems.edge.common.statemachine.StateHandler; | ||
import io.openems.edge.controller.ess.emergencycapacityreserve.statemachine.StateMachine.State; | ||
|
||
public class ForceChargeGridHandler extends StateHandler<State, Context> { | ||
|
||
@Override | ||
protected State runAndGetNextState(Context context) throws OpenemsNamedException { | ||
var reserveSoc = context.reserveSoc; | ||
int soc = context.soc; | ||
|
||
// leave grid charge logic when grid charge gets disabled | ||
if (!context.isEssChargeFromGridAllowed) { | ||
if (soc <= reserveSoc - 1) { | ||
return State.BELOW_RESERVE_SOC; | ||
} | ||
return State.AT_RESERVE_SOC; | ||
} | ||
|
||
float targetPower; | ||
|
||
if (soc <= reserveSoc - 4 || soc <= 0) { | ||
targetPower = context.maxApparentPower * -0.5f; | ||
} else { | ||
targetPower = context.maxApparentPower * -0.1f; | ||
} | ||
|
||
// calculate target and ramp power | ||
context.setTargetPower(targetPower); | ||
context.setRampPower(context.maxApparentPower * 0.01); | ||
|
||
// SoC is greater or equals then configured reserveSoC or 100 | ||
if (soc >= reserveSoc + 1 || soc == 100) { | ||
return State.AT_RESERVE_SOC; | ||
} | ||
|
||
return State.FORCE_CHARGE_GRID; | ||
} | ||
|
||
} |
Oops, something went wrong.