-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebhook-events.yaml
More file actions
1058 lines (1053 loc) · 36.7 KB
/
Copy pathwebhook-events.yaml
File metadata and controls
1058 lines (1053 loc) · 36.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
###
# Webhook Events
###
components:
parameters:
XSignature:
name: X-Signature
in: header
required: true
description: HMAC-SHA-512 digest(s) for request integrity verification.
schema:
type: string
pattern: ^sha512=[0-9a-fA-F]{128}(?:,\s?sha512=[0-9a-fA-F]{128})*$
description: |-
Can contain one or more digests, separated by a comma and a space (`, `). Each signature is prefixed with
`sha512=`.
example: |-
sha512=8e974e6f477383a8b27785a9c24098c1f96420377a06a6c0b396e67e37604d55b0a32d163f8202518e388d1d86d649d214c770d1820641042456578051613045
requestBodies:
WebhookEvent:
description: "Forwards an event to a webhook subscription's target URL."
required: true
content:
application.json:
schema:
$ref: '#/components/schemas/WebhookEventRequest'
responses:
WebhookEventSuccess:
description: The webhook event has been processed successfully.
WebhookEventReceiverGone:
description: |-
The webhook receiver has been decommissioned and its webhook subscription should be deleted.
WebhookEventUnauthenticated:
description: HMAC digest verification failed for the request.
WebhookEventTransientError:
description: |-
The request failed with a transient error and will be retried five times with exponential backoff.
content:
application/json:
schema:
$ref: '#/components/schemas/ArbitraryErrorResponse'
WebhookEventPermanentError:
description: |-
The request failed with a permanent error and won't be retried.
content:
application/json:
schema:
$ref: '#/components/schemas/ArbitraryErrorResponse'
schemas:
ArbitraryErrorResponse:
type: object
additionalProperties: true
description: Optional arbitrary JSON data.
nullable: true
WebhookEventBase:
type: object
description: |-
Representation of an event in a gridX account. Follows the [CloudEvents v1.0.1 specification](
https://github.com/cloudevents/spec/blob/v1.0.1/spec.md).
required:
- id
- source
- specVersion
- time
- type
- data
properties:
id:
format: uuid
type: string
description: The unique ID of the event instance.
time:
description: Time when the event has occurred in RFC3339 format.
format: date-time
type: string
dataContentType:
default: application/json
description: |-
Content-Type indicating how to parse the `data` attribute.
Only 'application/json' is supported for now. If omitted, it is guaranteed to be `application/json`.
enum:
- application/json
example: application/json
type: string
specVersion:
description: |-
The adhered CloudEvents specification version, currently "1.0".
Only consists of major and minor version parts, to allow patching in a backward-compatible fashion.
example: "1.0"
type: string
source:
description: |-
The source of the event is usually a resource identifier path that can be used to identify the object which
triggered the event.
example: /systems/5eda17ec-4dc9-46d5-b3b8-c396f75a760f
type: string
correlationId:
description: Correlation ID to identify the request triggering the event.
format: uuid
type: string
type:
description: The type of the event.
type: string
data:
description: Contains the actual event payload. Deserialize depending on the `type` property.
type: object
WebhookEventRequest:
oneOf:
- $ref: '#/components/schemas/ApplianceEvent'
- $ref: '#/components/schemas/EVMeasurementEvent'
- $ref: '#/components/schemas/EVPluggedEvent'
- $ref: '#/components/schemas/EVUnpluggedEvent'
- $ref: '#/components/schemas/EVChargeStartedEvent'
- $ref: '#/components/schemas/EVChargeStoppedEvent'
- $ref: '#/components/schemas/EVChargeSessionFailedEvent'
- $ref: '#/components/schemas/EVInfeasibleChargingGoalsEvent'
- $ref: '#/components/schemas/GatewayEvent'
- $ref: '#/components/schemas/GSP14aSignalEvent'
- $ref: '#/components/schemas/InverterEvent'
- $ref: '#/components/schemas/PingEvent'
- $ref: '#/components/schemas/SystemActionEvent'
discriminator:
propertyName: type
mapping:
appliance/create: '#/components/schemas/ApplianceEvent'
appliance/delete: '#/components/schemas/ApplianceEvent'
appliance/offline: '#/components/schemas/ApplianceEvent'
appliance/online: '#/components/schemas/ApplianceEvent'
appliance/update: '#/components/schemas/ApplianceEvent'
ev/charge-failed: '#/components/schemas/EVChargeSessionFailedEvent'
ev/charge-started: '#/components/schemas/EVChargeStartedEvent'
ev/charge-stopped: '#/components/schemas/EVChargeStoppedEvent'
ev/measurement: '#/components/schemas/EVMeasurementEvent'
ev/plugged: '#/components/schemas/EVPluggedEvent'
ev/unplugged: '#/components/schemas/EVUnpluggedEvent'
ev/infeasible-charging-goals: '#/components/schemas/EVInfeasibleChargingGoalsEvent'
gateway/create: '#/components/schemas/GatewayEvent'
gateway/offline: '#/components/schemas/GatewayEvent'
gateway/online: '#/components/schemas/GatewayEvent'
grid-signal-processor/limitation-of-power-consumption/set: '#/components/schemas/GSP14aSignalEvent'
grid-signal-processor/limitation-of-power-consumption/unset: '#/components/schemas/GSP14aSignalEvent'
inverter/status: '#/components/schemas/InverterEvent'
ping: '#/components/schemas/PingEvent'
system/action: '#/components/schemas/SystemActionEvent'
ApplianceEvent:
allOf:
- $ref: '#/components/schemas/WebhookEventBase'
- properties:
type:
type: string
enum:
- appliance/create
- appliance/delete
- appliance/offline
- appliance/online
- appliance/update
data:
$ref: '#/components/schemas/ApplianceEventData'
ApplianceEventData:
type: object
description: Payload for `appliance/*` events.
required:
- applianceID
- gatewayID
properties:
applianceID:
description: ID of the appliance that caused this event.
example: fc0a6ac7-64ce-4276-a7cd-bace946af433
format: uuid
type: string
gatewayID:
description: The ID of the gateway that connects to the appliance.
example: 25ccab17-cd40-4db1-a320-a986d1c15fb1
format: uuid
type: string
model:
description: Model description of the appliance.
example: ExampleModel
type: string
manufacturer:
description: Manufacturer of the appliance.
example: ExampleManufacturer
type: string
type:
description: General type of the appliance.
enum:
- UNKNOWN
- INVERTER
- METER
- EVSTATION
- HEAT_PUMP
- HEATER
- CONTAINER
example: METER
type: string
kind:
description: |-
Kind of the appliance is used to provide further details on the appliance configuration and mode of
operation.
The kind property is only available for appliances with type `INVERTER` or `METER`.
For inverters, only `UNKNOWN`, `PV`, `BATTERY`, `HYBRID` and `PV_EXTERNAL` are valid values. They describe
the kind of connected appliance(s) and define the role of the inverter in the system.
For meters, kind specifies the appliance the meter is attached to. It resembles the location the meter is
installed in.
enum:
- UNKNOWN
- PV
- BATTERY
- HYBRID
- PV_EXTERNAL
- GRID
- HEAT_PUMP
- FUEL_CELL
- HEAT_PUMP_EXTERNAL
- EVSTATION
- BTTP
- HEATING
- MISC
- CLUSTER
- WIND_TURBINE
example: BATTERY
type: string
name:
description: The name of the appliance as defined by the customer.
example: ExampleMeter
type: string
serialNumber:
description: Serial number of the appliance as returned by the appliance.
example: "9312355"
type: string
firmware:
description: Firmware version of the appliance.
type: string
parent:
description: ID of the parent appliance, if any.
type: string
gatewayType:
description: Type of the gateway the appliance is connected to.
example: GRIDBOX
type: string
systemID:
description: The ID of the system that the gateway and appliance run in.
example: c9db369e-7cf8-4ad1-ade5-46f61a5125c2
format: uuid
type: string
systemName:
description: Name of the system as defined by the customer.
example: ExampleSystem
type: string
EVChargeStartedEvent:
allOf:
- $ref: '#/components/schemas/WebhookEventBase'
- properties:
type:
type: string
enum:
- ev/charge-started
data:
$ref: '#/components/schemas/EVChargingStartEventData'
description: Event fired when an EV starts charging.
EVChargingStartEventData:
type: object
description: Charge State change event (issued by the EV).
required:
- issuedAt
- atHome
- type
- systemID
- assetID
- gatewayID
- chargePower
- state
properties:
issuedAt:
type: string
format: date-time
description: When the event was issued by the EV (It might take some time for the event reach us).
atHome:
type: boolean
description: |-
atHome specifies if the vehicle is currently at the users home location
and is used to make decisions on whether to control charging behaviour
type:
type: string
description: The type of the asset issuing the event.
example: EV
systemID:
type: string
format: uuid
description: This field defines the id of the system in which the EV is connected to.
assetID:
type: string
format: uuid
description: This field defines the id of the asset.
gatewayID:
type: string
format: uuid
description: This field defines the ID of gateway where the EV is linked to.
stateOfCharge:
type: number
format: double
description: |-
StateOfCharge specifies the vehicles battery level as a value between 0.0%
and 100.0%.
chargePower:
type: integer
format: int64
description: |-
ChargePower specifies the power with which the vehicle is currently
charging in mW. Positive values mean charging, negative values mean
discharging (V2G, V2H).
range:
type: integer
format: uint32
description: Range of the vehicle in meters
state:
type: string
enum:
- CHARGING
description: Indicates that the vehicle is charging
EVChargeStoppedEvent:
allOf:
- $ref: '#/components/schemas/WebhookEventBase'
- properties:
type:
type: string
enum:
- ev/charge-stopped
data:
$ref: '#/components/schemas/EVChargingStopEventData'
description: Event fired when an EV stops charging.
EVChargingStopEventData:
type: object
description: Charge State change event (issued by the EV).
required:
- issuedAt
- atHome
- type
- systemID
- assetID
- gatewayID
- chargePower
- state
properties:
issuedAt:
type: string
format: date-time
description: When the event was issued by the EV (It might take some time for the event reach us).
atHome:
type: boolean
description: |-
atHome specifies if the vehicle is currently at the users home location
and is used to make decisions on whether to control charging behaviour
type:
type: string
description: The type of the asset issuing the event.
example: EV
systemID:
type: string
format: uuid
description: This field defines the id of the system in which the EV is connected to.
assetID:
type: string
format: uuid
description: This field defines the id of the asset.
gatewayID:
type: string
format: uuid
description: This field defines the ID of gateway where the EV is linked to.
stateOfCharge:
type: number
format: double
description: |-
StateOfCharge specifies the vehicles battery level as a value between 0.0%
and 100.0%.
chargePower:
type: integer
format: int64
description: |-
ChargePower specifies the power with which the vehicle is currently
charging in mW. Positive values mean charging, negative values mean
discharging (V2G, V2H).
range:
type: integer
format: uint32
description: Range of the vehicle in meters
state:
type: string
enum:
- STOPPED
description: Indicates that the vehicle is not charging
EVChargeSessionFailedEvent:
allOf:
- $ref: '#/components/schemas/WebhookEventBase'
- properties:
type:
type: string
enum:
- ev/charge-failed
data:
$ref: '#/components/schemas/EVChargeSessionFailedEventData'
description: Event fired when an EV fails to accept a start or a stop command.
EVChargeSessionFailedEventData:
type: object
description: Generic EVEvent with fail reason.
required:
- issuedAt
- atHome
- type
- systemID
- assetID
- gatewayID
- createdAt
- completedAt
- kind
- failureReason
properties:
issuedAt:
type: string
format: date-time
description: When the event was issued by the EV (It might take some time for the event reach us).
atHome:
type: boolean
description: |-
atHome specifies if the vehicle is currently at the users home location
and is used to make decisions on whether to control charging behaviour
type:
type: string
description: The type of the asset issuing the event.
example: EV
systemID:
type: string
format: uuid
description: This field defines the id of the system in which the EV is connected to.
assetID:
type: string
format: uuid
description: This field defines the id of the asset.
gatewayID:
type: string
format: uuid
description: This field defines the ID of gateway where the EV is linked to.
createdAt:
type: string
format: date-time
description: Time when the command was sent
completedAt:
type: string
format: date-time
description: Time when the error was reported
kind:
type: string
enum:
- START
- STOP
description: The charging command to perform
failureReason:
type: object
properties:
type:
type: string
enum:
- NO_RESPONSE
- FAILED_PRECONDITION
- CONFLICT
- NOT_FOUND
- REQUESTED_CANCELLATION
description: |-
A machine-readable high level error category.
NO_RESPONSE: The chargeable device did not react to our charge commands within the command's timeout window.
FAILED_PRECONDITION: The chargeable device did not meet all required preconditions for this command to be executed during the command's timeout window.
CONFLICT: A newer command for this chargeable has been created. This command is now abandoned.
NOT_FOUND: The chargeable was deleted while the command was PENDING
REQUESTED_CANCELLATION: This command was cancelled by request of the controlling owner.
detail:
type: string
description: A human-readable explanation of why the charging command was unsuccessful.
required:
- type
- detail
description: Reason why a given command has failed.
EVMeasurementEvent:
allOf:
- $ref: '#/components/schemas/WebhookEventBase'
- properties:
type:
type: string
enum:
- ev/measurement
data:
$ref: '#/components/schemas/EVMeasurementEventData'
EVMeasurementEventData:
type: object
description: Measurement event (issued by the EV).
required:
- issuedAt
- atHome
- type
- systemID
- assetID
- gatewayID
- chargePower
- chargeState
- plugState
- isControllable
properties:
issuedAt:
type: string
format: date-time
description: When the event was issued by the EV (It might take some time for the event reach us).
atHome:
type: boolean
description: |-
atHome specifies if the vehicle is currently at the users home location
and is used to make decisions on whether to control charging behaviour
type:
type: string
description: The type of the asset issuing the event.
example: EV
systemID:
type: string
format: uuid
description: This field defines the id of the system in which the EV is connected to.
assetID:
type: string
format: uuid
description: This field defines the id of the asset.
gatewayID:
type: string
format: uuid
description: This field defines the ID of gateway where the EV is linked to.
stateOfCharge:
type: number
format: double
description: |-
StateOfCharge specifies the vehicles battery level in as a value between
0.0% and 100.0%.
chargePower:
type: integer
format: int64
description: |-
ChargePower specifies the power with which the vehicle is currently
charging in mW Positive values mean charging, negative values mean
discharging (V2G, V2H).
range:
type: integer
format: uint32
description: Range of the vehicle in meters
chargeLimit:
type: number
format: double
description: |-
ChargeLimit is the limit configured by the vehicle owner at which state of
charge the vehicle should stop charging. Represented as a percentage
between 0% and 100%.
capacity:
type: integer
format: uint32
description: Capacity specifies the capacity of the vehicles battery in Wh.
chargeState:
type: string
description: |-
When plugged, indicates whether the vehicle is charging or not.
When not plugged, this field returns "" (empty).
enum:
- INITIALIZING
- CHARGING
- COMPLETE
- STOPPED
- FAULT
- NO_POWER
- DISCHARGING
- ""
plugState:
type: string
description: PlugState defines whether the vehicle is currently plugged in.
enum:
- PLUGGED
- UNPLUGGED
- UNKNOWN
example: PLUGGED
isControllable:
type: boolean
description: |-
IsControllable defines if the vehicle's charging can currently be
controlled by us. Reasons for not being controllable could be
that the vehicle is not at home or that it lacks the capability
to receive control commands, either because they are not supported
by the cloud provider for the EV model, or because an user action is required
EVPluggedEvent:
allOf:
- $ref: '#/components/schemas/WebhookEventBase'
- properties:
type:
type: string
enum:
- ev/plugged
data:
$ref: '#/components/schemas/EVPluggedEventData'
description: Event fired when an EV plugs to a charger.
EVPluggedEventData:
type: object
description: Plug State change event (issued by the EV).
required:
- issuedAt
- atHome
- type
- systemID
- assetID
- gatewayID
- state
properties:
issuedAt:
type: string
format: date-time
description: When the event was issued by the EV (It might take some time for the event reach us).
atHome:
type: boolean
description: |-
atHome specifies if the vehicle is currently at the users home location
and is used to make decisions on whether to control charging behaviour
type:
type: string
description: The type of the asset issuing the event.
example: EV
systemID:
type: string
format: uuid
description: This field defines the id of the system in which the EV is connected to.
assetID:
type: string
format: uuid
description: This field defines the id of the asset.
gatewayID:
type: string
format: uuid
description: This field defines the ID of gateway where the EV is linked to.
state:
type: string
enum:
- PLUGGED
description: State defines whether the vehicle is currently plugged in
EVUnpluggedEvent:
allOf:
- $ref: '#/components/schemas/WebhookEventBase'
- properties:
type:
type: string
enum:
- ev/unplugged
data:
$ref: '#/components/schemas/EVUnpluggedEventData'
description: Event fired when an EV unplugs from a charger.
EVUnpluggedEventData:
type: object
description: Plug State change event (issued by the EV).
required:
- issuedAt
- atHome
- type
- systemID
- assetID
- gatewayID
- state
properties:
issuedAt:
type: string
format: date-time
description: When the event was issued by the EV (It might take some time for the event reach us).
atHome:
type: boolean
description: |-
atHome specifies if the vehicle is currently at the users home location
and is used to make decisions on whether to control charging behaviour
type:
type: string
description: The type of the asset issuing the event.
example: EV
systemID:
type: string
format: uuid
description: This field defines the id of the system in which the EV is connected to.
assetID:
type: string
format: uuid
description: This field defines the id of the asset.
gatewayID:
type: string
format: uuid
description: This field defines the ID of gateway where the EV is linked to.
state:
type: string
enum:
- UNPLUGGED
description: State defines whether the vehicle is currently unplugged
EVInfeasibleChargingGoalsEvent:
allOf:
- $ref: '#/components/schemas/WebhookEventBase'
- properties:
type:
type: string
enum:
- ev/infeasible-charging-goals
data:
$ref: '#/components/schemas/EVInfeasibleChargingGoalsEventData'
description: |-
Event fired when the configured EV charging goals cannot be met before the departure time.
Emitted each time a user updates their EV parameters and the feasibility check determines
that the target state of charge is not reachable given the available charging power and
time remaining until departure.
EVInfeasibleChargingGoalsEventData:
type: object
description: Payload for `ev/infeasible-charging-goals` events.
required:
- systemID
- assetID
- minRequestedSoC
- currentSoC
- departureAt
- energyNeededWh
- deliverableEnergyWh
- chargingPowerW
properties:
systemID:
type: string
format: uuid
description: The ID of the system in which the EV is connected.
example: 5eda17ec-4dc9-46d5-b3b8-c396f75a760f
assetID:
type: string
format: uuid
description: The ID of the EV asset.
example: fc0a6ac7-64ce-4276-a7cd-bace946af433
minRequestedSoC:
type: number
format: double
description: The minimum state of charge (%) the user wants to reach by departure.
example: 80.0
currentSoC:
type: number
format: double
description: The current state of charge (%) of the vehicle battery.
example: 42.0
departureAt:
type: string
format: date-time
description: The departure time configured by the user (RFC3339).
example: "2026-06-22T07:30:00Z"
maxStateOfCharge:
type: number
format: double
nullable: true
description: |-
The maximum state of charge (%) allowed by the driver constraint, if set.
The effective target SoC is min(minRequestedSoC, maxStateOfCharge).
example: 90.0
energyNeededWh:
type: number
format: double
description: Energy in Wh required to reach the target state of charge from the current state of charge.
example: 9200.0
deliverableEnergyWh:
type: number
format: double
description: |-
Energy in Wh that can realistically be delivered before departure,
calculated as chargingPowerW × hoursUntilDeparture.
example: 5400.0
chargingPowerW:
type: number
format: double
description: The charging power in W used for the feasibility calculation.
example: 3600.0
atHome:
type: boolean
nullable: true
description: Whether the vehicle is currently at the user's home location. Null if unknown.
example: true
GatewayEvent:
allOf:
- $ref: '#/components/schemas/WebhookEventBase'
- properties:
type:
type: string
enum:
- gateway/create
- gateway/offline
- gateway/online
data:
$ref: '#/components/schemas/GatewayEventData'
GatewayEventData:
type: object
title: Gateway event
description: Payload for `gateway/*` events.
required:
- gatewayID
- systemID
properties:
gatewayID:
description: The ID of the gateway this event is triggered for.
example: 680d63aa-6e1d-4447-af7c-35c5eb6ca810
format: uuid
type: string
gatewayName:
description: The name of the gateway corresponding to the gatewayID.
example: My gridBox
type: string
gatewaySerialnumber:
description: The serialnumber of the gateway corresponding to the gatewayID.
example: D403-007-000-000-001-B-X
type: string
gatewayDeviceID:
description: Internal device ID of the gateway.
type: string
systemID:
description: The ID of the system this event is triggered for.
example: af87d7b3-316f-4d26-868c-4ae351095bdc
format: uuid
type: string
systemName:
description: The name of the system corresponding to the systemID.
example: ExampleSystem
type: string
userID:
description: The ID of the user that owns the system.
example: a115d9e3-6e78-4ddf-8676-a98c28ad8249
format: uuid
type: string
userName:
description: Name of the user belonging to the userID.
example: Max Mustermann
type: string
userMail:
description: E-Mail address of the user belonging to the userID.
example: max.mustermann@muster.de
type: string
GSP14aSignalEvent:
allOf:
- $ref: '#/components/schemas/WebhookEventBase'
- properties:
type:
type: string
enum:
- grid-signal-processor/limitation-of-power-consumption/set
- grid-signal-processor/limitation-of-power-consumption/unset
data:
$ref: '#/components/schemas/GSP14aSignalEventData'
GSP14aSignalEventData:
type: object
title: Grid signal processor limitation of power consumption event
description: Payload for `grid-signal-processor/limitation-of-power-consumption/*` events.
properties:
newLPC:
type: number
format: float
description: |-
Represents the new limitation of power consumption in milliwatt. It can be omitted in case there was a limit
and now there is not.
receivedAt:
type: string
format: date-time
description: Timestamp at which the gridbox received the control signal.
validUntil:
type: string
format: date-time
description: Timestamp until which the control signal is valid.
InverterEvent:
allOf:
- $ref: '#/components/schemas/WebhookEventBase'
- type: object
properties:
type:
type: string
enum:
- inverter/status
data:
$ref: '#/components/schemas/InverterEventData'
InverterEventData:
allOf:
- $ref: '#/components/schemas/ApplianceEventData'
- type: object
title: Inverter status event
description: |-
Payload for `inverter/*` events.
The event describes the change of an inverter from one status to a new one. The old status is referred to as the
lastStatus.
required:
- lastStatus
- status
properties:
status:
description: Current (new) status of the inverter.
enum:
- UNKNOWN
- OK
- WARNING
- ERROR
example: OK
type: string
lastStatus:
description: Last status of the inverter.
enum:
- UNKNOWN
- OK
- WARNING
- ERROR
example: ERROR
type: string
errCode:
description: |-
Current (new) error code as returned by the appliance. The value depends on the appliance manufacturer,
model and firmware. Please refer to the manufacturers specification.
type: string
lastErrCode:
description: |
Last error code as returned by the appliance. The value depends on the appliance manufacturer, model and
firmware. Please refer to the manufacturers specification.
example: F71A
type: string
PingEvent:
allOf:
- $ref: '#/components/schemas/WebhookEventBase'
- properties:
type:
type: string
enum:
- ping
data:
$ref: '#/components/schemas/PingEventData'
PingEventData:
type: object
description: Payload for `ping` events.
properties:
message:
type: string
SystemActionEvent:
allOf:
- $ref: '#/components/schemas/WebhookEventBase'
- properties:
type:
type: string
enum:
- system/action
data:
$ref: '#/components/schemas/UserActionEventPayload'
UserActionEventPayload:
type: object
required:
- id
- capabilities
- type
- manufacturer
- domain
- introducedAt
- resolution
- gatewayID
- assetID
- systemID
- status
properties:
id:
type: string
format: uuid
description: ID of the action.
capabilities:
type: array
items:
type: string
enum:
- chargeState
- information
- startCharging
- stopCharging
- location
description: Capability that can be unblocked by the user taking this action
example:
- chargeState
- location
type:
type: string
enum:
- EV
description: Type of asset.
manufacturer:
type: string
description: Manufacturer of the asset.
example: Audi
domain:
type: string
enum:
- Account
- Device
description: Describes whether the user action relates to the device itself or the vendor user account used to access the device.
introducedAt:
type: string