Commit | Line | Data |
---|---|---|
b52c969d JB |
1 | { |
2 | "$schema": "http://json-schema.org/draft-04/schema#", | |
3 | "id": "urn:OCPP:1.6:2019:12:MeterValuesRequest", | |
4 | "title": "MeterValuesRequest", | |
5 | "type": "object", | |
6 | "properties": { | |
7 | "connectorId": { | |
8 | "type": "integer" | |
9 | }, | |
10 | "transactionId": { | |
11 | "type": "integer" | |
12 | }, | |
13 | "meterValue": { | |
14 | "type": "array", | |
15 | "items": { | |
16 | "type": "object", | |
17 | "properties": { | |
18 | "timestamp": { | |
19 | "type": "string", | |
20 | "format": "date-time" | |
21 | }, | |
22 | "sampledValue": { | |
23 | "type": "array", | |
24 | "items": { | |
25 | "type": "object", | |
26 | "properties": { | |
27 | "value": { | |
28 | "type": "string" | |
29 | }, | |
30 | "context": { | |
31 | "type": "string", | |
32 | "additionalProperties": false, | |
33 | "enum": [ | |
34 | "Interruption.Begin", | |
35 | "Interruption.End", | |
36 | "Sample.Clock", | |
37 | "Sample.Periodic", | |
38 | "Transaction.Begin", | |
39 | "Transaction.End", | |
40 | "Trigger", | |
41 | "Other" | |
42 | ] | |
43 | }, | |
44 | "format": { | |
45 | "type": "string", | |
46 | "additionalProperties": false, | |
47 | "enum": ["Raw", "SignedData"] | |
48 | }, | |
49 | "measurand": { | |
50 | "type": "string", | |
51 | "additionalProperties": false, | |
52 | "enum": [ | |
53 | "Energy.Active.Export.Register", | |
54 | "Energy.Active.Import.Register", | |
55 | "Energy.Reactive.Export.Register", | |
56 | "Energy.Reactive.Import.Register", | |
57 | "Energy.Active.Export.Interval", | |
58 | "Energy.Active.Import.Interval", | |
59 | "Energy.Reactive.Export.Interval", | |
60 | "Energy.Reactive.Import.Interval", | |
61 | "Power.Active.Export", | |
62 | "Power.Active.Import", | |
63 | "Power.Offered", | |
64 | "Power.Reactive.Export", | |
65 | "Power.Reactive.Import", | |
66 | "Power.Factor", | |
67 | "Current.Import", | |
68 | "Current.Export", | |
69 | "Current.Offered", | |
70 | "Voltage", | |
71 | "Frequency", | |
72 | "Temperature", | |
73 | "SoC", | |
74 | "RPM" | |
75 | ] | |
76 | }, | |
77 | "phase": { | |
78 | "type": "string", | |
79 | "additionalProperties": false, | |
80 | "enum": ["L1", "L2", "L3", "N", "L1-N", "L2-N", "L3-N", "L1-L2", "L2-L3", "L3-L1"] | |
81 | }, | |
82 | "location": { | |
83 | "type": "string", | |
84 | "additionalProperties": false, | |
85 | "enum": ["Cable", "EV", "Inlet", "Outlet", "Body"] | |
86 | }, | |
87 | "unit": { | |
88 | "type": "string", | |
89 | "additionalProperties": false, | |
90 | "enum": [ | |
91 | "Wh", | |
92 | "kWh", | |
93 | "varh", | |
94 | "kvarh", | |
95 | "W", | |
96 | "kW", | |
97 | "VA", | |
98 | "kVA", | |
99 | "var", | |
100 | "kvar", | |
101 | "A", | |
102 | "V", | |
103 | "K", | |
104 | "Celcius", | |
105 | "Celsius", | |
106 | "Fahrenheit", | |
107 | "Percent" | |
108 | ] | |
109 | } | |
110 | }, | |
111 | "additionalProperties": false, | |
112 | "required": ["value"] | |
113 | } | |
114 | } | |
115 | }, | |
116 | "additionalProperties": false, | |
117 | "required": ["timestamp", "sampledValue"] | |
118 | } | |
119 | } | |
120 | }, | |
121 | "additionalProperties": false, | |
122 | "required": ["connectorId", "meterValue"] | |
123 | } |