Skip to content

Commit aaa8789

Browse files
Add 3-phase voltage to microgrid API source
Signed-off-by: Daniel Zullo <[email protected]>
1 parent 8905ed6 commit aaa8789

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/frequenz/sdk/actor/_data_sourcing/microgrid_api_source.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@
7474
ComponentMetricId.CURRENT_PHASE_1: lambda msg: msg.current_per_phase[0],
7575
ComponentMetricId.CURRENT_PHASE_2: lambda msg: msg.current_per_phase[1],
7676
ComponentMetricId.CURRENT_PHASE_3: lambda msg: msg.current_per_phase[2],
77+
ComponentMetricId.VOLTAGE_PHASE_1: lambda msg: msg.voltage_per_phase[0],
78+
ComponentMetricId.VOLTAGE_PHASE_2: lambda msg: msg.voltage_per_phase[1],
79+
ComponentMetricId.VOLTAGE_PHASE_3: lambda msg: msg.voltage_per_phase[2],
7780
ComponentMetricId.FREQUENCY: lambda msg: msg.frequency,
7881
}
7982

0 commit comments

Comments
 (0)