Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.6 KB

File metadata and controls

36 lines (27 loc) · 1.6 KB

Frequenz Dispatch Client Library Release Notes

Summary

While the new TargetCategory class supports subtypes, only reading them is currently available; setting subtypes will be introduced in a future release.

Upgrading

  • TargetComponents was reworked. It now is a type alias for TargetIds | TargetCategories:
  • TargetIds can be used to specify one or more specific target IDs:
  • TargetIds(1, 2, 3) or
  • TargetIds(ComponentIds(1), ComponentIds(2), ComponentIds(3))
  • TargetCategories can be used to specify one or more target categories:
  • TargetCategories(ComponentCategory.BATTERY, ComponentCategory.INVERTER)

New Features

  • With the new TargetCategory class (providing .category and .type) we can now specify subtypes of the categories:
  • ComponentCategory.BATTERY uses BatteryType with possible values: LI_ION, NA_ION
  • ComponentCategory.INVERTER uses InverterType with possible values: BATTERY, SOLAR, HYBRID
  • ComponentCategory.EV_CHARGER uses EvChargerType: with possible values AC, DC, HYBRID
  • A few examples on how to use the new TargetCategory:
    • TargetCategory(BatteryType.LI_ION)
      • category is ComponentCategory.BATTERY
      • type is BatteryType.LI_ION
    • TargetCategory(ComponentCategory.BATTERY)
      • category is ComponentCategory.BATTERY
      • type is None
    • TargetCategories(InverterType.SOLAR)
      • category is ComponentCategory.INVERTER
      • type is InverterType.SOLAR

Bug Fixes