-
Notifications
You must be signed in to change notification settings - Fork 19
Control methods for EVChargerPool using PowerManager and PowerDistributor
#900
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
506e83e
Don't raise when `mock_resampler`'s task is cancelled
shsms f1fa336
Move `receive_timeout` to tests.utils package, so it can be reused
shsms b1249e1
Add an `EVChargerStatusTracker` implementation
shsms 427e5eb
Send power distribution results from the component manager
shsms 200fd72
Add a `EVChargerManager` that can plug into the PowerDistributor
shsms 3941ff3
Support EV chargers as a component category in PowerDistributingActor
shsms 9df881a
Add a system bounds tracker for EV charger pools
shsms 57d539d
Add system bounds tracking for components in an EVChargerPool
shsms 2903556
Support EVChargers in PowerManager
shsms 28d474d
Move reusable parts of EVChargerPool to EVChargerPoolReferenceStore
shsms a995e5b
Add `power_status` method to `EVChargerPool`
shsms 2f458a7
Add a `propose_power` method to EVChargerPool
shsms 749d2e0
Move EV charger pool tests to a sub directory
shsms 4dcac87
Define how long PowerDistributor should wait for data as a constant
shsms fcf0484
Test EV Charger Pool control methods
shsms 4750c52
Update release notes
shsms 08c514e
Apply suggestions from code review
shsms File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
10 changes: 10 additions & 0 deletions
10
...frequenz/sdk/actor/power_distributing/_component_managers/_ev_charger_manager/__init__.py
This file contains hidden or 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,10 @@ | ||
| # License: MIT | ||
| # Copyright © 2024 Frequenz Energy-as-a-Service GmbH | ||
|
|
||
| """Manage ev chargers for the power distributor.""" | ||
|
|
||
| from ._ev_charger_manager import EVChargerManager | ||
|
|
||
| __all__ = [ | ||
| "EVChargerManager", | ||
| ] |
27 changes: 27 additions & 0 deletions
27
src/frequenz/sdk/actor/power_distributing/_component_managers/_ev_charger_manager/_config.py
This file contains hidden or 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,27 @@ | ||
| # License: MIT | ||
| # Copyright © 2024 Frequenz Energy-as-a-Service GmbH | ||
|
|
||
| """Configuration for the power distributor's EV charger manager.""" | ||
|
|
||
| from collections import abc | ||
| from dataclasses import dataclass, field | ||
| from datetime import timedelta | ||
|
|
||
| from .....timeseries import Current | ||
|
|
||
|
|
||
| @dataclass(frozen=True) | ||
| class EVDistributionConfig: | ||
| """Configuration for the power distributor's EV charger manager.""" | ||
|
|
||
| component_ids: abc.Set[int] | ||
| """The component ids of the EV chargers.""" | ||
|
|
||
| min_current: Current = field(default_factory=lambda: Current.from_amperes(6.0)) | ||
| """The minimum current that can be allocated to an EV charger.""" | ||
|
|
||
| initial_current: Current = field(default_factory=lambda: Current.from_amperes(10.0)) | ||
| """The initial current that can be allocated to an EV charger.""" | ||
|
|
||
| increase_power_interval: timedelta = timedelta(seconds=60) | ||
| """The interval at which the power can be increased for an EV charger.""" |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.