Skip to content

Commit b4e1efe

Browse files
Add COMPONENT_STATE_DISCHARGING to valid inverter states (#202)
DISCHARGING state was missing by mistake and this caused the power distributor to error out if the inverter is already discharging.
2 parents b302f71 + 9715acc commit b4e1efe

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

RELEASE_NOTES.md

+4-7
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,17 @@
22

33
## Summary
44

5-
<!-- Here goes a general summary of what this release is about -->
6-
75
## Upgrading
86

9-
<!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with -->
10-
117
## New Features
128

13-
<!-- Here goes the main new features and examples or instructions on how to use them -->
14-
159
* A new class `OrderedRingBuffer` is now available, providing a sorted ring buffer of datetime-value pairs with tracking of any values that have not yet been written.
1610
* Add logical meter formula for EV power.
1711
* A `MovingWindow` class has been added that consumes a data stream from a logical meter and updates an `OrderedRingBuffer`.
12+
* Add EVChargerPool implementation. It has only streaming state changes for ev chargers, now.
13+
* Add 3-phase current formulas: `3-phase grid_current` and `3-phase ev_charger_current` to the LogicalMeter.
14+
1815

1916
## Bug Fixes
2017

21-
<!-- Here goes notable bug fixes that are worth a special mention or explanation -->
18+
* Add COMPONENT_STATE_DISCHARGING as valid state for the inverter. DISCHARGING state was missing by mistake and this caused the power distributor to error out if the inverter is already discharging.

src/frequenz/sdk/actor/power_distributing/_battery_status.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class BatteryStatusTracker:
147147
InverterComponentState.COMPONENT_STATE_STANDBY,
148148
InverterComponentState.COMPONENT_STATE_IDLE,
149149
InverterComponentState.COMPONENT_STATE_CHARGING,
150-
InverterComponentState.COMPONENT_STATE_STANDBY,
150+
InverterComponentState.COMPONENT_STATE_DISCHARGING,
151151
}
152152

153153
def __init__( # pylint: disable=too-many-arguments

0 commit comments

Comments
 (0)