Skip to content

Commit

Permalink
swagger.yml, evse.cpp: add current_min post param for non-standard EVs
Browse files Browse the repository at this point in the history
  • Loading branch information
dingo35 committed May 13, 2023
1 parent a61fc07 commit b6b1708
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions SmartEVSE-3/src/evse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3189,6 +3189,17 @@ void StartwebServer(void) {
doc["Backlight"] = backlight;
}

if(request->hasParam("current_min")) {
int current = request->getParam("current_min")->value().toInt();
if(current >= 6 && current <= 16) {
MinCurrent = current;
doc["current_min"] = MinCurrent;
write_settings();
} else {
doc["current_min"] = "Value not allowed!";
}
}

if(request->hasParam("disable_override_current")) {
OverrideCurrent = 0;
doc["disable_override_current"] = "OK";
Expand Down
10 changes: 10 additions & 0 deletions SmartEVSE-3/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,16 @@ paths:
required: false
schema:
type: integer
- in: query
name: current_min
description: |-
The Minimum Charging Current in Ampères, per phase. Usually you should leave this setting at its default value (6A) since this is standarized.
Note: This setting is useful for EV's that don't obey standards, like the Renault Zoe, whose MinCurrents not only differ from the standard, but also change when charging at 1 phase and charging at 2 phases. The values even differ per build year.
Examples: <br />
If you want the car to start charging at minimally 6A, the value to be sent is <b>6</b> <br />
required: false
schema:
type: integer
- in: query
name: solar_max_import
description: |-
Expand Down

0 comments on commit b6b1708

Please sign in to comment.