ev_charger_pool
frequenz.sdk.timeseries.ev_charger_pool ¤
Interactions with EV Chargers.
Classes¤
frequenz.sdk.timeseries.ev_charger_pool.EVChargerPool ¤
Bases: ComponentPool[EVChargerPoolReferenceStore, EVChargerPoolReport]
An interface for interaction with pools of EV Chargers.
Provides
- Aggregate
powerandcurrent_per_phasemeasurements of the EV Chargers in the pool.
Source code in src/frequenz/sdk/timeseries/ev_charger_pool/_ev_charger_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. |
current_per_phase
property
¤
current_per_phase: Formula3Phase[Current]
Fetch the total current for the EV Chargers in the pool.
This formula produces values that are in the Passive Sign Convention (PSC).
If a formula to calculate EV Charger current is not already running, it will be started.
A receiver from the formula can be created using the new_receiver
method.
| RETURNS | DESCRIPTION |
|---|---|
Formula3Phase[Current]
|
A Formula that will calculate and stream the total current of all EV Chargers. |
power
property
¤
Fetch the total power for the EV Chargers in the pool.
This formula produces values that are in the Passive Sign Convention (PSC).
If a formula to calculate EV Charger 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 EV Chargers. |
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 EV chargers.
This proposal is for the maximum power that can be set for the EV chargers in the pool. The actual consumption might be lower based on the number of phases an EV is drawing power from, and its current state of charge.
Details on how the power manager handles proposals can be found in the Microgrid documentation.
| PARAMETER | DESCRIPTION |
|---|---|
power
|
The power to propose for the EV chargers in the pool. If
TYPE:
|
bounds
|
The power bounds for the proposal. When specified, these bounds will limit the bounds for lower priority actors. |
| RAISES | DESCRIPTION |
|---|---|
EVChargerPoolError
|
If a discharge power for EV chargers is requested. |
Source code in src/frequenz/sdk/timeseries/ev_charger_pool/_ev_charger_pool.py
frequenz.sdk.timeseries.ev_charger_pool.EVChargerPoolError ¤
frequenz.sdk.timeseries.ev_charger_pool.EVChargerPoolReport ¤
Bases: ComponentPoolReport, Protocol
A status report for an EV chargers pool.