@enyo-energy/energy-app-sdk 0.0.136 → 0.0.138
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/dist/cjs/packages/eebus/eebus-hvac-client.d.cts +13 -2
- package/dist/cjs/types/enyo-data-bus-value.cjs +3 -0
- package/dist/cjs/types/enyo-data-bus-value.d.cts +75 -1
- package/dist/cjs/version.cjs +1 -1
- package/dist/cjs/version.d.cts +1 -1
- package/dist/packages/eebus/eebus-hvac-client.d.ts +13 -2
- package/dist/types/enyo-data-bus-value.d.ts +75 -1
- package/dist/types/enyo-data-bus-value.js +3 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -11,7 +11,8 @@ import { EebusHvacOperationMode, EebusHvacZoneState } from '../../types/enyo-eeb
|
|
|
11
11
|
* The client exposes both actor roles on a single interface:
|
|
12
12
|
* - **EMS role (outbound):** {@link getOperationMode}, {@link setOperationMode},
|
|
13
13
|
* {@link getZoneStates}, {@link onZoneStateChanged}
|
|
14
|
-
* - **CS role (inbound):** {@link provideOperationMode}, {@link provideZoneStates}
|
|
14
|
+
* - **CS role (inbound):** {@link provideOperationMode}, {@link provideZoneStates},
|
|
15
|
+
* {@link onOperationModeReceived}
|
|
15
16
|
*
|
|
16
17
|
* Consumers that only act in one role simply never call the other half — there
|
|
17
18
|
* is no `asManager` / `asAppliance` split.
|
|
@@ -54,7 +55,17 @@ export interface EebusHvacClient {
|
|
|
54
55
|
*/
|
|
55
56
|
provideZoneStates: (provider: () => Promise<EebusHvacZoneState[]>) => void;
|
|
56
57
|
/**
|
|
57
|
-
*
|
|
58
|
+
* Register a handler invoked when a remote EMS writes the operation mode
|
|
59
|
+
* to this device. Implementations should apply the mode to the local
|
|
60
|
+
* controller. Mirrors {@link EebusSetpointClient.onSetpointReceived} so
|
|
61
|
+
* package authors see a consistent write-handler shape across features.
|
|
62
|
+
* @param handler Callback invoked with the incoming operation mode
|
|
63
|
+
* @returns Listener ID that can be passed to {@link removeListener} to deregister
|
|
64
|
+
*/
|
|
65
|
+
onOperationModeReceived: (handler: (mode: EebusHvacOperationMode) => Promise<void>) => string;
|
|
66
|
+
/**
|
|
67
|
+
* Remove a listener previously registered via {@link onZoneStateChanged}
|
|
68
|
+
* or {@link onOperationModeReceived}.
|
|
58
69
|
* @param listenerId The ID returned by the registration method
|
|
59
70
|
*/
|
|
60
71
|
removeListener: (listenerId: string) => void;
|
|
@@ -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
|
+
}
|
package/dist/cjs/version.cjs
CHANGED
|
@@ -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.
|
|
12
|
+
exports.SDK_VERSION = '0.0.138';
|
|
13
13
|
/**
|
|
14
14
|
* Gets the current SDK version.
|
|
15
15
|
* @returns The semantic version string of the SDK
|
package/dist/cjs/version.d.cts
CHANGED
|
@@ -11,7 +11,8 @@ import { EebusHvacOperationMode, EebusHvacZoneState } from '../../types/enyo-eeb
|
|
|
11
11
|
* The client exposes both actor roles on a single interface:
|
|
12
12
|
* - **EMS role (outbound):** {@link getOperationMode}, {@link setOperationMode},
|
|
13
13
|
* {@link getZoneStates}, {@link onZoneStateChanged}
|
|
14
|
-
* - **CS role (inbound):** {@link provideOperationMode}, {@link provideZoneStates}
|
|
14
|
+
* - **CS role (inbound):** {@link provideOperationMode}, {@link provideZoneStates},
|
|
15
|
+
* {@link onOperationModeReceived}
|
|
15
16
|
*
|
|
16
17
|
* Consumers that only act in one role simply never call the other half — there
|
|
17
18
|
* is no `asManager` / `asAppliance` split.
|
|
@@ -54,7 +55,17 @@ export interface EebusHvacClient {
|
|
|
54
55
|
*/
|
|
55
56
|
provideZoneStates: (provider: () => Promise<EebusHvacZoneState[]>) => void;
|
|
56
57
|
/**
|
|
57
|
-
*
|
|
58
|
+
* Register a handler invoked when a remote EMS writes the operation mode
|
|
59
|
+
* to this device. Implementations should apply the mode to the local
|
|
60
|
+
* controller. Mirrors {@link EebusSetpointClient.onSetpointReceived} so
|
|
61
|
+
* package authors see a consistent write-handler shape across features.
|
|
62
|
+
* @param handler Callback invoked with the incoming operation mode
|
|
63
|
+
* @returns Listener ID that can be passed to {@link removeListener} to deregister
|
|
64
|
+
*/
|
|
65
|
+
onOperationModeReceived: (handler: (mode: EebusHvacOperationMode) => Promise<void>) => string;
|
|
66
|
+
/**
|
|
67
|
+
* Remove a listener previously registered via {@link onZoneStateChanged}
|
|
68
|
+
* or {@link onOperationModeReceived}.
|
|
58
69
|
* @param listenerId The ID returned by the registration method
|
|
59
70
|
*/
|
|
60
71
|
removeListener: (listenerId: string) => void;
|
|
@@ -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
package/dist/version.js
CHANGED