Skip to content

Commit 4efa6c0

Browse files
Add a new variant Meter to ElectricalComponentCategorySpecificInfo
This commit introduces a new message `Meter` to the `v1alpha8` package, which encapsulates static information about meters in a microgrid. Additionally, the `ElectricalComponentCategorySpecificInfo` enum has been extended to include the `Meter` variant. This enhancement enables the representation of meter-specific information within a microgrid. Signed-off-by: Tiyash Basu <[email protected]>
1 parent 6bf6a67 commit 4efa6c0

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

RELEASE_NOTES.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
## New Features
1212

13-
<!-- Here goes the main new features and examples or instructions on how to use them -->
13+
- A new message has been added to the `v1alpha8` package: `microgrid.electrical_components.Meter`. This message holds static information about specific meters in a microgrid.
14+
- The `microgrid.electrical_components.ElectricalComponentCategorySpecificInfo` enum in the `v1alpha8` package has been extended with a new variant: `Meter`. This addition allows expressing information specific to meters within a microgrid.
1415

1516
## Bug Fixes
1617

proto/frequenz/api/common/v1alpha8/microgrid/electrical_components/electrical_components.proto

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,25 @@ message PowerTransformer {
559559
float secondary = 2;
560560
}
561561

562+
// A representation of a meter.
563+
//
564+
// Meters typically cannot be controlled remotely, but they can provide
565+
// telemetry data.
566+
message Meter {
567+
// Indicates if the polarity of the meter is reversed.
568+
//
569+
// While installation, meters may be wired in an opposite direction, causing
570+
// consumption to be reported as negative values, and production as positive
571+
// values. Since this is opposite to the convention followed in this API -
572+
// consumption is positive, and production is negative - it is important to
573+
// know if such a reversal is present.
574+
//
575+
// If true, the telemetry values reported by the meter should be inverted
576+
// (multiplied by -1) to reflect the correct polarity - consumption as
577+
// positive, and production as negative.
578+
bool polarity_reversed = 1;
579+
}
580+
562581
// MetricConfigBounds describes a set of limits for a specific metric consisting
563582
// of a lower and upper bound for said metric.
564583
//
@@ -585,6 +604,7 @@ message ElectricalComponentCategorySpecificInfo {
585604
GridConnectionPoint grid_connection_point = 3;
586605
Inverter inverter = 4;
587606
PowerTransformer power_transformer = 5;
607+
Meter meter = 6;
588608
}
589609
}
590610

0 commit comments

Comments
 (0)