MeterValues.json 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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": [
  48. "Raw",
  49. "SignedData"
  50. ]
  51. },
  52. "measurand": {
  53. "type": "string",
  54. "additionalProperties": false,
  55. "enum": [
  56. "Energy.Active.Export.Register",
  57. "Energy.Active.Import.Register",
  58. "Energy.Reactive.Export.Register",
  59. "Energy.Reactive.Import.Register",
  60. "Energy.Active.Export.Interval",
  61. "Energy.Active.Import.Interval",
  62. "Energy.Reactive.Export.Interval",
  63. "Energy.Reactive.Import.Interval",
  64. "Power.Active.Export",
  65. "Power.Active.Import",
  66. "Power.Offered",
  67. "Power.Reactive.Export",
  68. "Power.Reactive.Import",
  69. "Power.Factor",
  70. "Current.Import",
  71. "Current.Export",
  72. "Current.Offered",
  73. "Voltage",
  74. "Frequency",
  75. "Temperature",
  76. "SoC",
  77. "RPM"
  78. ]
  79. },
  80. "phase": {
  81. "type": "string",
  82. "additionalProperties": false,
  83. "enum": [
  84. "L1",
  85. "L2",
  86. "L3",
  87. "N",
  88. "L1-N",
  89. "L2-N",
  90. "L3-N",
  91. "L1-L2",
  92. "L2-L3",
  93. "L3-L1"
  94. ]
  95. },
  96. "location": {
  97. "type": "string",
  98. "additionalProperties": false,
  99. "enum": [
  100. "Cable",
  101. "EV",
  102. "Inlet",
  103. "Outlet",
  104. "Body"
  105. ]
  106. },
  107. "unit": {
  108. "type": "string",
  109. "additionalProperties": false,
  110. "enum": [
  111. "Wh",
  112. "kWh",
  113. "varh",
  114. "kvarh",
  115. "W",
  116. "kW",
  117. "VA",
  118. "kVA",
  119. "var",
  120. "kvar",
  121. "A",
  122. "V",
  123. "K",
  124. "Celcius",
  125. "Celsius",
  126. "Fahrenheit",
  127. "Percent"
  128. ]
  129. }
  130. },
  131. "additionalProperties": false,
  132. "required": [
  133. "value"
  134. ]
  135. }
  136. }
  137. },
  138. "additionalProperties": false,
  139. "required": [
  140. "timestamp",
  141. "sampledValue"
  142. ]
  143. }
  144. }
  145. },
  146. "additionalProperties": false,
  147. "required": [
  148. "connectorId",
  149. "meterValue"
  150. ]
  151. }