EVChargingTariffElementCondition (API Reference)
Class EVChargingTariffElementCondition
Condition that the charging session needs to meet to apply the tariff element. Tariff elements may include conditions that define when they apply:
- Time of day (e.g., 22:00–06:00)
- Day of week (e.g., weekends only)
- Date range (e.g., seasonal pricing)
- Charging session duration
- Battery level thresholds (e.g., overstay fees)
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
-
Field Summary
FieldsModifier and TypeFieldDescriptionDate range when the tariff element is valid.Day(s) of the week when the tariff element is valid.Duration of the charging session when the tariff element is valid, in seconds.Minimum battery level when the tariff element is valid, in percentages.Time period when the tariff element is valid, in local time. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
date
Date range when the tariff element is valid. This is typically used to indicate seasonal tariffs or to announce an update to the tariff in advance. It may also be used to indicate spot prices, together with time period.
-
days
Day(s) of the week when the tariff element is valid. An example would be to specify lower prices for weekends
-
time
Time period when the tariff element is valid, in local time. The time period wraps around to the next day, when end time of the period
TimeOfDayRange.tois smaller than the beginningTimeOfDayRange.from. -
duration
Duration of the charging session when the tariff element is valid, in seconds.
Often only either one of the values is present, indicating the minimum or maximum duration.
-
overstayBatteryLevel
Minimum battery level when the tariff element is valid, in percentages. This can be used to set additional fees for charging a full or nearly full battery.
-
-
Constructor Details
-
EVChargingTariffElementCondition
public EVChargingTariffElementCondition()Creates a new instance.
-
-
Method Details