pv_pool
frequenz.sdk.timeseries.pv_pool ¤
Interactions with PV inverters.
Classes¤
frequenz.sdk.timeseries.pv_pool.PVPool ¤
Bases: ComponentPool[PVPoolReferenceStore, PVPoolReport]
An interface for interaction with pools of PV inverters.
Provides
- Aggregate
powermeasurements of the PV inverters in the pool.
Source code in src/frequenz/sdk/timeseries/pv_pool/_pv_pool.py
Attributes¤
component_ids
property
¤
component_ids: Set[ComponentId]
Return component IDs of all component IDs managed by this pool.
| RETURNS | DESCRIPTION |
|---|---|
Set[ComponentId]
|
Set of managed component IDs. |
power
property
¤
Fetch the total power for the PV Inverters in the pool.
This formula produces values that are in the Passive Sign Convention (PSC).
If a formula to calculate PV Inverter power is not already running, it will be started.
A receiver from the formula can be created using the new_receiver
method.
| RETURNS | DESCRIPTION |
|---|---|
Formula[Power]
|
A Formula that will calculate and stream the total power of all PV Inverters. |
power_distribution_results
property
¤
power_distribution_results: ReceiverFetcher[Result]
Get a receiver to receive power distribution results.
| RETURNS | DESCRIPTION |
|---|---|
ReceiverFetcher[Result]
|
A receiver that will stream power distribution results for the pool's set of |
ReceiverFetcher[Result]
|
components. |
power_status
property
¤
power_status: ReceiverFetcher[ReportT]
Get a receiver to receive new power status reports when they change.
These include - the current inclusion/exclusion bounds available for the pool's priority, - the current target power for the pool's set of components, - the result of the last distribution request for the pool's set of components,.
| RETURNS | DESCRIPTION |
|---|---|
ReceiverFetcher[ReportT]
|
A receiver that will stream power status reports for the pool's priority. |
system_power_bounds
property
¤
system_power_bounds: ReceiverFetcher[SystemBounds]
Return a receiver fetcher for the system power bounds.
Functions¤
__init__ ¤
Create an AbstractPool instance.
| PARAMETER | DESCRIPTION |
|---|---|
pool_ref_store
|
The pool reference store instance.
TYPE:
|
name
|
An optional name used to identify this instance of the pool or a corresponding actor in the logs.
TYPE:
|
priority
|
The priority of the actor using this wrapper.
TYPE:
|
Source code in src/frequenz/sdk/timeseries/component_pool/_component_pool.py
propose_power
async
¤
Send a proposal to the power manager for the pool's set of PV inverters.
This proposal is for the maximum power that can be set for the PV inverters in the pool. The actual production might be lower.
Power values need to follow the Passive Sign Convention (PSC). That is, positive values indicate charge power and negative values indicate discharge power. Only discharge powers are allowed for PV inverters.
Details on how the power manager handles proposals can be found in the Microgrid documentation.
| PARAMETER | DESCRIPTION |
|---|---|
power
|
The power to propose for the PV inverters in the pool. If
TYPE:
|
bounds
|
The power bounds for the proposal. When specified, this will limit the bounds for lower priority actors. |
| RAISES | DESCRIPTION |
|---|---|
PVPoolError
|
If a charge power for PV inverters is requested. |
Source code in src/frequenz/sdk/timeseries/pv_pool/_pv_pool.py
frequenz.sdk.timeseries.pv_pool.PVPoolError ¤
frequenz.sdk.timeseries.pv_pool.PVPoolReport ¤
Bases: ComponentPoolReport, Protocol
A status report for a PV pool.