@enyo-energy/energy-app-sdk 0.0.136 → 0.0.137

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.
@@ -122,6 +122,7 @@ var EnyoDataBusMessageEnum;
122
122
  EnyoDataBusMessageEnum["PauseChargingV1"] = "PauseChargingV1";
123
123
  EnyoDataBusMessageEnum["ResumeChargingV1"] = "ResumeChargingV1";
124
124
  EnyoDataBusMessageEnum["ChangeChargingPowerV1"] = "ChangeChargingPowerV1";
125
+ EnyoDataBusMessageEnum["ChangeChargeModeV1"] = "ChangeChargeModeV1";
125
126
  EnyoDataBusMessageEnum["SetChargingScheduleV1"] = "SetChargingScheduleV1";
126
127
  EnyoDataBusMessageEnum["StartChargeV1"] = "StartChargeV1";
127
128
  EnyoDataBusMessageEnum["StopChargeV1"] = "StopChargeV1";
@@ -162,6 +163,8 @@ var EnyoDataBusMessageEnum;
162
163
  EnyoDataBusMessageEnum["StartAirConditioningV1"] = "StartAirConditioningV1";
163
164
  EnyoDataBusMessageEnum["StopAirConditioningV1"] = "StopAirConditioningV1";
164
165
  EnyoDataBusMessageEnum["VehicleSocUpdateV1"] = "VehicleSocUpdateV1";
166
+ EnyoDataBusMessageEnum["StartCalibrationV1"] = "StartCalibrationV1";
167
+ EnyoDataBusMessageEnum["StopCalibrationV1"] = "StopCalibrationV1";
165
168
  })(EnyoDataBusMessageEnum || (exports.EnyoDataBusMessageEnum = EnyoDataBusMessageEnum = {}));
166
169
  /**
167
170
  * Possible answers an appliance can give when acknowledging a command.
@@ -162,6 +162,7 @@ export declare enum EnyoDataBusMessageEnum {
162
162
  PauseChargingV1 = "PauseChargingV1",
163
163
  ResumeChargingV1 = "ResumeChargingV1",
164
164
  ChangeChargingPowerV1 = "ChangeChargingPowerV1",
165
+ ChangeChargeModeV1 = "ChangeChargeModeV1",
165
166
  SetChargingScheduleV1 = "SetChargingScheduleV1",
166
167
  StartChargeV1 = "StartChargeV1",
167
168
  StopChargeV1 = "StopChargeV1",
@@ -201,7 +202,9 @@ export declare enum EnyoDataBusMessageEnum {
201
202
  AirConditioningTemperaturesUpdateV1 = "AirConditioningTemperaturesUpdateV1",
202
203
  StartAirConditioningV1 = "StartAirConditioningV1",
203
204
  StopAirConditioningV1 = "StopAirConditioningV1",
204
- VehicleSocUpdateV1 = "VehicleSocUpdateV1"
205
+ VehicleSocUpdateV1 = "VehicleSocUpdateV1",
206
+ StartCalibrationV1 = "StartCalibrationV1",
207
+ StopCalibrationV1 = "StopCalibrationV1"
205
208
  }
206
209
  export type EnyoDataBusMessageResolution = '10s' | '30s' | '1m' | '15m' | '1h' | '1d' | 'dynamic';
207
210
  /**
@@ -562,6 +565,36 @@ export interface EnyoDataBusChangeChargingPowerV1 extends EnyoDataBusMessage {
562
565
  reason?: EnyoDataBusCommandReason;
563
566
  };
564
567
  }
568
+ /**
569
+ * Command message to change the charge mode of an active or upcoming
570
+ * charging session on a specific charger. Allows switching between e.g.
571
+ * immediate, cost-optimized, or price-limit charging without stopping
572
+ * and restarting the session.
573
+ *
574
+ * The receiving integration should answer with an
575
+ * {@link EnyoDataBusCommandAcknowledgeV1} message that references this
576
+ * message's `id` to indicate whether the mode change was accepted,
577
+ * rejected, or is not supported.
578
+ */
579
+ export interface EnyoDataBusChangeChargeModeV1 extends EnyoDataBusMessage {
580
+ type: 'message';
581
+ message: EnyoDataBusMessageEnum.ChangeChargeModeV1;
582
+ /** ID of the charger appliance whose charge mode should be changed */
583
+ applianceId: string;
584
+ data: {
585
+ /** The new charge mode to apply to the session */
586
+ chargeMode: EnyoChargeModeEnum;
587
+ /**
588
+ * Optional ISO timestamp for target completion time. Relevant for
589
+ * modes such as {@link EnyoChargeModeEnum.CostOptimized} or
590
+ * {@link EnyoChargeModeEnum.PriceLimit} that need a deadline to
591
+ * plan against.
592
+ */
593
+ completeChargeAtIso?: string;
594
+ /** Optional reason why this command was issued */
595
+ reason?: EnyoDataBusCommandReason;
596
+ };
597
+ }
565
598
  export interface EnyoDataBusSetChargingScheduleV1 extends EnyoDataBusMessage {
566
599
  type: 'message';
567
600
  message: EnyoDataBusMessageEnum.SetChargingScheduleV1;
@@ -1399,3 +1432,44 @@ export interface EnyoDataBusVehicleSocUpdateV1 extends EnyoDataBusMessage {
1399
1432
  batterySizeKwh?: number;
1400
1433
  };
1401
1434
  }
