-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Sum ESS State-of-Charge: unify calculation Unify the calculation of a average State-of-Charge of multiple Energy Storage Systems. Before, the calculation was different for EssCluster and Sum. Adding fully tested `CalculateSoC` helper class. * Update Home 20 & 30 Charger config * Emergency Capacity Reserve Controller: fix handling of negative AC production (#878) Before, this could lead to discharge in FORCE_CHARGE mode, when AC production was negative. * GoodWe EmergencyMeter: Fix scale factor for current and voltage Fix scale factor for current and voltage. Old implementation would get the values as Volt or Amps, but should be mV and mA. * UI: Display message for planned capacity extension Display message for **planned** capacity extension in storage flat-widget * AppCenter: automatically add UnmanagedConsumption Channel to predictor for TimeOfUseTariff Apps * GoodWe 20: fix Grid Meter voltage and current * EVCS: Improve "Chargingstation Communication Failed" message Add a text for the evcs fault state in the common format. * AppCenter: fixed "no" check validation before installation - fix bug where a Home 10 and Home 30 could be installed at the same time because of not correctly checking the installation/compatibility checks - also added check for the configuration to be successful - fixed FixActivePower/PrepareBatteryExtension wrong property name - added timeout to backend request of 30 seconds & filter for Backend componet to be enabled - added DummyApp for tests * Home Battery: set SerialNumber prefix depending on the hardware type * Home Battery: modify PolyLine for 64Ah battery * GoodWe: set `GoodWeType` from type register or serial number * Time-Of-Use Tariff Charge: base * Time-of-Use: implement Optimizer based on Jenetics * AppCenter: load app images from external file server * UI: show capacity extension mode for all roles * AppCenter: Removed app images from edge * AppCenter: delete EntsoE.png & MQTT image * UI: Time of Use tariff Chart implementation in Live Widget --------- Co-authored-by: Sebastian Asen <[email protected]> Co-authored-by: Lukas Rieger <[email protected]> Co-authored-by: Michael Grill <[email protected]> Co-authored-by: Sagar Venu <[email protected]> Co-authored-by: Stefan Feilmeier <[email protected]> Co-authored-by: Hueseyin Sahutoglu <[email protected]>
- Loading branch information
1 parent
e0cb25a
commit ee11345
Showing
130 changed files
with
6,434 additions
and
24,627 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
16 changes: 16 additions & 0 deletions
16
io.openems.common/test/io/openems/common/utils/DateUtilsTest.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
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
26 changes: 26 additions & 0 deletions
26
...ems/edge/controller/ess/emergencycapacityreserve/statemachine/ForceChargeHandlerTest.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,26 @@ | ||
package io.openems.edge.controller.ess.emergencycapacityreserve.statemachine; | ||
|
||
import static io.openems.edge.controller.ess.emergencycapacityreserve.statemachine.ForceChargeHandler.getAcPvProduction; | ||
import static org.junit.Assert.assertEquals; | ||
|
||
import org.junit.Test; | ||
|
||
import io.openems.edge.common.sum.DummySum; | ||
|
||
public class ForceChargeHandlerTest { | ||
|
||
@Test | ||
public void testGetAcPvProduction() { | ||
var sum = new DummySum(); | ||
|
||
// Fallback to 'zero' for null | ||
assertEquals(0, getAcPvProduction(sum)); | ||
|
||
// Guarantee positive values | ||
assertEquals(0, getAcPvProduction(sum.withProductionAcActivePower(-100))); | ||
|
||
// Get positive values | ||
assertEquals(1234, getAcPvProduction(sum.withProductionAcActivePower(1234))); | ||
} | ||
|
||
} |
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
Oops, something went wrong.