Skip to content

Commit 49be44d

Browse files
committed
Add Max charge and discharge values for a component.
Components were missing charge and discharge values. Adds a `rated_bounds` field to `Component`, which contains the maximum charge and discharge values. Signed-off-by: Thea Leake <[email protected]>
1 parent a4937f9 commit 49be44d

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

RELEASE_NOTES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
This release:
55
* Corrects `SensorData` and `ComponentData` doc examples
66
to correctly reflect differences in respective values.
7+
* Adds `ComponentRatedBound` message to associate a charge & discharge range
8+
to a specific `Metric`.
9+
* Adds rated bounds field to `Component` for charge & discharge
10+
ranges for relevant metrics.
711

812

913
## Upgrading

proto/frequenz/api/common/v1/microgrid/components/components.proto

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ syntax = "proto3";
1010

1111
package frequenz.api.common.v1.microgrid.components;
1212

13+
import "frequenz/api/common/v1/metrics/bounds.proto";
1314
import "frequenz/api/common/v1/metrics/metric_sample.proto";
1415
import "frequenz/api/common/v1/microgrid/components/battery.proto";
1516
import "frequenz/api/common/v1/microgrid/components/ev_charger.proto";
@@ -141,6 +142,26 @@ message Component {
141142

142143
// The operational lifetime of the component.
143144
frequenz.api.common.v1.microgrid.Lifetime operational_lifetime = 9;
145+
146+
// List of rated bounds present for the component identified by Metric.
147+
repeated MetricConfigBounds metric_config_bounds = 10;
148+
}
149+
150+
// MetricConfigBounds describes a set of limits for a specific metric consisting
151+
// of a lower and upper bound for said metric.
152+
//
153+
// This can be used for example to specify an allowed range of power output
154+
// for a component.
155+
message MetricConfigBounds {
156+
// Metric type the config bounds are for
157+
frequenz.api.common.v1.metrics.Metric metric = 1;
158+
159+
// The set of bounds for the specified metric.
160+
//
161+
// This contains the lower and upper bounds for said metric.
162+
// Sources these may be derived from include the component configuration,
163+
// manufacturers limits, and limits of other devices.
164+
frequenz.api.common.v1.metrics.Bounds config_bounds = 2;
144165
}
145166

146167
// ComponentConnection describes a single electrical link between two components

0 commit comments

Comments
 (0)