1435
+ /**
1436
+ * Command message to start a calibration routine on a specific appliance.
1437
+ * Calibration is a vendor- and appliance-specific procedure (e.g. zeroing
1438
+ * a meter, learning a power range, aligning sensors); the targeted
1439
+ * integration decides what calibration entails for the given appliance.
1440
+ *
1441
+ * The receiving integration must answer with an
1442
+ * {@link EnyoDataBusCommandAcknowledgeV1} message that references this
1443
+ * message's `id` to indicate whether the calibration was accepted,
1444
+ * rejected, or is not supported by the appliance.
1445
+ */
1446
+ export interface EnyoDataBusStartCalibrationV1 extends EnyoDataBusMessage {
1447
+ type: 'message';
1448
+ message: EnyoDataBusMessageEnum.StartCalibrationV1;
1449
+ /** ID of the appliance to start calibration on */
1450
+ applianceId: string;
1451
+ data: {
1452
+ /** Optional reason why this command was issued */
1453
+ reason?: EnyoDataBusCommandReason;
1454
+ };
1455
+ }
1456
+ /**
1457
+ * Command message to stop a calibration routine that is currently running
1458
+ * on a specific appliance. The targeted integration is expected to abort
1459
+ * any in-progress calibration for the addressed appliance.
1460
+ *
1461
+ * The receiving integration must answer with an
1462
+ * {@link EnyoDataBusCommandAcknowledgeV1} message that references this
1463
+ * message's `id` to indicate whether the stop request was accepted,
1464
+ * rejected, or is not supported by the appliance.
1465
+ */
1466
+ export interface EnyoDataBusStopCalibrationV1 extends EnyoDataBusMessage {
1467
+ type: 'message';
1468
+ message: EnyoDataBusMessageEnum.StopCalibrationV1;
1469
+ /** ID of the appliance to stop calibration on */
1470
+ applianceId: string;
1471
+ data: {
1472
+ /** Optional reason why this command was issued */
1473
+ reason?: EnyoDataBusCommandReason;
1474
+ };
1475
+ }
@@ -9,7 +9,7 @@ exports.getSdkVersion = getSdkVersion;
9
9
  /**
10
10
  * Current version of the enyo Energy App SDK.
11
11
  */
12
- exports.SDK_VERSION = '0.0.136';
12
+ exports.SDK_VERSION = '0.0.137';
13
13
  /**
14
14
  * Gets the current SDK version.
15
15
  * @returns The semantic version string of the SDK
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Current version of the enyo Energy App SDK.
7
7
  */
