-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Implement Battery-Inverter Nature, Generic-ESS and KACO blueplanet gridsave as SunSpec #1099
Merged
Conversation
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
sfeilmeier
force-pushed
the
feature/kaco-sunspec
branch
from
April 29, 2020 21:06
85aa60e
to
d14b30c
Compare
- components need to implement StartStoppable - it adds a channel "StartStop" of type StartStop.START/STOP/UNDEFINED - the component needs to have a configuration property "startStop" of type StartStopConfig
…Ess start-up routines - Major refactoring/improvements on Test-Framework. Makes it compatible with all kinds of OpenemsComponents - Improved fluent methods in Test-Framework and MyConfig - Improvements to DummyConfigurationAdmin, DummyBattery - New DummyManagedSymmetricBatteryInverter, DummyModbusBridge, DummyCycle
# Conflicts: # io.openems.edge.ess.sinexcel/src/io/openems/edge/ess/sinexcel/EssSinexcel.java
Review by @sfeilmeier, @wgerbl This pull-request contains following major developments and design ideas:
Generic implementation of State-Machines
Implement Start-Stop feature
Split components in Interface (Name) and implementation (NameImpl)
Getters and Setters for Nature-Channels
JUnit Test-Framework for all kinds of OpenemsComponentsRefactoring of "Battery" interface
New interface "BatteryInverter" (ManagedSymmetricBatteryInverter, SymmetricBatteryInverter)
Implement Generic-Ess |
wgerbl
reviewed
May 18, 2020
io.openems.edge.battery.api/src/io/openems/edge/battery/test/DummyBattery.java
Outdated
Show resolved
Hide resolved
wgerbl
reviewed
May 18, 2020
io.openems.edge.battery.api/src/io/openems/edge/battery/test/DummyBattery.java
Outdated
Show resolved
Hide resolved
wgerbl
reviewed
May 18, 2020
...ems.edge.battery.soltaro/src/io/openems/edge/battery/soltaro/controller/state/BaseState.java
Show resolved
Hide resolved
This was referenced May 19, 2020
sfeilmeier
force-pushed
the
feature/kaco-sunspec
branch
from
May 22, 2020 08:52
f9b508e
to
0069cc3
Compare
… properly now with this implementation! - Fix duplicated Channel-Id - Fix wrong Scalefactor - Set ESS.Generic default startstop to START - Set 'startStopTarget' only on change, to avoid interrupting the internal state-machine - Add Fault-Channel INVALID_CURRENT_STATE to represent when the 'CurrentState' is not ready. This triggers entering ErrorHandling state - Trigger Watchdog always; otherwise KACO would not start (-> Cycle can be removed from Context) - Set Active and ReactivePower channels - Add StPcu (Vendor Operating State) values from manual - Abort 'GoRunning' if there is a Fault SunSpec improvements: - Read all Channels - no matter if their value is 'defined' or not - Filter undefined values using an ElementToChannelConverter
Finished test with Soltaro Cluster C + KACO blueplanet gridsave 50 + Generic Ess
wgerbl
reviewed
Jun 3, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine work it will open a wide field for discussions ;)
I did not check the implementation changes on the test frame work. This would be a separate part to review.
....soltaro/src/io/openems/edge/battery/soltaro/single/versionc/statemachine/ErrorHandling.java
Show resolved
Hide resolved
....battery.soltaro/src/io/openems/edge/battery/soltaro/single/versionc/statemachine/State.java
Show resolved
Hide resolved
...ms.edge.battery.soltaro/test/io/openems/edge/battery/soltaro/controller/state/TestCheck.java
Show resolved
Hide resolved
...e.batteryinverter.api/src/io/openems/edge/batteryinverter/api/BatteryInverterConstraint.java
Show resolved
Hide resolved
...ess.generic/src/io/openems/edge/ess/generic/symmetric/statemachine/StartBatteryInverter.java
Outdated
Show resolved
Hide resolved
...s.edge.ess.generic/src/io/openems/edge/ess/generic/symmetric/statemachine/ErrorHandling.java
Outdated
Show resolved
Hide resolved
...enems.edge.ess.generic/src/io/openems/edge/ess/generic/symmetric/statemachine/Undefined.java
Outdated
Show resolved
Hide resolved
...e.ess.generic/test/io/openems/edge/ess/generic/symmetric/GenericManagedSymmetricEssTest.java
Show resolved
Hide resolved
...idsave50/src/io/openems/edge/ess/kaco/blueplanet/gridsave50/EssKacoBlueplanetGridsave50.java
Show resolved
Hide resolved
sfeilmeier
added a commit
that referenced
this pull request
Jun 12, 2020
Update methods to access Channels as discussed in #1046 and started in #1099. This avoids calls to `setNextValue()` and `setNextWriteValue()` and should make the framework much more understandable and lower the learning curve. Each Read-Channel of a Nature Interface gets following methods: (example for a Channel `NAME` of type Integer) * `IntegerReadChannel getNameChannel()` * `Integer getName()` * `_setName(Integer value)` * `_setName(int value)` Write-Channels also get a method * `setName(Integer value)` that internally calls the `setNextWriteValue()` method
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.