Debian Codegraph @

ocpp/v16/schemas/MeterValues.json

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