8
- export declare const SDK_VERSION = "0.0.136";
8
+ export declare const SDK_VERSION = "0.0.137";
9
9
  /**
10
10
  * Gets the current SDK version.
11
11
  * @returns The semantic version string of the SDK
@@ -162,6 +162,7 @@ export declare enum EnyoDataBusMessageEnum {
162
162
  PauseChargingV1 = "PauseChargingV1",
163
163
  ResumeChargingV1 = "ResumeChargingV1",
164
164
  ChangeChargingPowerV1 = "ChangeChargingPowerV1",
165
+ ChangeChargeModeV1 = "ChangeChargeModeV1",
165
166
  SetChargingScheduleV1 = "SetChargingScheduleV1",
166
167
  StartChargeV1 = "StartChargeV1",
167
168
  StopChargeV1 = "StopChargeV1",
@@ -201,7 +202,9 @@ export declare enum EnyoDataBusMessageEnum {
201
202
  AirConditioningTemperaturesUpdateV1 = "AirConditioningTemperaturesUpdateV1",
202
203
  StartAirConditioningV1 = "StartAirConditioningV1",
203
204
  StopAirConditioningV1 = "StopAirConditioningV1",
204
- VehicleSocUpdateV1 = "VehicleSocUpdateV1"
205
+ VehicleSocUpdateV1 = "VehicleSocUpdateV1",
206
+ StartCalibrationV1 = "StartCalibrationV1",
207
+ StopCalibrationV1 = "StopCalibrationV1"
205
208
  }
206
209
  export type EnyoDataBusMessageResolution = '10s' | '30s' | '1m' | '15m' | '1h' | '1d' | 'dynamic';
207
210
  /**
@@ -562,6 +565,36 @@ export interface EnyoDataBusChangeChargingPowerV1 extends EnyoDataBusMessage {
562
565
  reason?: EnyoDataBusCommandReason;
563
566
  };
564
567
  }
568
+ /**
569
+ * Command message to change the charge mode of an active or upcoming
570
+ * charging session on a specific charger. Allows switching between e.g.
571
+ * immediate, cost-optimized, or price-limit charging without stopping
572
+ * and restarting the session.
573
+ *
574
+ * The receiving integration should answer with an
575
+ * {@link EnyoDataBusCommandAcknowledgeV1} message that references this
576
+ * message's `id` to indicate whether the mode change was accepted,
577
+ * rejected, or is not supported.
578
+ */
579
+ export interface EnyoDataBusChangeChargeModeV1 extends EnyoDataBusMessage {
580
+ type: 'message';
581
+ message: EnyoDataBusMessageEnum.ChangeChargeModeV1;
582
+ /** ID of the charger appliance whose charge mode should be changed */
583
+ applianceId: string;
584
+ data: {
585
+ /** The new charge mode to apply to the session */
586
+ chargeMode: EnyoChargeModeEnum;
587
+ /**
588
+ * Optional ISO timestamp for target completion time. Relevant for
589
+ * modes such as {@link EnyoChargeModeEnum.CostOptimized} or
590
+ * {@link EnyoChargeModeEnum.PriceLimit} that need a deadline to
591
+ * plan against.
592
+ */
593
+ completeChargeAtIso?: string;
594
+ /** Optional reason why this command was issued */
595
+ reason?: EnyoDataBusCommandReason;
596
+ };
597
+ }
565
598
  export interface EnyoDataBusSetChargingScheduleV1 extends EnyoDataBusMessage {
566
599
  type: 'message';
567
600
  message: EnyoDataBusMessageEnum.SetChargingScheduleV1;
@@ -1399,3 +1432,44 @@ export interface EnyoDataBusVehicleSocUpdateV1 extends EnyoDataBusMessage {
1399
1432
  batterySizeKwh?: number;
1400
1433
  };
1401
1434
  }
