fix: fix permissions
[e-mobility-charging-stations-simulator.git] / src / assets / json-schemas / ocpp / 2.0 / SetChargingProfileRequest.json
CommitLineData
d270cc87 1{
98fc1389 2 "$schema": "http://json-schema.org/draft-07/schema#",
d270cc87 3 "$id": "urn:OCPP:Cp:2:2020:3:SetChargingProfileRequest",
98fc1389 4 "$comment": "OCPP 2.0.1 FINAL",
d270cc87
JB
5 "definitions": {
6 "CustomDataType": {
7 "description": "This class does not get 'AdditionalProperties = false' in the schema generation, so it can be extended with arbitrary JSON properties to allow adding custom data.",
8 "javaType": "CustomData",
9 "type": "object",
10 "properties": {
11 "vendorId": {
12 "type": "string",
13 "maxLength": 255
14 }
15 },
16 "required": ["vendorId"]
17 },
18 "ChargingProfileKindEnumType": {
19 "description": "Charging_ Profile. Charging_ Profile_ Kind. Charging_ Profile_ Kind_ Code\r\nurn:x-oca:ocpp:uid:1:569232\r\nIndicates the kind of schedule.\r\n",
20 "javaType": "ChargingProfileKindEnum",
21 "type": "string",
22 "additionalProperties": false,
23 "enum": ["Absolute", "Recurring", "Relative"]
24 },
25 "ChargingProfilePurposeEnumType": {
26 "description": "Charging_ Profile. Charging_ Profile_ Purpose. Charging_ Profile_ Purpose_ Code\r\nurn:x-oca:ocpp:uid:1:569231\r\nDefines the purpose of the schedule transferred by this profile\r\n",
27 "javaType": "ChargingProfilePurposeEnum",
28 "type": "string",
29 "additionalProperties": false,
30 "enum": [
31 "ChargingStationExternalConstraints",
32 "ChargingStationMaxProfile",
33 "TxDefaultProfile",
34 "TxProfile"
35 ]
36 },
37 "ChargingRateUnitEnumType": {
38 "description": "Charging_ Schedule. Charging_ Rate_ Unit. Charging_ Rate_ Unit_ Code\r\nurn:x-oca:ocpp:uid:1:569238\r\nThe unit of measure Limit is expressed in.\r\n",
39 "javaType": "ChargingRateUnitEnum",
40 "type": "string",
41 "additionalProperties": false,
42 "enum": ["W", "A"]
43 },
44 "CostKindEnumType": {
45 "description": "Cost. Cost_ Kind. Cost_ Kind_ Code\r\nurn:x-oca:ocpp:uid:1:569243\r\nThe kind of cost referred to in the message element amount\r\n",
46 "javaType": "CostKindEnum",
47 "type": "string",
48 "additionalProperties": false,
49 "enum": ["CarbonDioxideEmission", "RelativePricePercentage", "RenewableGenerationPercentage"]
50 },
51 "RecurrencyKindEnumType": {
52 "description": "Charging_ Profile. Recurrency_ Kind. Recurrency_ Kind_ Code\r\nurn:x-oca:ocpp:uid:1:569233\r\nIndicates the start point of a recurrence.\r\n",
53 "javaType": "RecurrencyKindEnum",
54 "type": "string",
55 "additionalProperties": false,
56 "enum": ["Daily", "Weekly"]
57 },
58 "ChargingProfileType": {
59 "description": "Charging_ Profile\r\nurn:x-oca:ocpp:uid:2:233255\r\nA ChargingProfile consists of ChargingSchedule, describing the amount of power or current that can be delivered per time interval.\r\n",
60 "javaType": "ChargingProfile",
61 "type": "object",
62 "additionalProperties": false,
63 "properties": {
64 "customData": {
65 "$ref": "#/definitions/CustomDataType"
66 },
67 "id": {
68 "description": "Identified_ Object. MRID. Numeric_ Identifier\r\nurn:x-enexis:ecdm:uid:1:569198\r\nId of ChargingProfile.\r\n",
69 "type": "integer"
70 },
71 "stackLevel": {
72 "description": "Charging_ Profile. Stack_ Level. Counter\r\nurn:x-oca:ocpp:uid:1:569230\r\nValue determining level in hierarchy stack of profiles. Higher values have precedence over lower values. Lowest level is 0.\r\n",
73 "type": "integer"
74 },
75 "chargingProfilePurpose": {
76 "$ref": "#/definitions/ChargingProfilePurposeEnumType"
77 },
78 "chargingProfileKind": {
79 "$ref": "#/definitions/ChargingProfileKindEnumType"
80 },
81 "recurrencyKind": {
82 "$ref": "#/definitions/RecurrencyKindEnumType"
83 },
84 "validFrom": {
85 "description": "Charging_ Profile. Valid_ From. Date_ Time\r\nurn:x-oca:ocpp:uid:1:569234\r\nPoint in time at which the profile starts to be valid. If absent, the profile is valid as soon as it is received by the Charging Station.\r\n",
86 "type": "string",
87 "format": "date-time"
88 },
89 "validTo": {
90 "description": "Charging_ Profile. Valid_ To. Date_ Time\r\nurn:x-oca:ocpp:uid:1:569235\r\nPoint in time at which the profile stops to be valid. If absent, the profile is valid until it is replaced by another profile.\r\n",
91 "type": "string",
92 "format": "date-time"
93 },
94 "chargingSchedule": {
95 "type": "array",
96 "additionalItems": false,
97 "items": {
98 "$ref": "#/definitions/ChargingScheduleType"
99 },
100 "minItems": 1,
101 "maxItems": 3
102 },
103 "transactionId": {
104 "description": "SHALL only be included if ChargingProfilePurpose is set to TxProfile. The transactionId is used to match the profile to a specific transaction.\r\n",
105 "type": "string",
106 "maxLength": 36
107 }
108 },
109 "required": [
110 "id",
111 "stackLevel",
112 "chargingProfilePurpose",
113 "chargingProfileKind",
114 "chargingSchedule"
115 ]
116 },
117 "ChargingSchedulePeriodType": {
118 "description": "Charging_ Schedule_ Period\r\nurn:x-oca:ocpp:uid:2:233257\r\nCharging schedule period structure defines a time period in a charging schedule.\r\n",
119 "javaType": "ChargingSchedulePeriod",
120 "type": "object",
121 "additionalProperties": false,
122 "properties": {
123 "customData": {
124 "$ref": "#/definitions/CustomDataType"
125 },
126 "startPeriod": {
127 "description": "Charging_ Schedule_ Period. Start_ Period. Elapsed_ Time\r\nurn:x-oca:ocpp:uid:1:569240\r\nStart of the period, in seconds from the start of schedule. The value of StartPeriod also defines the stop time of the previous period.\r\n",
128 "type": "integer"
129 },
130 "limit": {
131 "description": "Charging_ Schedule_ Period. Limit. Measure\r\nurn:x-oca:ocpp:uid:1:569241\r\nCharging rate limit during the schedule period, in the applicable chargingRateUnit, for example in Amperes (A) or Watts (W). Accepts at most one digit fraction (e.g. 8.1).\r\n",
132 "type": "number"
133 },
134 "numberPhases": {
135 "description": "Charging_ Schedule_ Period. Number_ Phases. Counter\r\nurn:x-oca:ocpp:uid:1:569242\r\nThe number of phases that can be used for charging. If a number of phases is needed, numberPhases=3 will be assumed unless another number is given.\r\n",
136 "type": "integer"
137 },
138 "phaseToUse": {
139 "description": "Values: 1..3, Used if numberPhases=1 and if the EVSE is capable of switching the phase connected to the EV, i.e. ACPhaseSwitchingSupported is defined and true. It’s not allowed unless both conditions above are true. If both conditions are true, and phaseToUse is omitted, the Charging Station / EVSE will make the selection on its own.\r\n\r\n",
140 "type": "integer"
141 }
142 },
143 "required": ["startPeriod", "limit"]
144 },
145 "ChargingScheduleType": {
146 "description": "Charging_ Schedule\r\nurn:x-oca:ocpp:uid:2:233256\r\nCharging schedule structure defines a list of charging periods, as used in: GetCompositeSchedule.conf and ChargingProfile. \r\n",
147 "javaType": "ChargingSchedule",
148 "type": "object",
149 "additionalProperties": false,
150 "properties": {
151 "customData": {
152 "$ref": "#/definitions/CustomDataType"
153 },
154 "id": {
155 "description": "Identifies the ChargingSchedule.\r\n",
156 "type": "integer"
157 },
158 "startSchedule": {
159 "description": "Charging_ Schedule. Start_ Schedule. Date_ Time\r\nurn:x-oca:ocpp:uid:1:569237\r\nStarting point of an absolute schedule. If absent the schedule will be relative to start of charging.\r\n",
160 "type": "string",
161 "format": "date-time"
162 },
163 "duration": {
164 "description": "Charging_ Schedule. Duration. Elapsed_ Time\r\nurn:x-oca:ocpp:uid:1:569236\r\nDuration of the charging schedule in seconds. If the duration is left empty, the last period will continue indefinitely or until end of the transaction if chargingProfilePurpose = TxProfile.\r\n",
165 "type": "integer"
166 },
167 "chargingRateUnit": {
168 "$ref": "#/definitions/ChargingRateUnitEnumType"
169 },
170 "chargingSchedulePeriod": {
171 "type": "array",
172 "additionalItems": false,
173 "items": {
174 "$ref": "#/definitions/ChargingSchedulePeriodType"
175 },
176 "minItems": 1,
177 "maxItems": 1024
178 },
179 "minChargingRate": {
180 "description": "Charging_ Schedule. Min_ Charging_ Rate. Numeric\r\nurn:x-oca:ocpp:uid:1:569239\r\nMinimum charging rate supported by the EV. The unit of measure is defined by the chargingRateUnit. This parameter is intended to be used by a local smart charging algorithm to optimize the power allocation for in the case a charging process is inefficient at lower charging rates. Accepts at most one digit fraction (e.g. 8.1)\r\n",
181 "type": "number"
182 },
183 "salesTariff": {
184 "$ref": "#/definitions/SalesTariffType"
185 }
186 },
187 "required": ["id", "chargingRateUnit", "chargingSchedulePeriod"]
188 },
189 "ConsumptionCostType": {
190 "description": "Consumption_ Cost\r\nurn:x-oca:ocpp:uid:2:233259\r\n",
191 "javaType": "ConsumptionCost",
192 "type": "object",
193 "additionalProperties": false,
194 "properties": {
195 "customData": {
196 "$ref": "#/definitions/CustomDataType"
197 },
198 "startValue": {
199 "description": "Consumption_ Cost. Start_ Value. Numeric\r\nurn:x-oca:ocpp:uid:1:569246\r\nThe lowest level of consumption that defines the starting point of this consumption block. The block interval extends to the start of the next interval.\r\n",
200 "type": "number"
201 },
202 "cost": {
203 "type": "array",
204 "additionalItems": false,
205 "items": {
206 "$ref": "#/definitions/CostType"
207 },
208 "minItems": 1,
209 "maxItems": 3
210 }
211 },
212 "required": ["startValue", "cost"]
213 },
214 "CostType": {
215 "description": "Cost\r\nurn:x-oca:ocpp:uid:2:233258\r\n",
216 "javaType": "Cost",
217 "type": "object",
218 "additionalProperties": false,
219 "properties": {
220 "customData": {
221 "$ref": "#/definitions/CustomDataType"
222 },
223 "costKind": {
224 "$ref": "#/definitions/CostKindEnumType"
225 },
226 "amount": {
227 "description": "Cost. Amount. Amount\r\nurn:x-oca:ocpp:uid:1:569244\r\nThe estimated or actual cost per kWh\r\n",
228 "type": "integer"
229 },
230 "amountMultiplier": {
231 "description": "Cost. Amount_ Multiplier. Integer\r\nurn:x-oca:ocpp:uid:1:569245\r\nValues: -3..3, The amountMultiplier defines the exponent to base 10 (dec). The final value is determined by: amount * 10 ^ amountMultiplier\r\n",
232 "type": "integer"
233 }
234 },
235 "required": ["costKind", "amount"]
236 },
237 "RelativeTimeIntervalType": {
238 "description": "Relative_ Timer_ Interval\r\nurn:x-oca:ocpp:uid:2:233270\r\n",
239 "javaType": "RelativeTimeInterval",
240 "type": "object",
241 "additionalProperties": false,
242 "properties": {
243 "customData": {
244 "$ref": "#/definitions/CustomDataType"
245 },
246 "start": {
247 "description": "Relative_ Timer_ Interval. Start. Elapsed_ Time\r\nurn:x-oca:ocpp:uid:1:569279\r\nStart of the interval, in seconds from NOW.\r\n",
248 "type": "integer"
249 },
250 "duration": {
251 "description": "Relative_ Timer_ Interval. Duration. Elapsed_ Time\r\nurn:x-oca:ocpp:uid:1:569280\r\nDuration of the interval, in seconds.\r\n",
252 "type": "integer"
253 }
254 },
255 "required": ["start"]
256 },
257 "SalesTariffEntryType": {
258 "description": "Sales_ Tariff_ Entry\r\nurn:x-oca:ocpp:uid:2:233271\r\n",
259 "javaType": "SalesTariffEntry",
260 "type": "object",
261 "additionalProperties": false,
262 "properties": {
263 "customData": {
264 "$ref": "#/definitions/CustomDataType"
265 },
266 "relativeTimeInterval": {
267 "$ref": "#/definitions/RelativeTimeIntervalType"
268 },
269 "ePriceLevel": {
270 "description": "Sales_ Tariff_ Entry. E_ Price_ Level. Unsigned_ Integer\r\nurn:x-oca:ocpp:uid:1:569281\r\nDefines the price level of this SalesTariffEntry (referring to NumEPriceLevels). Small values for the EPriceLevel represent a cheaper TariffEntry. Large values for the EPriceLevel represent a more expensive TariffEntry.\r\n",
271 "type": "integer",
272 "minimum": 0.0
273 },
274 "consumptionCost": {
275 "type": "array",
276 "additionalItems": false,
277 "items": {
278 "$ref": "#/definitions/ConsumptionCostType"
279 },
280 "minItems": 1,
281 "maxItems": 3
282 }
283 },
284 "required": ["relativeTimeInterval"]
285 },
286 "SalesTariffType": {
287 "description": "Sales_ Tariff\r\nurn:x-oca:ocpp:uid:2:233272\r\nNOTE: This dataType is based on dataTypes from <<ref-ISOIEC15118-2,ISO 15118-2>>.\r\n",
288 "javaType": "SalesTariff",
289 "type": "object",
290 "additionalProperties": false,
291 "properties": {
292 "customData": {
293 "$ref": "#/definitions/CustomDataType"
294 },
295 "id": {
296 "description": "Identified_ Object. MRID. Numeric_ Identifier\r\nurn:x-enexis:ecdm:uid:1:569198\r\nSalesTariff identifier used to identify one sales tariff. An SAID remains a unique identifier for one schedule throughout a charging session.\r\n",
297 "type": "integer"
298 },
299 "salesTariffDescription": {
300 "description": "Sales_ Tariff. Sales. Tariff_ Description\r\nurn:x-oca:ocpp:uid:1:569283\r\nA human readable title/short description of the sales tariff e.g. for HMI display purposes.\r\n",
301 "type": "string",
302 "maxLength": 32
303 },
304 "numEPriceLevels": {
305 "description": "Sales_ Tariff. Num_ E_ Price_ Levels. Counter\r\nurn:x-oca:ocpp:uid:1:569284\r\nDefines the overall number of distinct price levels used across all provided SalesTariff elements.\r\n",
306 "type": "integer"
307 },
308 "salesTariffEntry": {
309 "type": "array",
310 "additionalItems": false,
311 "items": {
312 "$ref": "#/definitions/SalesTariffEntryType"
313 },
314 "minItems": 1,
315 "maxItems": 1024
316 }
317 },
318 "required": ["id", "salesTariffEntry"]
319 }
320 },
321 "type": "object",
322 "additionalProperties": false,
323 "properties": {
324 "customData": {
325 "$ref": "#/definitions/CustomDataType"
326 },
327 "evseId": {
328 "description": "For TxDefaultProfile an evseId=0 applies the profile to each individual evse. For ChargingStationMaxProfile and ChargingStationExternalConstraints an evseId=0 contains an overal limit for the whole Charging Station.\r\n",
329 "type": "integer"
330 },
331 "chargingProfile": {
332 "$ref": "#/definitions/ChargingProfileType"
333 }
334 },
335 "required": ["evseId", "chargingProfile"]
336}