Repository navigation
Tags
Tags
# Frequenz Assets API Client Release Notes ## New Features - Electrical components now provide `provides_telemetry()` and `accepts_control()` to interpret the requested operational mode. Both methods raise `ValueError` for unspecified or unrecognized modes. These results describe the requested configuration, not the device's current state.
# Frequenz Assets API Client Release Notes ## New Features - Electrical components now expose `operational_mode` with the requested mode returned by Assets v0.1.1. Known values use `ElectricalComponentOperationalMode`; unknown values remain integers. The default is `UNSPECIFIED` when the server does not supply a mode. This value does not confirm that the mode is applied.
# Frequenz Assets API Client Release Notes ## Summary <!-- Here goes a general summary of what this release is about --> ## Upgrading <!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with --> * Updated `frequenz-api-assets` to `0.3.0`, replacing the old `assets.v1` generated API with `platformassets.v1alpha1`. ## New Features <!-- Here goes the main new features and examples or instructions on how to use them --> * Added client methods for the new `platformassets.v1alpha1` RPCs: `list_gridpools()`, `list_gridpool_energy_schedules()`, `list_market_topology_relations()`, `list_microgrids()`, and `list_microgrid_sensors()`. * Added `component_ids` and `categories` filters to `list_microgrid_electrical_components()`. ## Bug Fixes <!-- Here goes notable bug fixes that are worth a special mention or explanation -->
# Frequenz Assets API Client Release Notes ## New Features The client methods now accept an optional `raise_on_error` argument. When set to `True`, the client will raise a exceptions for any entity that doesn't pass validation instead of filtering out unvalid entities and returning only valid ones (which is still the default).
# Frequenz Assets API Client Release Notes ## Summary This release adds support for retrieving microgrid electrical component connections through a new client method and CLI command. ## Upgrading - The `get_microgrid` and `list_microgrid_electrical_components` methods now expect an argument of type `MicrogridId`, instead of an `int`. - The `PvInverter` type has been renamed to `SolarInverter`, to be compatible with the microgrid api client. ## New Features - This exposes the abstract `Battery`, `EvCharger` and `Inverter` types. ### Component Connections API * **New `ComponentConnection` class**: Introduced to represent connections between electrical components in a microgrid * **New client method**: Added method to retrieve microgrid electrical component connections * **CLI command extension**: Added `component-connections` command to list component connections ## Bug Fixes <!-- No bug fixes in this release -->
# Frequenz Assets API Client Release Notes ## Summary This release adds support for retrieving microgrid electrical component connections through a new client method and CLI command. ## Upgrading No migration required. This is a backward-compatible feature addition. ## New Features ### Component Connections API * **New `ComponentConnection` class**: Introduced to represent connections between electrical components in a microgrid * **New client method**: Added method to retrieve microgrid electrical component connections * **CLI command extension**: Added `component-connections` command to list component connections ## Bug Fixes <!-- No bug fixes in this release -->
# Frequenz Assets API Client Release Notes ## Summary This release updates the `frequenz-api-assets` dependency to use a version range instead of a specific Git reference, providing more flexibility for dependency updates while maintaining compatibility. ## Changes ### Dependency Updates * **Updated `frequenz-api-assets` dependency**: * Changed from Git reference (`@ git+https://github.com/frequenz-floss/frequenz-api-assets.git@v0.x.x`) to version range (`>= 0.1.0, < 0.2.0`) * Enables automatic updates within the specified version range * Maintains backward compatibility while reducing maintenance overhead ## Benefits * **Improved dependency management**: Version ranges allow for automatic updates within the specified range * **Better compatibility**: Ensures compatibility with the project while allowing for patch and minor version updates * **Reduced maintenance overhead**: Eliminates the need to manually update Git references for compatible versions ## Migration Notes No migration required. This is a transparent dependency update that maintains full backward compatibility. ## Files Changed * `pyproject.toml`: Updated the `frequenz-api-assets` dependency specification ## Type of Change * [x] Dependency update
# Frequenz Assets API Client Release Notes ## Summary This release introduces a Assets API client with CLI support for interacting with Frequenz microgrid assets. It provides comprehensive electrical components functionality including batteries, EV chargers, inverters, and grid connection points, with enhanced type safety and error handling. ## New Features * **Assets API Client**: * `list_electrical_components()` method for retrieving electrical components in a microgrid * **Electrical Components Support**: Comprehensive data classes for electrical components * `ElectricalComponent` with category-specific information for batteries, EV chargers, inverters, grid connection points, and power transformers * Battery types: Li-ion, Na-ion with proper enum mapping * EV charger types: AC, DC, Hybrid charging support * Operational lifetime tracking and metric configuration bounds * **Command-Line Interface**: * `assets-cli electrical-components <microgrid-id>` command * **Type System**: Enhanced data classes with protobuf integration * `Microgrid`, `DeliveryArea`, `Location`, and comprehensive electrical component types * Proper enum mapping: `BatteryType`, `EvChargerType`, `InverterType`, `Metric` ## Bug Fixes