|
38 | 38 | ComponentMetricId.VOLTAGE_PHASE_2: lambda msg: msg.voltage_per_phase[1], |
39 | 39 | ComponentMetricId.VOLTAGE_PHASE_3: lambda msg: msg.voltage_per_phase[2], |
40 | 40 | ComponentMetricId.FREQUENCY: lambda msg: msg.frequency, |
| 41 | + ComponentMetricId.REACTIVE_POWER: lambda msg: msg.reactive_power, |
| 42 | + ComponentMetricId.REACTIVE_POWER_PHASE_1: lambda msg: msg.reactive_power_per_phase[ |
| 43 | + 0 |
| 44 | + ], |
| 45 | + ComponentMetricId.REACTIVE_POWER_PHASE_2: lambda msg: msg.reactive_power_per_phase[ |
| 46 | + 1 |
| 47 | + ], |
| 48 | + ComponentMetricId.REACTIVE_POWER_PHASE_3: lambda msg: msg.reactive_power_per_phase[ |
| 49 | + 2 |
| 50 | + ], |
41 | 51 | } |
42 | 52 |
|
43 | 53 | _BatteryDataMethods: dict[ComponentMetricId, Callable[[BatteryData], float]] = { |
|
84 | 94 | ComponentMetricId.VOLTAGE_PHASE_2: lambda msg: msg.voltage_per_phase[1], |
85 | 95 | ComponentMetricId.VOLTAGE_PHASE_3: lambda msg: msg.voltage_per_phase[2], |
86 | 96 | ComponentMetricId.FREQUENCY: lambda msg: msg.frequency, |
| 97 | + ComponentMetricId.REACTIVE_POWER: lambda msg: msg.reactive_power, |
| 98 | + ComponentMetricId.REACTIVE_POWER_PHASE_1: lambda msg: msg.reactive_power_per_phase[ |
| 99 | + 0 |
| 100 | + ], |
| 101 | + ComponentMetricId.REACTIVE_POWER_PHASE_2: lambda msg: msg.reactive_power_per_phase[ |
| 102 | + 1 |
| 103 | + ], |
| 104 | + ComponentMetricId.REACTIVE_POWER_PHASE_3: lambda msg: msg.reactive_power_per_phase[ |
| 105 | + 2 |
| 106 | + ], |
87 | 107 | } |
88 | 108 |
|
89 | 109 | _EVChargerDataMethods: dict[ComponentMetricId, Callable[[EVChargerData], float]] = { |
|
98 | 118 | ComponentMetricId.VOLTAGE_PHASE_2: lambda msg: msg.voltage_per_phase[1], |
99 | 119 | ComponentMetricId.VOLTAGE_PHASE_3: lambda msg: msg.voltage_per_phase[2], |
100 | 120 | ComponentMetricId.FREQUENCY: lambda msg: msg.frequency, |
| 121 | + ComponentMetricId.REACTIVE_POWER: lambda msg: msg.reactive_power, |
| 122 | + ComponentMetricId.REACTIVE_POWER_PHASE_1: lambda msg: msg.reactive_power_per_phase[ |
| 123 | + 0 |
| 124 | + ], |
| 125 | + ComponentMetricId.REACTIVE_POWER_PHASE_2: lambda msg: msg.reactive_power_per_phase[ |
| 126 | + 1 |
| 127 | + ], |
| 128 | + ComponentMetricId.REACTIVE_POWER_PHASE_3: lambda msg: msg.reactive_power_per_phase[ |
| 129 | + 2 |
| 130 | + ], |
101 | 131 | } |
102 | 132 |
|
103 | 133 |
|
|
0 commit comments