kirby-ocpp 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +129 -0
- package/THIRD_PARTY_NOTICES.md +15 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +72 -0
- package/dist/config.d.ts +2 -0
- package/dist/config.js +53 -0
- package/dist/ocpp/client.d.ts +59 -0
- package/dist/ocpp/client.js +294 -0
- package/dist/ocpp/schema-validator.d.ts +15 -0
- package/dist/ocpp/schema-validator.js +75 -0
- package/dist/ocpp/schemas/json/Authorize.json +16 -0
- package/dist/ocpp/schemas/json/AuthorizeResponse.json +40 -0
- package/dist/ocpp/schemas/json/BootNotification.json +49 -0
- package/dist/ocpp/schemas/json/BootNotificationResponse.json +30 -0
- package/dist/ocpp/schemas/json/CancelReservation.json +15 -0
- package/dist/ocpp/schemas/json/CancelReservationResponse.json +20 -0
- package/dist/ocpp/schemas/json/ChangeAvailability.json +24 -0
- package/dist/ocpp/schemas/json/ChangeAvailabilityResponse.json +21 -0
- package/dist/ocpp/schemas/json/ChangeConfiguration.json +21 -0
- package/dist/ocpp/schemas/json/ChangeConfigurationResponse.json +22 -0
- package/dist/ocpp/schemas/json/ClearCache.json +8 -0
- package/dist/ocpp/schemas/json/ClearCacheResponse.json +20 -0
- package/dist/ocpp/schemas/json/ClearChargingProfile.json +27 -0
- package/dist/ocpp/schemas/json/ClearChargingProfileResponse.json +20 -0
- package/dist/ocpp/schemas/json/DataTransfer.json +23 -0
- package/dist/ocpp/schemas/json/DataTransferResponse.json +25 -0
- package/dist/ocpp/schemas/json/DiagnosticsStatusNotification.json +22 -0
- package/dist/ocpp/schemas/json/DiagnosticsStatusNotificationResponse.json +8 -0
- package/dist/ocpp/schemas/json/FirmwareStatusNotification.json +25 -0
- package/dist/ocpp/schemas/json/FirmwareStatusNotificationResponse.json +8 -0
- package/dist/ocpp/schemas/json/GetCompositeSchedule.json +27 -0
- package/dist/ocpp/schemas/json/GetCompositeScheduleResponse.json +79 -0
- package/dist/ocpp/schemas/json/GetConfiguration.json +16 -0
- package/dist/ocpp/schemas/json/GetConfigurationResponse.json +40 -0
- package/dist/ocpp/schemas/json/GetDiagnostics.json +30 -0
- package/dist/ocpp/schemas/json/GetDiagnosticsResponse.json +13 -0
- package/dist/ocpp/schemas/json/GetLocalListVersion.json +8 -0
- package/dist/ocpp/schemas/json/GetLocalListVersionResponse.json +15 -0
- package/dist/ocpp/schemas/json/Heartbeat.json +8 -0
- package/dist/ocpp/schemas/json/HeartbeatResponse.json +16 -0
- package/dist/ocpp/schemas/json/MeterValues.json +151 -0
- package/dist/ocpp/schemas/json/MeterValuesResponse.json +8 -0
- package/dist/ocpp/schemas/json/RemoteStartTransaction.json +127 -0
- package/dist/ocpp/schemas/json/RemoteStartTransactionResponse.json +20 -0
- package/dist/ocpp/schemas/json/RemoteStopTransaction.json +15 -0
- package/dist/ocpp/schemas/json/RemoteStopTransactionResponse.json +20 -0
- package/dist/ocpp/schemas/json/ReserveNow.json +33 -0
- package/dist/ocpp/schemas/json/ReserveNowResponse.json +23 -0
- package/dist/ocpp/schemas/json/Reset.json +20 -0
- package/dist/ocpp/schemas/json/ResetResponse.json +20 -0
- package/dist/ocpp/schemas/json/SendLocalList.json +68 -0
- package/dist/ocpp/schemas/json/SendLocalListResponse.json +22 -0
- package/dist/ocpp/schemas/json/SetChargingProfile.json +124 -0
- package/dist/ocpp/schemas/json/SetChargingProfileResponse.json +21 -0
- package/dist/ocpp/schemas/json/StartTransaction.json +32 -0
- package/dist/ocpp/schemas/json/StartTransactionResponse.json +44 -0
- package/dist/ocpp/schemas/json/StatusNotification.json +70 -0
- package/dist/ocpp/schemas/json/StatusNotificationResponse.json +8 -0
- package/dist/ocpp/schemas/json/StopTransaction.json +177 -0
- package/dist/ocpp/schemas/json/StopTransactionResponse.json +37 -0
- package/dist/ocpp/schemas/json/TriggerMessage.json +27 -0
- package/dist/ocpp/schemas/json/TriggerMessageResponse.json +21 -0
- package/dist/ocpp/schemas/json/UnlockConnector.json +15 -0
- package/dist/ocpp/schemas/json/UnlockConnectorResponse.json +21 -0
- package/dist/ocpp/schemas/json/UpdateFirmware.json +27 -0
- package/dist/ocpp/schemas/json/UpdateFirmwareResponse.json +8 -0
- package/dist/ocpp/types.d.ts +106 -0
- package/dist/ocpp/types.js +1 -0
- package/dist/station/authorization.d.ts +20 -0
- package/dist/station/authorization.js +78 -0
- package/dist/station/charging-profile-registry.d.ts +18 -0
- package/dist/station/charging-profile-registry.js +125 -0
- package/dist/station/configuration-commands.d.ts +11 -0
- package/dist/station/configuration-commands.js +29 -0
- package/dist/station/configuration-registry.d.ts +13 -0
- package/dist/station/configuration-registry.js +39 -0
- package/dist/station/configuration.d.ts +7 -0
- package/dist/station/configuration.js +88 -0
- package/dist/station/connector-registry.d.ts +25 -0
- package/dist/station/connector-registry.js +89 -0
- package/dist/station/connector-status.d.ts +7 -0
- package/dist/station/connector-status.js +66 -0
- package/dist/station/local-auth-list.d.ts +8 -0
- package/dist/station/local-auth-list.js +31 -0
- package/dist/station/maintenance-lifecycle.d.ts +25 -0
- package/dist/station/maintenance-lifecycle.js +110 -0
- package/dist/station/meter-value-scheduler.d.ts +21 -0
- package/dist/station/meter-value-scheduler.js +78 -0
- package/dist/station/metering.d.ts +15 -0
- package/dist/station/metering.js +138 -0
- package/dist/station/ocpp-message.d.ts +2 -0
- package/dist/station/ocpp-message.js +9 -0
- package/dist/station/offline-transaction-sync.d.ts +29 -0
- package/dist/station/offline-transaction-sync.js +99 -0
- package/dist/station/payload.d.ts +4 -0
- package/dist/station/payload.js +12 -0
- package/dist/station/persistence.d.ts +28 -0
- package/dist/station/persistence.js +206 -0
- package/dist/station/reservation-rules.d.ts +3 -0
- package/dist/station/reservation-rules.js +18 -0
- package/dist/station/reservation-scheduler.d.ts +11 -0
- package/dist/station/reservation-scheduler.js +33 -0
- package/dist/station/smart-charging.d.ts +45 -0
- package/dist/station/smart-charging.js +251 -0
- package/dist/station/status-scheduler.d.ts +16 -0
- package/dist/station/status-scheduler.js +58 -0
- package/dist/station/transaction-message-retry.d.ts +3 -0
- package/dist/station/transaction-message-retry.js +7 -0
- package/dist/station/transaction-rules.d.ts +7 -0
- package/dist/station/transaction-rules.js +34 -0
- package/dist/station/trigger-message.d.ts +2 -0
- package/dist/station/trigger-message.js +11 -0
- package/dist/station-store.d.ts +41 -0
- package/dist/station-store.js +104 -0
- package/dist/station.d.ts +112 -0
- package/dist/station.js +1201 -0
- package/dist/tui.d.ts +95 -0
- package/dist/tui.js +1601 -0
- package/docs/OCPP_1.6J_CONFORMANCE.md +61 -0
- package/package.json +62 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
"id": "urn:OCPP:1.6:2019:12:SendLocalListResponse",
|
|
4
|
+
"title": "SendLocalListResponse",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"status": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"enum": [
|
|
11
|
+
"Accepted",
|
|
12
|
+
"Failed",
|
|
13
|
+
"NotSupported",
|
|
14
|
+
"VersionMismatch"
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"additionalProperties": false,
|
|
19
|
+
"required": [
|
|
20
|
+
"status"
|
|
21
|
+
]
|
|
22
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
"id": "urn:OCPP:1.6:2019:12:SetChargingProfileRequest",
|
|
4
|
+
"title": "SetChargingProfileRequest",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"connectorId": {
|
|
8
|
+
"type": "integer"
|
|
9
|
+
},
|
|
10
|
+
"csChargingProfiles": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"chargingProfileId": {
|
|
14
|
+
"type": "integer"
|
|
15
|
+
},
|
|
16
|
+
"transactionId": {
|
|
17
|
+
"type": "integer"
|
|
18
|
+
},
|
|
19
|
+
"stackLevel": {
|
|
20
|
+
"type": "integer"
|
|
21
|
+
},
|
|
22
|
+
"chargingProfilePurpose": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"enum": [
|
|
26
|
+
"ChargePointMaxProfile",
|
|
27
|
+
"TxDefaultProfile",
|
|
28
|
+
"TxProfile"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"chargingProfileKind": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"additionalProperties": false,
|
|
34
|
+
"enum": [
|
|
35
|
+
"Absolute",
|
|
36
|
+
"Recurring",
|
|
37
|
+
"Relative"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"recurrencyKind": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"additionalProperties": false,
|
|
43
|
+
"enum": [
|
|
44
|
+
"Daily",
|
|
45
|
+
"Weekly"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"validFrom": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"format": "date-time"
|
|
51
|
+
},
|
|
52
|
+
"validTo": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"format": "date-time"
|
|
55
|
+
},
|
|
56
|
+
"chargingSchedule": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"properties": {
|
|
59
|
+
"duration": {
|
|
60
|
+
"type": "integer"
|
|
61
|
+
},
|
|
62
|
+
"startSchedule": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"format": "date-time"
|
|
65
|
+
},
|
|
66
|
+
"chargingRateUnit": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"additionalProperties": false,
|
|
69
|
+
"enum": [
|
|
70
|
+
"A",
|
|
71
|
+
"W"
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"chargingSchedulePeriod": {
|
|
75
|
+
"type": "array",
|
|
76
|
+
"items": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"properties": {
|
|
79
|
+
"startPeriod": {
|
|
80
|
+
"type": "integer"
|
|
81
|
+
},
|
|
82
|
+
"limit": {
|
|
83
|
+
"type": "number",
|
|
84
|
+
"multipleOf" : 0.1
|
|
85
|
+
},
|
|
86
|
+
"numberPhases": {
|
|
87
|
+
"type": "integer"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"additionalProperties": false,
|
|
91
|
+
"required": [
|
|
92
|
+
"startPeriod",
|
|
93
|
+
"limit"
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"minChargingRate": {
|
|
98
|
+
"type": "number",
|
|
99
|
+
"multipleOf" : 0.1
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"additionalProperties": false,
|
|
103
|
+
"required": [
|
|
104
|
+
"chargingRateUnit",
|
|
105
|
+
"chargingSchedulePeriod"
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"additionalProperties": false,
|
|
110
|
+
"required": [
|
|
111
|
+
"chargingProfileId",
|
|
112
|
+
"stackLevel",
|
|
113
|
+
"chargingProfilePurpose",
|
|
114
|
+
"chargingProfileKind",
|
|
115
|
+
"chargingSchedule"
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"additionalProperties": false,
|
|
120
|
+
"required": [
|
|
121
|
+
"connectorId",
|
|
122
|
+
"csChargingProfiles"
|
|
123
|
+
]
|
|
124
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
"id": "urn:OCPP:1.6:2019:12:SetChargingProfileResponse",
|
|
4
|
+
"title": "SetChargingProfileResponse",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"status": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"enum": [
|
|
11
|
+
"Accepted",
|
|
12
|
+
"Rejected",
|
|
13
|
+
"NotSupported"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"additionalProperties": false,
|
|
18
|
+
"required": [
|
|
19
|
+
"status"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
"id": "urn:OCPP:1.6:2019:12:StartTransactionRequest",
|
|
4
|
+
"title": "StartTransactionRequest",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"connectorId": {
|
|
8
|
+
"type": "integer"
|
|
9
|
+
},
|
|
10
|
+
"idTag": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"maxLength": 20
|
|
13
|
+
},
|
|
14
|
+
"meterStart": {
|
|
15
|
+
"type": "integer"
|
|
16
|
+
},
|
|
17
|
+
"reservationId": {
|
|
18
|
+
"type": "integer"
|
|
19
|
+
},
|
|
20
|
+
"timestamp": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"format": "date-time"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"additionalProperties": false,
|
|
26
|
+
"required": [
|
|
27
|
+
"connectorId",
|
|
28
|
+
"idTag",
|
|
29
|
+
"meterStart",
|
|
30
|
+
"timestamp"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
"id": "urn:OCPP:1.6:2019:12:StartTransactionResponse",
|
|
4
|
+
"title": "StartTransactionResponse",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"idTagInfo": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"expiryDate": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"format": "date-time"
|
|
13
|
+
},
|
|
14
|
+
"parentIdTag": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"maxLength": 20
|
|
17
|
+
},
|
|
18
|
+
"status": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"additionalProperties": false,
|
|
21
|
+
"enum": [
|
|
22
|
+
"Accepted",
|
|
23
|
+
"Blocked",
|
|
24
|
+
"Expired",
|
|
25
|
+
"Invalid",
|
|
26
|
+
"ConcurrentTx"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"additionalProperties": false,
|
|
31
|
+
"required": [
|
|
32
|
+
"status"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"transactionId": {
|
|
36
|
+
"type": "integer"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"required": [
|
|
41
|
+
"idTagInfo",
|
|
42
|
+
"transactionId"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
"id": "urn:OCPP:1.6:2019:12:StatusNotificationRequest",
|
|
4
|
+
"title": "StatusNotificationRequest",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"connectorId": {
|
|
8
|
+
"type": "integer"
|
|
9
|
+
},
|
|
10
|
+
"errorCode": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"additionalProperties": false,
|
|
13
|
+
"enum": [
|
|
14
|
+
"ConnectorLockFailure",
|
|
15
|
+
"EVCommunicationError",
|
|
16
|
+
"GroundFailure",
|
|
17
|
+
"HighTemperature",
|
|
18
|
+
"InternalError",
|
|
19
|
+
"LocalListConflict",
|
|
20
|
+
"NoError",
|
|
21
|
+
"OtherError",
|
|
22
|
+
"OverCurrentFailure",
|
|
23
|
+
"PowerMeterFailure",
|
|
24
|
+
"PowerSwitchFailure",
|
|
25
|
+
"ReaderFailure",
|
|
26
|
+
"ResetFailure",
|
|
27
|
+
"UnderVoltage",
|
|
28
|
+
"OverVoltage",
|
|
29
|
+
"WeakSignal"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"info": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"maxLength": 50
|
|
35
|
+
},
|
|
36
|
+
"status": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"additionalProperties": false,
|
|
39
|
+
"enum": [
|
|
40
|
+
"Available",
|
|
41
|
+
"Preparing",
|
|
42
|
+
"Charging",
|
|
43
|
+
"SuspendedEVSE",
|
|
44
|
+
"SuspendedEV",
|
|
45
|
+
"Finishing",
|
|
46
|
+
"Reserved",
|
|
47
|
+
"Unavailable",
|
|
48
|
+
"Faulted"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"timestamp": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"format": "date-time"
|
|
54
|
+
},
|
|
55
|
+
"vendorId": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"maxLength": 255
|
|
58
|
+
},
|
|
59
|
+
"vendorErrorCode": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"maxLength": 50
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"additionalProperties": false,
|
|
65
|
+
"required": [
|
|
66
|
+
"connectorId",
|
|
67
|
+
"errorCode",
|
|
68
|
+
"status"
|
|
69
|
+
]
|
|
70
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
"id": "urn:OCPP:1.6:2025:04:StopTransactionRequest",
|
|
4
|
+
"title": "StopTransactionRequest",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"idTag": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"maxLength": 20
|
|
10
|
+
},
|
|
11
|
+
"meterStop": {
|
|
12
|
+
"type": "integer"
|
|
13
|
+
},
|
|
14
|
+
"timestamp": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"format": "date-time"
|
|
17
|
+
},
|
|
18
|
+
"transactionId": {
|
|
19
|
+
"type": "integer"
|
|
20
|
+
},
|
|
21
|
+
"reason": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"enum": [
|
|
25
|
+
"EmergencyStop",
|
|
26
|
+
"EVDisconnected",
|
|
27
|
+
"HardReset",
|
|
28
|
+
"Local",
|
|
29
|
+
"Other",
|
|
30
|
+
"PowerLoss",
|
|
31
|
+
"Reboot",
|
|
32
|
+
"Remote",
|
|
33
|
+
"SoftReset",
|
|
34
|
+
"UnlockCommand",
|
|
35
|
+
"DeAuthorized"
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"transactionData": {
|
|
39
|
+
"type": "array",
|
|
40
|
+
"items": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"properties": {
|
|
43
|
+
"timestamp": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"format": "date-time"
|
|
46
|
+
},
|
|
47
|
+
"sampledValue": {
|
|
48
|
+
"type": "array",
|
|
49
|
+
"items": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"properties": {
|
|
52
|
+
"value": {
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
"context": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"additionalProperties": false,
|
|
58
|
+
"enum": [
|
|
59
|
+
"Interruption.Begin",
|
|
60
|
+
"Interruption.End",
|
|
61
|
+
"Sample.Clock",
|
|
62
|
+
"Sample.Periodic",
|
|
63
|
+
"Transaction.Begin",
|
|
64
|
+
"Transaction.End",
|
|
65
|
+
"Trigger",
|
|
66
|
+
"Other"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
"format": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"additionalProperties": false,
|
|
72
|
+
"enum": [
|
|
73
|
+
"Raw",
|
|
74
|
+
"SignedData"
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"measurand": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"additionalProperties": false,
|
|
80
|
+
"enum": [
|
|
81
|
+
"Energy.Active.Export.Register",
|
|
82
|
+
"Energy.Active.Import.Register",
|
|
83
|
+
"Energy.Reactive.Export.Register",
|
|
84
|
+
"Energy.Reactive.Import.Register",
|
|
85
|
+
"Energy.Active.Export.Interval",
|
|
86
|
+
"Energy.Active.Import.Interval",
|
|
87
|
+
"Energy.Reactive.Export.Interval",
|
|
88
|
+
"Energy.Reactive.Import.Interval",
|
|
89
|
+
"Power.Active.Export",
|
|
90
|
+
"Power.Active.Import",
|
|
91
|
+
"Power.Offered",
|
|
92
|
+
"Power.Reactive.Export",
|
|
93
|
+
"Power.Reactive.Import",
|
|
94
|
+
"Power.Factor",
|
|
95
|
+
"Current.Import",
|
|
96
|
+
"Current.Export",
|
|
97
|
+
"Current.Offered",
|
|
98
|
+
"Voltage",
|
|
99
|
+
"Frequency",
|
|
100
|
+
"Temperature",
|
|
101
|
+
"SoC",
|
|
102
|
+
"RPM"
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
"phase": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"additionalProperties": false,
|
|
108
|
+
"enum": [
|
|
109
|
+
"L1",
|
|
110
|
+
"L2",
|
|
111
|
+
"L3",
|
|
112
|
+
"N",
|
|
113
|
+
"L1-N",
|
|
114
|
+
"L2-N",
|
|
115
|
+
"L3-N",
|
|
116
|
+
"L1-L2",
|
|
117
|
+
"L2-L3",
|
|
118
|
+
"L3-L1"
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
"location": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"additionalProperties": false,
|
|
124
|
+
"enum": [
|
|
125
|
+
"Cable",
|
|
126
|
+
"EV",
|
|
127
|
+
"Inlet",
|
|
128
|
+
"Outlet",
|
|
129
|
+
"Body"
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
"unit": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"additionalProperties": false,
|
|
135
|
+
"enum": [
|
|
136
|
+
"Wh",
|
|
137
|
+
"kWh",
|
|
138
|
+
"varh",
|
|
139
|
+
"kvarh",
|
|
140
|
+
"W",
|
|
141
|
+
"kW",
|
|
142
|
+
"VA",
|
|
143
|
+
"kVA",
|
|
144
|
+
"var",
|
|
145
|
+
"kvar",
|
|
146
|
+
"A",
|
|
147
|
+
"V",
|
|
148
|
+
"K",
|
|
149
|
+
"Celcius",
|
|
150
|
+
"Celsius",
|
|
151
|
+
"Fahrenheit",
|
|
152
|
+
"Percent"
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"additionalProperties": false,
|
|
157
|
+
"required": [
|
|
158
|
+
"value"
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"additionalProperties": false,
|
|
164
|
+
"required": [
|
|
165
|
+
"timestamp",
|
|
166
|
+
"sampledValue"
|
|
167
|
+
]
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"additionalProperties": false,
|
|
172
|
+
"required": [
|
|
173
|
+
"transactionId",
|
|
174
|
+
"timestamp",
|
|
175
|
+
"meterStop"
|
|
176
|
+
]
|
|
177
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
"id": "urn:OCPP:1.6:2019:12:StopTransactionResponse",
|
|
4
|
+
"title": "StopTransactionResponse",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"idTagInfo": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"expiryDate": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"format": "date-time"
|
|
13
|
+
},
|
|
14
|
+
"parentIdTag": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"maxLength": 20
|
|
17
|
+
},
|
|
18
|
+
"status": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"additionalProperties": false,
|
|
21
|
+
"enum": [
|
|
22
|
+
"Accepted",
|
|
23
|
+
"Blocked",
|
|
24
|
+
"Expired",
|
|
25
|
+
"Invalid",
|
|
26
|
+
"ConcurrentTx"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"additionalProperties": false,
|
|
31
|
+
"required": [
|
|
32
|
+
"status"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"additionalProperties": false
|
|
37
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
"id": "urn:OCPP:1.6:2019:12:TriggerMessageRequest",
|
|
4
|
+
"title": "TriggerMessageRequest",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"requestedMessage": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"enum": [
|
|
11
|
+
"BootNotification",
|
|
12
|
+
"DiagnosticsStatusNotification",
|
|
13
|
+
"FirmwareStatusNotification",
|
|
14
|
+
"Heartbeat",
|
|
15
|
+
"MeterValues",
|
|
16
|
+
"StatusNotification"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"connectorId": {
|
|
20
|
+
"type": "integer"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"required": [
|
|
25
|
+
"requestedMessage"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
"id": "urn:OCPP:1.6:2019:12:TriggerMessageResponse",
|
|
4
|
+
"title": "TriggerMessageResponse",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"status": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"enum": [
|
|
11
|
+
"Accepted",
|
|
12
|
+
"Rejected",
|
|
13
|
+
"NotImplemented"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"additionalProperties": false,
|
|
18
|
+
"required": [
|
|
19
|
+
"status"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
"id": "urn:OCPP:1.6:2019:12:UnlockConnectorRequest",
|
|
4
|
+
"title": "UnlockConnectorRequest",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"connectorId": {
|
|
8
|
+
"type": "integer"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"additionalProperties": false,
|
|
12
|
+
"required": [
|
|
13
|
+
"connectorId"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
"id": "urn:OCPP:1.6:2019:12:UnlockConnectorResponse",
|
|
4
|
+
"title": "UnlockConnectorResponse",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"status": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"enum": [
|
|
11
|
+
"Unlocked",
|
|
12
|
+
"UnlockFailed",
|
|
13
|
+
"NotSupported"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"additionalProperties": false,
|
|
18
|
+
"required": [
|
|
19
|
+
"status"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
"id": "urn:OCPP:1.6:2019:12:UpdateFirmwareRequest",
|
|
4
|
+
"title": "UpdateFirmwareRequest",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"location": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"format": "uri"
|
|
10
|
+
},
|
|
11
|
+
"retries": {
|
|
12
|
+
"type": "integer"
|
|
13
|
+
},
|
|
14
|
+
"retrieveDate": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"format": "date-time"
|
|
17
|
+
},
|
|
18
|
+
"retryInterval": {
|
|
19
|
+
"type": "integer"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"required": [
|
|
24
|
+
"location",
|
|
25
|
+
"retrieveDate"
|
|
26
|
+
]
|
|
27
|
+
}
|