1 export enum MeterValueUnit
{
3 KILO_WATT_HOUR
= 'kWh',
5 KILO_VAR_HOUR
= 'kvarh',
14 TEMP_CELSIUS
= 'Celsius',
15 TEMP_FAHRENHEIT
= 'Fahrenheit',
20 export enum MeterValueContext
{
21 INTERRUPTION_BEGIN
= 'Interruption.Begin',
22 INTERRUPTION_END
= 'Interruption.End',
24 SAMPLE_CLOCK
= 'Sample.Clock',
25 SAMPLE_PERIODIC
= 'Sample.Periodic',
26 TRANSACTION_BEGIN
= 'Transaction.Begin',
27 TRANSACTION_END
= 'Transaction.End',
31 export enum OCPP16MeterValueMeasurand
{
32 CURRENT_EXPORT
= 'Current.Export',
33 CURRENT_IMPORT
= 'Current.Import',
34 CURRENT_OFFERED
= 'Current.Offered',
35 ENERGY_ACTIVE_EXPORT_REGISTER
= 'Energy.Active.Export.Register',
36 ENERGY_ACTIVE_IMPORT_REGISTER
= 'Energy.Active.Import.Register',
37 ENERGY_REACTIVE_EXPORT_REGISTER
= 'Energy.Reactive.Export.Register',
38 ENERGY_REACTIVE_IMPORT_REGISTER
= 'Energy.Reactive.Import.Register',
39 ENERGY_ACTIVE_EXPORT_INTERVAL
= 'Energy.Active.Export.Interval',
40 ENERGY_ACTIVE_IMPORT_INTERVAL
= 'Energy.Active.Import.Interval',
41 ENERGY_REACTIVE_EXPORT_INTERVAL
= 'Energy.Reactive.Export.Interval',
42 ENERGY_REACTIVE_IMPORT_INTERVAL
= 'Energy.Reactive.Import.Interval',
43 FREQUENCY
= 'Frequency',
44 POWER_ACTIVE_EXPORT
= 'Power.Active.Export',
45 POWER_ACTIVE_IMPORT
= 'Power.Active.Import',
46 POWER_FACTOR
= 'Power.Factor',
47 POWER_OFFERED
= 'Power.Offered',
48 POWER_REACTIVE_EXPORT
= 'Power.Reactive.Export',
49 POWER_REACTIVE_IMPORT
= 'Power.Reactive.Import',
51 STATE_OF_CHARGE
= 'SoC',
52 TEMPERATURE
= 'Temperature',
56 export enum MeterValueLocation
{
64 export enum MeterValuePhase
{
77 export enum MeterValueFormat
{
79 SIGNED_DATA
= 'SignedData',
82 export interface OCPP16SampledValue
{
84 unit
?: MeterValueUnit
;
85 context
?: MeterValueContext
;
86 measurand
?: OCPP16MeterValueMeasurand
;
87 phase
?: MeterValuePhase
;
88 location
?: MeterValueLocation
;
89 format
?: MeterValueFormat
;
92 export interface OCPP16MeterValue
{
94 sampledValue
: OCPP16SampledValue
[];
97 export interface MeterValuesRequest
{
99 transactionId
?: number;
100 meterValue
: OCPP16MeterValue
| OCPP16MeterValue
[];
103 // eslint-disable-next-line @typescript-eslint/no-empty-interface
104 export interface MeterValuesResponse
{}