electrical_component
frequenz.client.assets.electrical_component ¤
Electrical component types.
Classes¤
frequenz.client.assets.electrical_component.AcEvCharger
dataclass
¤
Bases: EvCharger
An EV charger that supports AC charging only.
Source code in frequenz/client/assets/electrical_component/_ev_charger.py
Attributes¤
category
class-attribute
instance-attribute
¤
category: Literal[EV_CHARGER] = EV_CHARGER
The category of this component.
Note
This should not be used normally, you should test if a component
isinstance
of a concrete EV charger class instead.
It is only provided for using with a newer version of the API where the client
doesn't know about a new category yet (i.e. for use with
UnrecognizedComponent
)
and in case some low level code needs to know the category of a component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
type
class-attribute
instance-attribute
¤
The type of this EV charger.
Note
This should not be used normally, you should test if a EV charger
isinstance
of a concrete component class instead.
It is only provided for using with a newer version of the API where the client
doesn't know about the new EV charger type yet (i.e. for use with
UnrecognizedEvCharger
).
Functions¤
__new__ ¤
Prevent instantiation of this class.
frequenz.client.assets.electrical_component.BatteryInverter
dataclass
¤
Bases: Inverter
A battery inverter.
Source code in frequenz/client/assets/electrical_component/_inverter.py
Attributes¤
category
class-attribute
instance-attribute
¤
The category of this component.
Note
This should not be used normally, you should test if a component
isinstance
of a concrete component class instead.
It is only provided for using with a newer version of the API where the client
doesn't know about a new category yet (i.e. for use with
UnrecognizedComponent
)
and in case some low level code needs to know the category of a component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
type
class-attribute
instance-attribute
¤
The type of this inverter.
Note
This should not be used normally, you should test if a inverter
isinstance
of a concrete inverter class instead.
It is only provided for using with a newer version of the API where the client
doesn't know about the new inverter type yet (i.e. for use with
UnrecognizedInverter
).
Functions¤
__new__ ¤
Prevent instantiation of this class.
frequenz.client.assets.electrical_component.BatteryType ¤
Bases: Enum
The known types of batteries.
Source code in frequenz/client/assets/electrical_component/_battery.py
frequenz.client.assets.electrical_component.Breaker
dataclass
¤
Bases: ElectricalComponent
A breaker component.
Source code in frequenz/client/assets/electrical_component/_breaker.py
Attributes¤
category
class-attribute
instance-attribute
¤
The category of this component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
Functions¤
__new__ ¤
Prevent instantiation of this class.
Source code in frequenz/client/assets/electrical_component/_electrical_component.py
frequenz.client.assets.electrical_component.CapacitorBank
dataclass
¤
Bases: ElectricalComponent
A capacitor bank component.
Source code in frequenz/client/assets/electrical_component/_capacitor_bank.py
Attributes¤
category
class-attribute
instance-attribute
¤
category: Literal[CAPACITOR_BANK] = CAPACITOR_BANK
The category of this component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
Functions¤
__new__ ¤
Prevent instantiation of this class.
Source code in frequenz/client/assets/electrical_component/_electrical_component.py
frequenz.client.assets.electrical_component.Chp
dataclass
¤
Bases: ElectricalComponent
A combined heat and power (CHP) component.
Source code in frequenz/client/assets/electrical_component/_chp.py
Attributes¤
category
class-attribute
instance-attribute
¤
The category of this component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
Functions¤
__new__ ¤
Prevent instantiation of this class.
Source code in frequenz/client/assets/electrical_component/_electrical_component.py
frequenz.client.assets.electrical_component.Converter
dataclass
¤
Bases: ElectricalComponent
An AC-DC converter component.
Source code in frequenz/client/assets/electrical_component/_converter.py
Attributes¤
category
class-attribute
instance-attribute
¤
The category of this component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
Functions¤
__new__ ¤
Prevent instantiation of this class.
Source code in frequenz/client/assets/electrical_component/_electrical_component.py
frequenz.client.assets.electrical_component.CryptoMiner
dataclass
¤
Bases: ElectricalComponent
A crypto miner component.
Source code in frequenz/client/assets/electrical_component/_crypto_miner.py
Attributes¤
category
class-attribute
instance-attribute
¤
category: Literal[CRYPTO_MINER] = CRYPTO_MINER
The category of this component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
Functions¤
__new__ ¤
Prevent instantiation of this class.
Source code in frequenz/client/assets/electrical_component/_electrical_component.py
frequenz.client.assets.electrical_component.DcEvCharger
dataclass
¤
Bases: EvCharger
An EV charger that supports DC charging only.
Source code in frequenz/client/assets/electrical_component/_ev_charger.py
Attributes¤
category
class-attribute
instance-attribute
¤
category: Literal[EV_CHARGER] = EV_CHARGER
The category of this component.
Note
This should not be used normally, you should test if a component
isinstance
of a concrete EV charger class instead.
It is only provided for using with a newer version of the API where the client
doesn't know about a new category yet (i.e. for use with
UnrecognizedComponent
)
and in case some low level code needs to know the category of a component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
type
class-attribute
instance-attribute
¤
The type of this EV charger.
Note
This should not be used normally, you should test if a EV charger
isinstance
of a concrete component class instead.
It is only provided for using with a newer version of the API where the client
doesn't know about the new EV charger type yet (i.e. for use with
UnrecognizedEvCharger
).
Functions¤
__new__ ¤
Prevent instantiation of this class.
frequenz.client.assets.electrical_component.ElectricalComponent
dataclass
¤
A wrapper class for the protobuf ElectricalComponent message.
An electrical component is a physical device that can be used to generate or consume electricity.
Source code in frequenz/client/assets/electrical_component/_electrical_component.py
Attributes¤
category
instance-attribute
¤
category: ElectricalComponentCategory | int
The component category. E.g., Inverter, Battery, etc.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
Functions¤
__new__ ¤
Prevent instantiation of this class.
Source code in frequenz/client/assets/electrical_component/_electrical_component.py
frequenz.client.assets.electrical_component.ElectricalComponentCategory ¤
Bases: Enum
The known categories of components that can be present in a microgrid.
Source code in frequenz/client/assets/electrical_component/_category.py
Attributes¤
BATTERY
class-attribute
instance-attribute
¤
A storage system for electrical energy, used by inverters.
BREAKER
class-attribute
instance-attribute
¤
A breaker, used to interrupt the flow of electricity.
CAPACITOR_BANK
class-attribute
instance-attribute
¤
A capacitor bank for power factor correction.
CHP
class-attribute
instance-attribute
¤
A heat and power combustion plant (CHP stands for combined heat and power).
CONVERTER
class-attribute
instance-attribute
¤
A DC-DC converter.
CRYPTO_MINER
class-attribute
instance-attribute
¤
A crypto miner.
ELECTROLYZER
class-attribute
instance-attribute
¤
An electrolyzer for converting water into hydrogen and oxygen.
EV_CHARGER
class-attribute
instance-attribute
¤
A station for charging electrical vehicles.
GRID
class-attribute
instance-attribute
¤
The point where the local microgrid is connected to the grid.
HVAC
class-attribute
instance-attribute
¤
A Heating, Ventilation, and Air Conditioning (HVAC) system.
INVERTER
class-attribute
instance-attribute
¤
An electricity generator, with batteries or solar energy.
METER
class-attribute
instance-attribute
¤
A meter, for measuring electrical metrics, e.g., current, voltage, etc.
PLC
class-attribute
instance-attribute
¤
An industrial controller or PLC (Programmable Logic Controller).
POWER_TRANSFORMER
class-attribute
instance-attribute
¤
A power transformer.
PRECHARGER
class-attribute
instance-attribute
¤
A precharge module.
Precharging involves gradually ramping up the DC voltage to prevent any potential damage to sensitive electrical components like capacitors.
While many inverters and batteries come equipped with in-built precharging mechanisms, some may lack this feature. In such cases, we need to use external precharging modules.
STATIC_TRANSFER_SWITCH
class-attribute
instance-attribute
¤
A static transfer switch (STS).
UNINTERRUPTIBLE_POWER_SUPPLY
class-attribute
instance-attribute
¤
An uninterruptible power supply (UPS).
UNSPECIFIED
class-attribute
instance-attribute
¤
The component category is unspecified, probably due to an error in the message.
WIND_TURBINE
class-attribute
instance-attribute
¤
A wind turbine.
frequenz.client.assets.electrical_component.Electrolyzer
dataclass
¤
Bases: ElectricalComponent
An electrolyzer component.
Source code in frequenz/client/assets/electrical_component/_electrolyzer.py
Attributes¤
category
class-attribute
instance-attribute
¤
category: Literal[ELECTROLYZER] = ELECTROLYZER
The category of this component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
Functions¤
__new__ ¤
Prevent instantiation of this class.
Source code in frequenz/client/assets/electrical_component/_electrical_component.py
frequenz.client.assets.electrical_component.EvChargerType ¤
Bases: Enum
The known types of electric vehicle (EV) chargers.
Source code in frequenz/client/assets/electrical_component/_ev_charger.py
Attributes¤
AC
class-attribute
instance-attribute
¤
The EV charging station supports AC charging only.
DC
class-attribute
instance-attribute
¤
The EV charging station supports DC charging only.
HYBRID
class-attribute
instance-attribute
¤
The EV charging station supports both AC and DC.
UNSPECIFIED
class-attribute
instance-attribute
¤
The type of the EV charger is unspecified.
frequenz.client.assets.electrical_component.GridConnectionPoint
dataclass
¤
Bases: ElectricalComponent
A point where a microgrid connects to the grid.
The terms "Grid Connection Point" and "Point of Common Coupling" (PCC) are commonly used in the context.
While both terms describe a connection point to the grid, the
GridConnectionPoint
is specifically the physical connection point of the
generation facility to the grid, often concerned with the technical and
ownership aspects of the connection.
In contrast, the PCC is is more specific in terms of electrical engineering. It refers to the point where a customer's local electrical system (such as a microgrid) connects to the utility distribution grid in such a way that it can affect other customers’ systems connected to the same network. It is the point where the grid and customer's electrical systems interface and where issues like power quality and supply regulations are assessed.
The term GridConnectionPoint
is used to make it clear that what is referred
to here is the physical connection point of the local facility to the grid.
Note that this may also be the PCC in some cases.
Source code in frequenz/client/assets/electrical_component/_grid_connection_point.py
Attributes¤
category
class-attribute
instance-attribute
¤
The category of this component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
rated_fuse_current
instance-attribute
¤
rated_fuse_current: int
The maximum amount of electrical current that can flow through this connection, in amperes.
The rated maximum amount of current the fuse at the grid connection point is designed to safely carry under normal operating conditions.
This limit applies to currents both flowing in or out of each of the 3 phases individually.
In other words, a current i
A at one of the phases of the grid connection
point must comply with the following constraint:
-rated_fuse_current <= i <= rated_fuse_current
Functions¤
__new__ ¤
Prevent instantiation of this class.
Source code in frequenz/client/assets/electrical_component/_electrical_component.py
__post_init__ ¤
Validate the fuse's rated current.
Source code in frequenz/client/assets/electrical_component/_grid_connection_point.py
frequenz.client.assets.electrical_component.Hvac
dataclass
¤
Bases: ElectricalComponent
A heating, ventilation, and air conditioning (HVAC) component.
Source code in frequenz/client/assets/electrical_component/_hvac.py
Attributes¤
category
class-attribute
instance-attribute
¤
The category of this component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
Functions¤
__new__ ¤
Prevent instantiation of this class.
Source code in frequenz/client/assets/electrical_component/_electrical_component.py
frequenz.client.assets.electrical_component.HybridEvCharger
dataclass
¤
Bases: EvCharger
An EV charger that supports both AC and DC charging.
Source code in frequenz/client/assets/electrical_component/_ev_charger.py
Attributes¤
category
class-attribute
instance-attribute
¤
category: Literal[EV_CHARGER] = EV_CHARGER
The category of this component.
Note
This should not be used normally, you should test if a component
isinstance
of a concrete EV charger class instead.
It is only provided for using with a newer version of the API where the client
doesn't know about a new category yet (i.e. for use with
UnrecognizedComponent
)
and in case some low level code needs to know the category of a component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
type
class-attribute
instance-attribute
¤
The type of this EV charger.
Note
This should not be used normally, you should test if a EV charger
isinstance
of a concrete component class instead.
It is only provided for using with a newer version of the API where the client
doesn't know about the new EV charger type yet (i.e. for use with
UnrecognizedEvCharger
).
Functions¤
__new__ ¤
Prevent instantiation of this class.
frequenz.client.assets.electrical_component.HybridInverter
dataclass
¤
Bases: Inverter
A hybrid inverter.
Source code in frequenz/client/assets/electrical_component/_inverter.py
Attributes¤
category
class-attribute
instance-attribute
¤
The category of this component.
Note
This should not be used normally, you should test if a component
isinstance
of a concrete component class instead.
It is only provided for using with a newer version of the API where the client
doesn't know about a new category yet (i.e. for use with
UnrecognizedComponent
)
and in case some low level code needs to know the category of a component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
type
class-attribute
instance-attribute
¤
The type of this inverter.
Note
This should not be used normally, you should test if a inverter
isinstance
of a concrete inverter class instead.
It is only provided for using with a newer version of the API where the client
doesn't know about the new inverter type yet (i.e. for use with
UnrecognizedInverter
).
Functions¤
__new__ ¤
Prevent instantiation of this class.
frequenz.client.assets.electrical_component.InverterType ¤
Bases: Enum
The known types of inverters.
Source code in frequenz/client/assets/electrical_component/_inverter.py
frequenz.client.assets.electrical_component.LiIonBattery
dataclass
¤
Bases: Battery
A Li-ion battery.
Source code in frequenz/client/assets/electrical_component/_battery.py
Attributes¤
category
class-attribute
instance-attribute
¤
The category of this component.
Note
This should not be used normally, you should test if a component
isinstance
of a concrete component class instead.
It is only provided for using with a newer version of the API where the client
doesn't know about a new category yet (i.e. for use with
UnrecognizedComponent
)
and in case some low level code needs to know the category of a component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
type
class-attribute
instance-attribute
¤
The type of this battery.
Note
This should not be used normally, you should test if a battery
isinstance
of a concrete battery class instead.
It is only provided for using with a newer version of the API where the client
doesn't know about the new battery type yet (i.e. for use with
UnrecognizedBattery
).
Functions¤
__new__ ¤
Prevent instantiation of this class.
frequenz.client.assets.electrical_component.Meter
dataclass
¤
Bases: ElectricalComponent
A measuring meter component.
Source code in frequenz/client/assets/electrical_component/_meter.py
Attributes¤
category
class-attribute
instance-attribute
¤
The category of this component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
Functions¤
__new__ ¤
Prevent instantiation of this class.
Source code in frequenz/client/assets/electrical_component/_electrical_component.py
frequenz.client.assets.electrical_component.MismatchedCategoryComponent
dataclass
¤
Bases: ProblematicComponent
A component with a mismatch in the category.
This component declared a category but carries category specific metadata that doesn't match the declared category.
Source code in frequenz/client/assets/electrical_component/_problematic.py
Attributes¤
category
instance-attribute
¤
category: ElectricalComponentCategory | int
The category of this component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
Functions¤
__new__ ¤
Prevent instantiation of this class.
Source code in frequenz/client/assets/electrical_component/_problematic.py
frequenz.client.assets.electrical_component.NaIonBattery
dataclass
¤
Bases: Battery
A Na-ion battery.
Source code in frequenz/client/assets/electrical_component/_battery.py
Attributes¤
category
class-attribute
instance-attribute
¤
The category of this component.
Note
This should not be used normally, you should test if a component
isinstance
of a concrete component class instead.
It is only provided for using with a newer version of the API where the client
doesn't know about a new category yet (i.e. for use with
UnrecognizedComponent
)
and in case some low level code needs to know the category of a component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
type
class-attribute
instance-attribute
¤
The type of this battery.
Note
This should not be used normally, you should test if a battery
isinstance
of a concrete battery class instead.
It is only provided for using with a newer version of the API where the client
doesn't know about the new battery type yet (i.e. for use with
UnrecognizedBattery
).
Functions¤
__new__ ¤
Prevent instantiation of this class.
frequenz.client.assets.electrical_component.Plc
dataclass
¤
Bases: ElectricalComponent
A PLC component.
Source code in frequenz/client/assets/electrical_component/_plc.py
Attributes¤
category
class-attribute
instance-attribute
¤
The category of this component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
Functions¤
__new__ ¤
Prevent instantiation of this class.
Source code in frequenz/client/assets/electrical_component/_electrical_component.py
frequenz.client.assets.electrical_component.PowerTransformer
dataclass
¤
Bases: ElectricalComponent
A power transformer designed for the bulk transfer of electrical energy.
Power transformers are essential components in electrical power systems that transfer electrical energy between different voltage levels. Their primary function is to "step-up" or "step-down" voltage levels for efficient transmission and distribution of power across the electrical grid.
Source code in frequenz/client/assets/electrical_component/_power_transformer.py
Attributes¤
category
class-attribute
instance-attribute
¤
category: Literal[POWER_TRANSFORMER] = POWER_TRANSFORMER
The category of this component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
primary_power
instance-attribute
¤
primary_power: float
The primary voltage of the power transformer.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
secondary_power
instance-attribute
¤
secondary_power: float
The secondary voltage of the power transformer.
Functions¤
__new__ ¤
Prevent instantiation of this class.
Source code in frequenz/client/assets/electrical_component/_electrical_component.py
frequenz.client.assets.electrical_component.Precharger
dataclass
¤
Bases: ElectricalComponent
A precharger component.
Source code in frequenz/client/assets/electrical_component/_precharger.py
Attributes¤
category
class-attribute
instance-attribute
¤
category: Literal[PRECHARGER] = PRECHARGER
The category of this component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
Functions¤
__new__ ¤
Prevent instantiation of this class.
Source code in frequenz/client/assets/electrical_component/_electrical_component.py
frequenz.client.assets.electrical_component.PvInverter
dataclass
¤
Bases: Inverter
A PV inverter.
Source code in frequenz/client/assets/electrical_component/_inverter.py
Attributes¤
category
class-attribute
instance-attribute
¤
The category of this component.
Note
This should not be used normally, you should test if a component
isinstance
of a concrete component class instead.
It is only provided for using with a newer version of the API where the client
doesn't know about a new category yet (i.e. for use with
UnrecognizedComponent
)
and in case some low level code needs to know the category of a component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
type
class-attribute
instance-attribute
¤
The type of this inverter.
Note
This should not be used normally, you should test if a inverter
isinstance
of a concrete inverter class instead.
It is only provided for using with a newer version of the API where the client
doesn't know about the new inverter type yet (i.e. for use with
UnrecognizedInverter
).
Functions¤
__new__ ¤
Prevent instantiation of this class.
frequenz.client.assets.electrical_component.StaticTransferSwitch
dataclass
¤
Bases: ElectricalComponent
A static transfer switch component.
Source code in frequenz/client/assets/electrical_component/_static_transfer_switch.py
Attributes¤
category
class-attribute
instance-attribute
¤
category: Literal[STATIC_TRANSFER_SWITCH] = (
STATIC_TRANSFER_SWITCH
)
The category of this component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
Functions¤
__new__ ¤
Prevent instantiation of this class.
Source code in frequenz/client/assets/electrical_component/_electrical_component.py
frequenz.client.assets.electrical_component.UninterruptiblePowerSupply
dataclass
¤
Bases: ElectricalComponent
An uninterruptible power supply component.
Source code in frequenz/client/assets/electrical_component/_uninterruptible_power_supply.py
Attributes¤
category
class-attribute
instance-attribute
¤
category: Literal[UNINTERRUPTIBLE_POWER_SUPPLY] = (
UNINTERRUPTIBLE_POWER_SUPPLY
)
The category of this component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
Functions¤
__new__ ¤
Prevent instantiation of this class.
Source code in frequenz/client/assets/electrical_component/_electrical_component.py
frequenz.client.assets.electrical_component.UnrecognizedBattery
dataclass
¤
Bases: Battery
A battery of an unrecognized type.
Source code in frequenz/client/assets/electrical_component/_battery.py
Attributes¤
category
class-attribute
instance-attribute
¤
The category of this component.
Note
This should not be used normally, you should test if a component
isinstance
of a concrete component class instead.
It is only provided for using with a newer version of the API where the client
doesn't know about a new category yet (i.e. for use with
UnrecognizedComponent
)
and in case some low level code needs to know the category of a component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
Functions¤
__new__ ¤
Prevent instantiation of this class.
frequenz.client.assets.electrical_component.UnrecognizedComponent
dataclass
¤
Bases: ProblematicComponent
A component of an unrecognized type.
Source code in frequenz/client/assets/electrical_component/_problematic.py
Attributes¤
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
Functions¤
__new__ ¤
Prevent instantiation of this class.
Source code in frequenz/client/assets/electrical_component/_problematic.py
frequenz.client.assets.electrical_component.UnrecognizedEvCharger
dataclass
¤
Bases: EvCharger
An EV charger of an unrecognized type.
Source code in frequenz/client/assets/electrical_component/_ev_charger.py
Attributes¤
category
class-attribute
instance-attribute
¤
category: Literal[EV_CHARGER] = EV_CHARGER
The category of this component.
Note
This should not be used normally, you should test if a component
isinstance
of a concrete EV charger class instead.
It is only provided for using with a newer version of the API where the client
doesn't know about a new category yet (i.e. for use with
UnrecognizedComponent
)
and in case some low level code needs to know the category of a component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
Functions¤
__new__ ¤
Prevent instantiation of this class.
frequenz.client.assets.electrical_component.UnrecognizedInverter
dataclass
¤
Bases: Inverter
An inverter component.
Source code in frequenz/client/assets/electrical_component/_inverter.py
Attributes¤
category
class-attribute
instance-attribute
¤
The category of this component.
Note
This should not be used normally, you should test if a component
isinstance
of a concrete component class instead.
It is only provided for using with a newer version of the API where the client
doesn't know about a new category yet (i.e. for use with
UnrecognizedComponent
)
and in case some low level code needs to know the category of a component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
Functions¤
__new__ ¤
Prevent instantiation of this class.
frequenz.client.assets.electrical_component.UnspecifiedBattery
dataclass
¤
Bases: Battery
A battery of a unspecified type.
Source code in frequenz/client/assets/electrical_component/_battery.py
Attributes¤
category
class-attribute
instance-attribute
¤
The category of this component.
Note
This should not be used normally, you should test if a component
isinstance
of a concrete component class instead.
It is only provided for using with a newer version of the API where the client
doesn't know about a new category yet (i.e. for use with
UnrecognizedComponent
)
and in case some low level code needs to know the category of a component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
type
class-attribute
instance-attribute
¤
type: Literal[UNSPECIFIED] = UNSPECIFIED
The type of this battery.
Note
This should not be used normally, you should test if a battery
isinstance
of a concrete battery class instead.
It is only provided for using with a newer version of the API where the client
doesn't know about the new battery type yet (i.e. for use with
UnrecognizedBattery
).
Functions¤
__new__ ¤
Prevent instantiation of this class.
frequenz.client.assets.electrical_component.UnspecifiedComponent
dataclass
¤
Bases: ProblematicComponent
A component of unspecified type.
Source code in frequenz/client/assets/electrical_component/_problematic.py
Attributes¤
category
class-attribute
instance-attribute
¤
category: Literal[UNSPECIFIED] = UNSPECIFIED
The category of this component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
Functions¤
__new__ ¤
Prevent instantiation of this class.
Source code in frequenz/client/assets/electrical_component/_problematic.py
frequenz.client.assets.electrical_component.UnspecifiedEvCharger
dataclass
¤
Bases: EvCharger
An EV charger of an unspecified type.
Source code in frequenz/client/assets/electrical_component/_ev_charger.py
Attributes¤
category
class-attribute
instance-attribute
¤
category: Literal[EV_CHARGER] = EV_CHARGER
The category of this component.
Note
This should not be used normally, you should test if a component
isinstance
of a concrete EV charger class instead.
It is only provided for using with a newer version of the API where the client
doesn't know about a new category yet (i.e. for use with
UnrecognizedComponent
)
and in case some low level code needs to know the category of a component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
type
class-attribute
instance-attribute
¤
type: Literal[UNSPECIFIED] = UNSPECIFIED
The type of this EV charger.
Note
This should not be used normally, you should test if a EV charger
isinstance
of a concrete component class instead.
It is only provided for using with a newer version of the API where the client
doesn't know about the new EV charger type yet (i.e. for use with
UnrecognizedEvCharger
).
Functions¤
__new__ ¤
Prevent instantiation of this class.
frequenz.client.assets.electrical_component.UnspecifiedInverter
dataclass
¤
Bases: Inverter
An inverter of an unspecified type.
Source code in frequenz/client/assets/electrical_component/_inverter.py
Attributes¤
category
class-attribute
instance-attribute
¤
The category of this component.
Note
This should not be used normally, you should test if a component
isinstance
of a concrete component class instead.
It is only provided for using with a newer version of the API where the client
doesn't know about a new category yet (i.e. for use with
UnrecognizedComponent
)
and in case some low level code needs to know the category of a component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
type
class-attribute
instance-attribute
¤
type: Literal[UNSPECIFIED] = UNSPECIFIED
The type of this inverter.
Note
This should not be used normally, you should test if a inverter
isinstance
of a concrete inverter class instead.
It is only provided for using with a newer version of the API where the client
doesn't know about the new inverter type yet (i.e. for use with
UnrecognizedInverter
).
Functions¤
__new__ ¤
Prevent instantiation of this class.
frequenz.client.assets.electrical_component.WindTurbine
dataclass
¤
Bases: ElectricalComponent
A wind turbine component.
Source code in frequenz/client/assets/electrical_component/_wind_turbine.py
Attributes¤
category
class-attribute
instance-attribute
¤
category: Literal[WIND_TURBINE] = WIND_TURBINE
The category of this component.
identity
property
¤
identity: tuple[ElectricalComponentId, MicrogridId]
The identity of this component.
This uses the electrical component ID and microgrid ID to identify a component without considering the other attributes, so even if a component state changed, the identity remains the same.
manufacturer
class-attribute
instance-attribute
¤
manufacturer: str | None = None
The manufacturer of the electrical component.
microgrid_id
instance-attribute
¤
Unique identifier for the microgrid that the electrical component belongs to.
model_name
class-attribute
instance-attribute
¤
model_name: str | None = None
The model name of the electrical component.
name
class-attribute
instance-attribute
¤
name: str | None = None
Human-readable name for the electrical component.
operational_lifetime
class-attribute
instance-attribute
¤
operational_lifetime: Lifetime = field(
default_factory=Lifetime
)
The operational lifetime of the electrical component.
rated_bounds
class-attribute
instance-attribute
¤
List of rated bounds present for the component identified by Metric.
Functions¤
__new__ ¤
Prevent instantiation of this class.