Skip to content

Commit 4f8adb7

Browse files
committed
Update OpenAPI spec evcc-io/evcc@b21db18
1 parent 905f8b1 commit 4f8adb7

1 file changed

Lines changed: 71 additions & 13 deletions

File tree

static/openapi.yaml

Lines changed: 71 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,6 @@ paths:
398398
properties:
399399
planId:
400400
$ref: "#/components/schemas/Id"
401-
precondition:
402-
$ref: "#/components/schemas/Precondition"
403401
- $ref: "#/components/schemas/PlanRates"
404402
/loadpoints/{id}/plan/energy:
405403
delete:
@@ -488,6 +486,33 @@ paths:
488486
responses:
489487
"200":
490488
$ref: "#/components/responses/PlanRatesResult"
489+
/loadpoints/{id}/plan/strategy:
490+
post:
491+
operationId: setLoadpointPlanStrategy
492+
summary: Set plan strategy
493+
description: "Updates the charging plan strategy for the loadpoint."
494+
externalDocs:
495+
url: https://docs.evcc.io/en/docs/features/plans
496+
tags:
497+
- loadpoints
498+
parameters:
499+
- $ref: "#/components/parameters/id"
500+
requestBody:
501+
required: true
502+
content:
503+
application/json:
504+
schema:
505+
$ref: "#/components/schemas/PlanStrategy"
506+
responses:
507+
200:
508+
description: Success
509+
content:
510+
application/json:
511+
schema:
512+
type: object
513+
properties:
514+
result:
515+
$ref: "#/components/schemas/PlanStrategy"
491516
/loadpoints/{id}/priority/{priority}:
492517
post:
493518
operationId: setLoadpointPriority
@@ -1080,10 +1105,6 @@ paths:
10801105
- $ref: "#/components/parameters/vehicleName"
10811106
- $ref: "#/components/parameters/soc"
10821107
- $ref: "#/components/parameters/timestamp"
1083-
- in: query
1084-
name: precondition
1085-
schema:
1086-
$ref: "#/components/schemas/Precondition"
10871108
responses:
10881109
"200":
10891110
description: Success
@@ -1093,7 +1114,39 @@ paths:
10931114
type: object
10941115
properties:
10951116
result:
1096-
$ref: "#/components/schemas/StaticSocPlan"
1117+
type: object
1118+
properties:
1119+
soc:
1120+
$ref: "#/components/schemas/Soc"
1121+
time:
1122+
$ref: "#/components/schemas/Timestamp"
1123+
/vehicles/{name}/plan/strategy:
1124+
post:
1125+
operationId: setVehiclePlanStrategy
1126+
summary: Set plan strategy
1127+
description: "Updates the charging plan strategy for the vehicle."
1128+
externalDocs:
1129+
url: https://docs.evcc.io/en/docs/features/plans
1130+
tags:
1131+
- vehicles
1132+
parameters:
1133+
- $ref: "#/components/parameters/vehicleName"
1134+
requestBody:
1135+
required: true
1136+
content:
1137+
application/json:
1138+
schema:
1139+
$ref: "#/components/schemas/PlanStrategy"
1140+
responses:
1141+
200:
1142+
description: Success
1143+
content:
1144+
application/json:
1145+
schema:
1146+
type: object
1147+
properties:
1148+
result:
1149+
$ref: "#/components/schemas/PlanStrategy"
10971150
components:
10981151
schemas:
10991152
BatteryMode:
@@ -1304,6 +1357,17 @@ components:
13041357
type: array
13051358
items:
13061359
$ref: "#/components/schemas/Rate"
1360+
PlanStrategy:
1361+
description: Charging plan strategy configuration
1362+
type: object
1363+
properties:
1364+
continuous:
1365+
description: "Force continuous planning"
1366+
type: boolean
1367+
precondition:
1368+
description: "Precondition duration in seconds"
1369+
type: integer
1370+
minimum: 0
13071371
RepeatingPlan:
13081372
externalDocs:
13091373
url: https://docs.evcc.io/en/docs/features/plans#repeating-plans
@@ -1312,8 +1376,6 @@ components:
13121376
active:
13131377
description: "Set plan active."
13141378
type: boolean
1315-
precondition:
1316-
$ref: "#/components/schemas/Precondition"
13171379
soc:
13181380
$ref: "#/components/schemas/Soc"
13191381
time:
@@ -1338,17 +1400,13 @@ components:
13381400
properties:
13391401
energy:
13401402
$ref: "#/components/schemas/Energy"
1341-
precondition:
1342-
$ref: "#/components/schemas/Precondition"
13431403
time:
13441404
$ref: "#/components/schemas/Timestamp"
13451405
StaticSocPlan:
13461406
externalDocs:
13471407
url: https://docs.evcc.io/en/docs/features/plans#create-charging-plan
13481408
type: object
13491409
properties:
1350-
precondition:
1351-
$ref: "#/components/schemas/Precondition"
13521410
soc:
13531411
$ref: "#/components/schemas/Soc"
13541412
time:

0 commit comments

Comments
 (0)