Index
frequenz.client.assets ¤
Assets API client.
Classes¤
frequenz.client.assets.AssetsApiClient ¤
Bases: BaseApiClient[PlatformAssetsServiceStub]
A client for the Assets API.
Source code in src/frequenz/client/assets/_client.py
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 | |
Attributes¤
channel
property
¤
The underlying gRPC channel used to communicate with the server.
Warning
This channel is provided as a last resort for advanced users. It is not recommended to use this property directly unless you know what you are doing and you don't care about being tied to a specific gRPC library.
| RAISES | DESCRIPTION |
|---|---|
ClientNotConnected
|
If the client is not connected to the server. |
channel_defaults
property
¤
The default options for the gRPC channel.
stub
property
¤
The gRPC stub for the Assets API.
| RETURNS | DESCRIPTION |
|---|---|
PlatformAssetsServiceAsyncStub
|
The gRPC stub for the Assets API. |
| RAISES | DESCRIPTION |
|---|---|
ClientNotConnected
|
If the client is not connected to the server. |
Methods:¤
__aexit__
async
¤
__aexit__(
_exc_type: type[BaseException] | None,
_exc_val: BaseException | None,
_exc_tb: Any | None,
) -> bool | None
Exit a context manager.
Source code in frequenz/client/base/client.py
__init__ ¤
__init__(
server_url: str,
*,
auth_key: str | None = None,
sign_secret: str | None = None,
channel_defaults: ChannelOptions = ChannelOptions(),
connect: bool = True
) -> None
Initialize the AssetsApiClient.
| PARAMETER | DESCRIPTION |
|---|---|
server_url
|
The location of the microgrid API server in the form of a URL.
The following format is expected:
"grpc://hostname{:
TYPE:
|
auth_key
|
The authentication key to use for the connection.
TYPE:
|
sign_secret
|
The secret to use for signing requests.
TYPE:
|
channel_defaults
|
The default options use to create the channel when not specified in the URL.
TYPE:
|
connect
|
Whether to connect to the server as soon as a client instance is
created. If
TYPE:
|
Source code in src/frequenz/client/assets/_client.py
connect ¤
connect(
server_url: str | None = None,
*,
auth_key: str | None | EllipsisType = ...,
sign_secret: str | None | EllipsisType = ...
) -> None
Connect to the server, possibly using a new URL.
If the client is already connected and the URL is the same as the previous URL, this method does nothing. If you want to force a reconnection, you can call disconnect() first.
| PARAMETER | DESCRIPTION |
|---|---|
server_url
|
The URL of the server to connect to. If not provided, the previously used URL is used.
TYPE:
|
auth_key
|
The API key to use when connecting to the service. If an Ellipsis is provided, the previously used auth_key is used.
TYPE:
|
sign_secret
|
The secret to use when creating message HMAC. If an Ellipsis is provided,
TYPE:
|
Source code in frequenz/client/base/client.py
disconnect
async
¤
Disconnect from the server.
If the client is not connected, this method does nothing.
get_microgrid
async
¤
Get the details of a microgrid.
| PARAMETER | DESCRIPTION |
|---|---|
microgrid_id
|
The ID of the microgrid to get the details of.
TYPE:
|
raise_on_errors
|
If True, raise an InvalidMicrogridError when major validation issues are found instead of just logging them.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Microgrid
|
The details of the microgrid. |
| RAISES | DESCRIPTION |
|---|---|
ApiClientError
|
If there are any errors communicating with the Assets API, most likely a subclass of GrpcError. |
InvalidMicrogridError
|
If |
Source code in src/frequenz/client/assets/_client.py
list_gridpool_energy_schedules
async
¤
list_gridpool_energy_schedules(
gridpool_id: int,
schedule_ids: Iterable[int] = (),
directions: Iterable[
GridpoolEnergyScheduleDirection | int
] = (),
*,
time_series_interval: Interval | None = None,
effective_validity_period: Interval | None = None
) -> list[GridpoolEnergySchedule]
List energy schedules for a gridpool.
| PARAMETER | DESCRIPTION |
|---|---|
gridpool_id
|
The ID of the gridpool whose schedules should be listed.
TYPE:
|
schedule_ids
|
Only return schedules whose IDs are included in this list. If empty, no schedule-ID filtering is applied. |
directions
|
Only return schedules with one of these directions. If empty, no direction filtering is applied.
TYPE:
|
time_series_interval
|
Restrict returned time-series entries to delivery periods that overlap this interval.
TYPE:
|
effective_validity_period
|
Only return schedules whose effective validity period overlaps this interval.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
list[GridpoolEnergySchedule]
|
The matching gridpool energy schedules. |
| RAISES | DESCRIPTION |
|---|---|
ApiClientError
|
If there are any errors communicating with the Assets API, most likely a subclass of GrpcError. |
Source code in src/frequenz/client/assets/_client.py
list_gridpools
async
¤
List gridpools within the current enterprise scope.
| PARAMETER | DESCRIPTION |
|---|---|
gridpool_ids
|
Only return gridpools whose IDs are included in this list. If empty, no filtering is applied. |
| RETURNS | DESCRIPTION |
|---|---|
list[Gridpool]
|
The matching gridpools. |
| RAISES | DESCRIPTION |
|---|---|
ApiClientError
|
If there are any errors communicating with the Assets API, most likely a subclass of GrpcError. |
Source code in src/frequenz/client/assets/_client.py
list_market_topology_relations
async
¤
list_market_topology_relations(
*,
gridpool_ids: Iterable[int] = (),
microgrid_ids: Iterable[MicrogridId] = (),
market_location_id_values: Iterable[str] = (),
delivery_areas: Iterable[DeliveryArea] = (),
participation_types: Iterable[
MarketParticipationType | int
] = ()
) -> list[MarketTopologyRelation]
List market-topology relations within the current enterprise scope.
| PARAMETER | DESCRIPTION |
|---|---|
gridpool_ids
|
Only return relations involving any of these gridpools. |
microgrid_ids
|
Only return relations involving any of these microgrids.
TYPE:
|
market_location_id_values
|
Only return relations involving market locations whose ID values match any of these values. |
delivery_areas
|
Only return relations applying to any of these delivery areas.
TYPE:
|
participation_types
|
Only return relations that include at least one participation with one of these types.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
list[MarketTopologyRelation]
|
The matching market-topology relations. |
| RAISES | DESCRIPTION |
|---|---|
ApiClientError
|
If there are any errors communicating with the Assets API, most likely a subclass of GrpcError. |
Source code in src/frequenz/client/assets/_client.py
list_microgrid_electrical_component_connections
async
¤
list_microgrid_electrical_component_connections(
microgrid_id: MicrogridId,
source_component_ids: Iterable[
ElectricalComponentId
] = (),
destination_component_ids: Iterable[
ElectricalComponentId
] = (),
*,
raise_on_errors: bool = False
) -> list[ComponentConnection]
Get the electrical component connections of a microgrid.
| PARAMETER | DESCRIPTION |
|---|---|
microgrid_id
|
The ID of the microgrid to get the electrical component connections of.
TYPE:
|
source_component_ids
|
Only return connections that originate from these component IDs. If None or empty, no filtering is applied.
TYPE:
|
destination_component_ids
|
Only return connections that terminate at these component IDs. If None or empty, no filtering is applied.
TYPE:
|
raise_on_errors
|
If True, raise an
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
list[ComponentConnection]
|
The electrical component connections of the microgrid. |
| RAISES | DESCRIPTION |
|---|---|
ExceptionGroup
|
If |
Source code in src/frequenz/client/assets/_client.py
511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 | |
list_microgrid_electrical_components
async
¤
list_microgrid_electrical_components(
microgrid_id: MicrogridId,
component_ids: Iterable[ElectricalComponentId] = (),
categories: Iterable[
ElectricalComponentCategory | int
] = (),
*,
raise_on_errors: bool = False
) -> list[ElectricalComponent]
Get the electrical components of a microgrid.
| PARAMETER | DESCRIPTION |
|---|---|
microgrid_id
|
The ID of the microgrid to get the electrical components of.
TYPE:
|
component_ids
|
Only return components whose IDs are included in this list. If empty, no component-ID filtering is applied.
TYPE:
|
categories
|
Only return components whose categories are included in this list. If empty, no category filtering is applied.
TYPE:
|
raise_on_errors
|
If True, raise an
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
list[ElectricalComponent]
|
The electrical components of the microgrid. |
| RAISES | DESCRIPTION |
|---|---|
ExceptionGroup
|
If |
Source code in src/frequenz/client/assets/_client.py
428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 | |
list_microgrid_sensors
async
¤
list_microgrid_sensors(
microgrid_id: MicrogridId,
sensor_ids: Iterable[SensorId] = (),
) -> list[Sensor]
List sensors in a microgrid.
| PARAMETER | DESCRIPTION |
|---|---|
microgrid_id
|
The ID of the microgrid whose sensors should be listed.
TYPE:
|
sensor_ids
|
Only return sensors whose IDs are included in this list. If empty, no filtering is applied.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
list[Sensor]
|
The matching sensors. |
| RAISES | DESCRIPTION |
|---|---|
ApiClientError
|
If there are any errors communicating with the Assets API, most likely a subclass of GrpcError. |
Source code in src/frequenz/client/assets/_client.py
list_microgrids
async
¤
list_microgrids(
microgrid_ids: Iterable[MicrogridId] = (),
gridpool_ids: Iterable[int] = (),
*,
raise_on_errors: bool = False
) -> list[Microgrid]
List microgrids within the current enterprise scope.
| PARAMETER | DESCRIPTION |
|---|---|
microgrid_ids
|
Only return microgrids whose IDs are included in this list. If empty, no microgrid-ID filtering is applied.
TYPE:
|
gridpool_ids
|
Only return microgrids that are part of a market-topology relation involving any of these gridpools. |
raise_on_errors
|
If True, raise an
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
list[Microgrid]
|
The matching microgrids. |
| RAISES | DESCRIPTION |
|---|---|
ApiClientError
|
If there are any errors communicating with the Assets API, most likely a subclass of GrpcError. |
ExceptionGroup
|
If |
Source code in src/frequenz/client/assets/_client.py
frequenz.client.assets.BalancingGroup
dataclass
¤
A market balancing group identified by its market code.
Source code in src/frequenz/client/assets/_balancing_group.py
frequenz.client.assets.DeliveryArea
dataclass
¤
A geographical or administrative region where electricity deliveries occur.
DeliveryArea represents the geographical or administrative region, usually defined and maintained by a Transmission System Operator (TSO), where electricity deliveries for a contract occur.
The concept is important to energy trading as it delineates the agreed-upon delivery location. Delivery areas can have different codes based on the jurisdiction in which they operate.
Jurisdictional Differences
This is typically represented by specific codes according to local jurisdiction.
In Europe, this is represented by an EIC (Energy Identification Code). List of EICs.
Source code in src/frequenz/client/assets/_delivery_area.py
Attributes¤
code
instance-attribute
¤
code: str | None
The code representing the unique identifier for the delivery area.
code_type
instance-attribute
¤
code_type: EnergyMarketCodeType | int
Type of code used for identifying the delivery area itself.
This code could be extended in the future, in case an unknown code type is encountered, a plain integer value is used to represent it.
Methods:¤
frequenz.client.assets.DeliveryDuration ¤
Bases: Enum
Delivery duration used by scheduled energy values.
Source code in src/frequenz/client/assets/_gridpool_energy_schedule.py
Attributes¤
MINUTES_15
class-attribute
instance-attribute
¤
A 15-minute delivery duration.
MINUTES_30
class-attribute
instance-attribute
¤
A 30-minute delivery duration.
MINUTES_5
class-attribute
instance-attribute
¤
A 5-minute delivery duration.
MINUTES_60
class-attribute
instance-attribute
¤
A 60-minute delivery duration.
UNSPECIFIED
class-attribute
instance-attribute
¤
The delivery duration is unspecified.
frequenz.client.assets.EnergyMarketCodeType ¤
Bases: Enum
The identification code types used in the energy market.
CodeType specifies the type of identification code used for uniquely identifying various entities such as delivery areas, market participants, and grid components within the energy market.
This enumeration aims to offer compatibility across different jurisdictional standards.
Understanding Code Types
Different regions or countries may have their own standards for uniquely identifying various entities within the energy market. For example, in Europe, the Energy Identification Code (EIC) is commonly used for this purpose.
Extensibility
New code types can be added to this enum to accommodate additional regional standards, enhancing the API's adaptability.
Validation Required
The chosen code type should correspond correctly with the code field in
the relevant message objects, such as DeliveryArea or Counterparty.
Failure to match the code type with the correct code could lead to
processing errors.
Source code in src/frequenz/client/assets/_delivery_area.py
Attributes¤
EUROPE_EIC
class-attribute
instance-attribute
¤
European Energy Identification Code Standard.
UNSPECIFIED
class-attribute
instance-attribute
¤
Unspecified type. This value is a placeholder and should not be used.
US_NERC
class-attribute
instance-attribute
¤
North American Electric Reliability Corporation identifiers.
frequenz.client.assets.Gridpool
dataclass
¤
A virtual balancing-group structure used for market interactions.
Source code in src/frequenz/client/assets/_gridpool.py
frequenz.client.assets.GridpoolEnergySchedule
dataclass
¤
A static energy schedule associated with a gridpool.
Source code in src/frequenz/client/assets/_gridpool_energy_schedule.py
Attributes¤
cancel_time
instance-attribute
¤
cancel_time: datetime | None
Timestamp at which the schedule was cancelled.
counterparty_balancing_group
instance-attribute
¤
counterparty_balancing_group: BalancingGroup | None
The third-party balancing group involved in the scheduled exchange.
counterparty_delivery_area
instance-attribute
¤
counterparty_delivery_area: DeliveryArea | None
Delivery area of the counterparty side of the scheduled exchange.
delivery_duration
instance-attribute
¤
delivery_duration: DeliveryDuration | int
Delivery duration used by all time-series entries in this schedule.
direction
instance-attribute
¤
direction: GridpoolEnergyScheduleDirection | int
Direction of the scheduled exchange from the Frequenz perspective.
frequenz_delivery_area
instance-attribute
¤
frequenz_delivery_area: DeliveryArea | None
Delivery area of the Frequenz side of the scheduled exchange.
gridpool_id
instance-attribute
¤
gridpool_id: int
The unique identifier of the gridpool this schedule belongs to.
time_series
instance-attribute
¤
time_series: list[GridpoolEnergyScheduleTimeSeriesEntry]
Scheduled active-power values.
frequenz.client.assets.GridpoolEnergyScheduleDirection ¤
Bases: Enum
Direction of a scheduled energy exchange.
Source code in src/frequenz/client/assets/_gridpool_energy_schedule.py
frequenz.client.assets.GridpoolEnergyScheduleTimeSeriesEntry
dataclass
¤
A scheduled active-power value for one delivery period.
Source code in src/frequenz/client/assets/_gridpool_energy_schedule.py
frequenz.client.assets.Interval
dataclass
¤
A half-open time interval: [start, end).
Source code in src/frequenz/client/assets/_interval.py
Attributes¤
end
class-attribute
instance-attribute
¤
end: datetime | None = None
The exclusive end of the interval.
start
class-attribute
instance-attribute
¤
start: datetime | None = None
The inclusive start of the interval.
Methods:¤
__post_init__ ¤
Validate this interval.
Source code in src/frequenz/client/assets/_interval.py
frequenz.client.assets.Lifetime
dataclass
¤
An active operational period of a microgrid asset.
Warning
The end timestamp indicates that the
asset has been permanently removed from the system.
Source code in src/frequenz/client/assets/_lifetime.py
Attributes¤
end
class-attribute
instance-attribute
¤
end: datetime | None = None
The moment when the asset's operational activity ceased.
If None, the asset is considered to be active with no plans to be deactivated.
start
class-attribute
instance-attribute
¤
start: datetime | None = None
The moment when the asset became operationally active.
If None, the asset is considered to be active in any past moment previous to the
end.
Methods:¤
__post_init__ ¤
Validate this lifetime.
Source code in src/frequenz/client/assets/_lifetime.py
is_operational_at ¤
Check whether this lifetime is active at a specific timestamp.
Source code in src/frequenz/client/assets/_lifetime.py
frequenz.client.assets.Location
dataclass
¤
A location of a microgrid.
Source code in src/frequenz/client/assets/_location.py
Attributes¤
country_code
instance-attribute
¤
country_code: str | None
The country code of the microgrid in ISO 3166-1 Alpha 2 format.
Methods:¤
__str__ ¤
__str__() -> str
Return the short string representation of this instance.
Source code in src/frequenz/client/assets/_location.py
frequenz.client.assets.MarketLocationId
dataclass
¤
A market-standard identifier for a market location.
Source code in src/frequenz/client/assets/_market_location.py
frequenz.client.assets.MarketLocationIdType ¤
Bases: Enum
External market identifier types used for market locations.
Source code in src/frequenz/client/assets/_market_location.py
Attributes¤
CUPS
class-attribute
instance-attribute
¤
Spain Codigo Universal de Punto de Suministro.
EAN
class-attribute
instance-attribute
¤
European Article Number.
ESI_ID
class-attribute
instance-attribute
¤
United States Electric Service Identifier.
GSRN
class-attribute
instance-attribute
¤
GS1 Global Service Relation Number.
ICP
class-attribute
instance-attribute
¤
New Zealand Installation Control Point.
MALO_ID
class-attribute
instance-attribute
¤
Germany Marktlokations-ID.
MPAN
class-attribute
instance-attribute
¤
United Kingdom Meter Point Administration Number.
NMI
class-attribute
instance-attribute
¤
Australia National Metering Identifier.
OTHER
class-attribute
instance-attribute
¤
Generic identifier for markets not modeled explicitly.
POD
class-attribute
instance-attribute
¤
Italy Point of Delivery.
PRM
class-attribute
instance-attribute
¤
France Point de Reference et Mesure.
SPN
class-attribute
instance-attribute
¤
Japan Supply Point Number.
UNSPECIFIED
class-attribute
instance-attribute
¤
The market location ID type is unspecified.
ZAEHLPUNKT
class-attribute
instance-attribute
¤
Austria Zaehlpunktbezeichnung.
frequenz.client.assets.MarketLocationRef
dataclass
¤
A reference to a market-facing metering point in a specific market area.
Source code in src/frequenz/client/assets/_market_location.py
Attributes¤
market_area
instance-attribute
¤
market_area: int
The market area in which this market location is registered.
market_location_id
instance-attribute
¤
market_location_id: MarketLocationId | None
The official market location identifier.
frequenz.client.assets.MarketParticipation
dataclass
¤
A relation's participation in a specific market use case.
Source code in src/frequenz/client/assets/_market_topology.py
frequenz.client.assets.MarketParticipationType ¤
Bases: Enum
Market-related use cases for topology relations.
Source code in src/frequenz/client/assets/_market_topology.py
Attributes¤
ENERGY_TRADING
class-attribute
instance-attribute
¤
Energy trading, supply, balancing, or settlement participation.
FLEX_MARKETS
class-attribute
instance-attribute
¤
Flex-market or ancillary-service participation.
UNSPECIFIED
class-attribute
instance-attribute
¤
The market participation type is unspecified.
frequenz.client.assets.MarketTopologyRelation
dataclass
¤
A relation between a gridpool, microgrid, and market location.
Source code in src/frequenz/client/assets/_market_topology.py
Attributes¤
delivery_area
instance-attribute
¤
delivery_area: DeliveryArea | None
Delivery area in which this relation applies.
gridpool_id
instance-attribute
¤
gridpool_id: int | None
The gridpool associated with this relation.
market_location_ref
instance-attribute
¤
market_location_ref: MarketLocationRef | None
The market location associated with this relation.
microgrid_id
instance-attribute
¤
The microgrid associated with this relation.
participations
instance-attribute
¤
participations: list[MarketParticipation]
Use-case-specific participations for this relation.
frequenz.client.assets.Microgrid
dataclass
¤
A localized grouping of electricity generation, energy storage, and loads.
A microgrid is a localized grouping of electricity generation, energy storage, and loads that normally operates connected to a traditional centralized grid.
Each microgrid has a unique identifier and is associated with an enterprise account.
A key feature is that it has a physical location and is situated in a delivery area.
Key Concepts
- Physical Location: Geographical coordinates specify the exact physical location of the microgrid.
- Delivery Area: Each microgrid is part of a broader delivery area, which is crucial for energy trading and compliance.
Source code in src/frequenz/client/assets/_microgrid.py
Attributes¤
create_timestamp
instance-attribute
¤
create_timestamp: datetime
The UTC timestamp indicating when the microgrid was initially created.
delivery_area
instance-attribute
¤
delivery_area: DeliveryArea | None
The delivery area where the microgrid is located, as identified by a specific code.
enterprise_id
instance-attribute
¤
The unique identifier linking this microgrid to its parent enterprise account.
location
instance-attribute
¤
location: Location | None
Physical location of the microgrid, in geographical co-ordinates.
Methods:¤
frequenz.client.assets.MicrogridStatus ¤
Bases: Enum
The possible statuses for a microgrid.
Source code in src/frequenz/client/assets/_microgrid.py
frequenz.client.assets.Sensor
dataclass
¤
A sensor that measures a physical metric in a microgrid environment.