1435
+ /**
1436
+ * Command message to start a calibration routine on a specific appliance.
1437
+ * Calibration is a vendor- and appliance-specific procedure (e.g. zeroing
1438
+ * a meter, learning a power range, aligning sensors); the targeted
1439
+ * integration decides what calibration entails for the given appliance.
1440
+ *
1441
+ * The receiving integration must answer with an
1442
+ * {@link EnyoDataBusCommandAcknowledgeV1} message that references this
1443
+ * message's `id` to indicate whether the calibration was accepted,
1444
+ * rejected, or is not supported by the appliance.
1445
+ */
1446
+ export interface EnyoDataBusStartCalibrationV1 extends EnyoDataBusMessage {
1447
+ type: 'message';
1448
+ message: EnyoDataBusMessageEnum.StartCalibrationV1;
1449
+ /** ID of the appliance to start calibration on */
1450
+ applianceId: string;
1451
+ data: {
1452
+ /** Optional reason why this command was issued */
1453
+ reason?: EnyoDataBusCommandReason;
1454
+ };
1455
+ }
1456
+ /**
1457
+ * Command message to stop a calibration routine that is currently running
1458
+ * on a specific appliance. The targeted integration is expected to abort
1459
+ * any in-progress calibration for the addressed appliance.
1460
+ *
1461
+ * The receiving integration must answer with an
1462
+ * {@link EnyoDataBusCommandAcknowledgeV1} message that references this
1463
+ * message's `id` to indicate whether the stop request was accepted,
1464
+ * rejected, or is not supported by the appliance.
1465
+ */
1466
+ export interface EnyoDataBusStopCalibrationV1 extends EnyoDataBusMessage {
1467
+ type: 'message';
1468
+ message: EnyoDataBusMessageEnum.StopCalibrationV1;
1469
+ /** ID of the appliance to stop calibration on */
1470
+ applianceId: string;
1471
+ data: {
1472
+ /** Optional reason why this command was issued */
1473
+ reason?: EnyoDataBusCommandReason;
1474
+ };
1475
+ }
@@ -119,6 +119,7 @@ export var EnyoDataBusMessageEnum;
119
119
  EnyoDataBusMessageEnum["PauseChargingV1"] = "PauseChargingV1";
120
120
  EnyoDataBusMessageEnum["ResumeChargingV1"] = "ResumeChargingV1";
121
121
  EnyoDataBusMessageEnum["ChangeChargingPowerV1"] = "ChangeChargingPowerV1";
122
+ EnyoDataBusMessageEnum["ChangeChargeModeV1"] = "ChangeChargeModeV1";
122
123
  EnyoDataBusMessageEnum["SetChargingScheduleV1"] = "SetChargingScheduleV1";
123
124
  EnyoDataBusMessageEnum["StartChargeV1"] = "StartChargeV1";
124
125
  EnyoDataBusMessageEnum["StopChargeV1"] = "StopChargeV1";
@@ -159,6 +160,8 @@ export var EnyoDataBusMessageEnum;
159
160
  EnyoDataBusMessageEnum["StartAirConditioningV1"] = "StartAirConditioningV1";
160
161
  EnyoDataBusMessageEnum["StopAirConditioningV1"] = "StopAirConditioningV1";
161
162
  EnyoDataBusMessageEnum["VehicleSocUpdateV1"] = "VehicleSocUpdateV1";
163
+ EnyoDataBusMessageEnum["StartCalibrationV1"] = "StartCalibrationV1";
164
+ EnyoDataBusMessageEnum["StopCalibrationV1"] = "StopCalibrationV1";
162
165
  })(EnyoDataBusMessageEnum || (EnyoDataBusMessageEnum = {}));
163
166
  /**
164
167
  * Possible answers an appliance can give when acknowledging a command.
package/dist/version.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Current version of the enyo Energy App SDK.
7
7
  */
8
- export declare const SDK_VERSION = "0.0.136";
8
+ export declare const SDK_VERSION = "0.0.137";
9
9
  /**
10
10
  * Gets the current SDK version.
11
11
  * @returns The semantic version string of the SDK
package/dist/version.js CHANGED
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Current version of the enyo Energy App SDK.
7
7
  */
8
- export const SDK_VERSION = '0.0.136';
8
+ export const SDK_VERSION = '0.0.137';
9
9
  /**
10
10
  * Gets the current SDK version.
11
11
  * @returns The semantic version string of the SDK
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enyo-energy/energy-app-sdk",
3
- "version": "0.0.136",
3
+ "version": "0.0.137",
4
4
  "description": "enyo Energy App SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",