-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add random delay according to UK smart charging regulations to EvseManager and API modules. The feature is disabled by default. It can be controlled at runtime using the random_delay implementation. Includes changes required by changed type of composite schedules in libocpp from ChargingSchedule to EnhancedChargingSchedule, which includes stackLevel in EnhancedChargingSchedulePeriods Signed-off-by: Cornelius Claussen <[email protected]> Co-authored-by: Kai Hermann <[email protected]> Co-authored-by: James Chapman <[email protected]>
- Loading branch information
1 parent
8cc7da8
commit b172bb0
Showing
20 changed files
with
549 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
description: >- | ||
This interface provides functions for a random delay feature as required by the UK smart charging regulations | ||
The logic whether to use a random delay or not is not included in EvseManager, a different module can use this | ||
interface to enable/disable the feature during runtime and cancel a running random delay. | ||
This always applies to all connectors of this EVSE. | ||
By default, on start up, random delays are disabled. | ||
cmds: | ||
enable: | ||
description: Call to enable the random delay feature | ||
disable: | ||
description: Call to disable the random delay feature | ||
cancel: | ||
description: Cancels a running random delay. The effect is the same as if the time expired just now. | ||
set_duration_s: | ||
description: Set the maximum duration of the random delay. Default is 600 seconds. | ||
arguments: | ||
value: | ||
description: Maximum duration in seconds | ||
type: integer | ||
vars: | ||
countdown: | ||
description: Countdown of the currently running random delay | ||
type: object | ||
$ref: /uk_random_delay#/CountDown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.