@enyo-energy/energy-app-sdk 0.0.130 → 0.0.131
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/types/enyo-data-bus-value.cjs +1 -0
- package/dist/cjs/types/enyo-data-bus-value.d.cts +19 -1
- package/dist/cjs/types/enyo-vehicle.d.cts +1 -0
- package/dist/cjs/version.cjs +1 -1
- package/dist/cjs/version.d.cts +1 -1
- package/dist/types/enyo-data-bus-value.d.ts +19 -1
- package/dist/types/enyo-data-bus-value.js +1 -0
- package/dist/types/enyo-vehicle.d.ts +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -161,6 +161,7 @@ var EnyoDataBusMessageEnum;
|
|
|
161
161
|
EnyoDataBusMessageEnum["AirConditioningTemperaturesUpdateV1"] = "AirConditioningTemperaturesUpdateV1";
|
|
162
162
|
EnyoDataBusMessageEnum["StartAirConditioningV1"] = "StartAirConditioningV1";
|
|
163
163
|
EnyoDataBusMessageEnum["StopAirConditioningV1"] = "StopAirConditioningV1";
|
|
164
|
+
EnyoDataBusMessageEnum["VehicleSocUpdateV1"] = "VehicleSocUpdateV1";
|
|
164
165
|
})(EnyoDataBusMessageEnum || (exports.EnyoDataBusMessageEnum = EnyoDataBusMessageEnum = {}));
|
|
165
166
|
/**
|
|
166
167
|
* Possible answers an appliance can give when acknowledging a command.
|
|
@@ -200,7 +200,8 @@ export declare enum EnyoDataBusMessageEnum {
|
|
|
200
200
|
AirConditioningValuesUpdateV1 = "AirConditioningValuesUpdateV1",
|
|
201
201
|
AirConditioningTemperaturesUpdateV1 = "AirConditioningTemperaturesUpdateV1",
|
|
202
202
|
StartAirConditioningV1 = "StartAirConditioningV1",
|
|
203
|
-
StopAirConditioningV1 = "StopAirConditioningV1"
|
|
203
|
+
StopAirConditioningV1 = "StopAirConditioningV1",
|
|
204
|
+
VehicleSocUpdateV1 = "VehicleSocUpdateV1"
|
|
204
205
|
}
|
|
205
206
|
export type EnyoDataBusMessageResolution = '10s' | '30s' | '1m' | '15m' | '1h' | '1d' | 'dynamic';
|
|
206
207
|
/**
|
|
@@ -1375,3 +1376,20 @@ export interface EnyoDataBusStopAirConditioningV1 extends EnyoDataBusMessage {
|
|
|
1375
1376
|
reason?: EnyoDataBusCommandReason;
|
|
1376
1377
|
};
|
|
1377
1378
|
}
|
|
1379
|
+
/**
|
|
1380
|
+
* Informational message reporting the current state of charge of an electric vehicle.
|
|
1381
|
+
* Published whenever an updated SoC reading becomes available — typically while the
|
|
1382
|
+
* vehicle is plugged in or when the vehicle reports its SoC via a connected service.
|
|
1383
|
+
*/
|
|
1384
|
+
export interface EnyoDataBusVehicleSocUpdateV1 extends EnyoDataBusMessage {
|
|
1385
|
+
type: 'message';
|
|
1386
|
+
message: EnyoDataBusMessageEnum.VehicleSocUpdateV1;
|
|
1387
|
+
data: {
|
|
1388
|
+
/** ID of the vehicle the SoC reading belongs to */
|
|
1389
|
+
vehicleId: string;
|
|
1390
|
+
/** Current state of charge of the vehicle's traction battery in percent (0-100) */
|
|
1391
|
+
socPercent: number;
|
|
1392
|
+
/** Total usable capacity of the vehicle's traction battery in kWh, if known */
|
|
1393
|
+
batterySizeKwh?: number;
|
|
1394
|
+
};
|
|
1395
|
+
}
|
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.131';
|
|
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
|
@@ -200,7 +200,8 @@ export declare enum EnyoDataBusMessageEnum {
|
|
|
200
200
|
AirConditioningValuesUpdateV1 = "AirConditioningValuesUpdateV1",
|
|
201
201
|
AirConditioningTemperaturesUpdateV1 = "AirConditioningTemperaturesUpdateV1",
|
|
202
202
|
StartAirConditioningV1 = "StartAirConditioningV1",
|
|
203
|
-
StopAirConditioningV1 = "StopAirConditioningV1"
|
|
203
|
+
StopAirConditioningV1 = "StopAirConditioningV1",
|
|
204
|
+
VehicleSocUpdateV1 = "VehicleSocUpdateV1"
|
|
204
205
|
}
|
|
205
206
|
export type EnyoDataBusMessageResolution = '10s' | '30s' | '1m' | '15m' | '1h' | '1d' | 'dynamic';
|
|
206
207
|
/**
|
|
@@ -1375,3 +1376,20 @@ export interface EnyoDataBusStopAirConditioningV1 extends EnyoDataBusMessage {
|
|
|
1375
1376
|
reason?: EnyoDataBusCommandReason;
|
|
1376
1377
|
};
|
|
1377
1378
|
}
|
|
1379
|
+
/**
|
|
1380
|
+
* Informational message reporting the current state of charge of an electric vehicle.
|
|
1381
|
+
* Published whenever an updated SoC reading becomes available — typically while the
|
|
1382
|
+
* vehicle is plugged in or when the vehicle reports its SoC via a connected service.
|
|
1383
|
+
*/
|
|
1384
|
+
export interface EnyoDataBusVehicleSocUpdateV1 extends EnyoDataBusMessage {
|
|
1385
|
+
type: 'message';
|
|
1386
|
+
message: EnyoDataBusMessageEnum.VehicleSocUpdateV1;
|
|
1387
|
+
data: {
|
|
1388
|
+
/** ID of the vehicle the SoC reading belongs to */
|
|
1389
|
+
vehicleId: string;
|
|
1390
|
+
/** Current state of charge of the vehicle's traction battery in percent (0-100) */
|
|
1391
|
+
socPercent: number;
|
|
1392
|
+
/** Total usable capacity of the vehicle's traction battery in kWh, if known */
|
|
1393
|
+
batterySizeKwh?: number;
|
|
1394
|
+
};
|
|
1395
|
+
}
|
|
@@ -158,6 +158,7 @@ export var EnyoDataBusMessageEnum;
|
|
|
158
158
|
EnyoDataBusMessageEnum["AirConditioningTemperaturesUpdateV1"] = "AirConditioningTemperaturesUpdateV1";
|
|
159
159
|
EnyoDataBusMessageEnum["StartAirConditioningV1"] = "StartAirConditioningV1";
|
|
160
160
|
EnyoDataBusMessageEnum["StopAirConditioningV1"] = "StopAirConditioningV1";
|
|
161
|
+
EnyoDataBusMessageEnum["VehicleSocUpdateV1"] = "VehicleSocUpdateV1";
|
|
161
162
|
})(EnyoDataBusMessageEnum || (EnyoDataBusMessageEnum = {}));
|
|
162
163
|
/**
|
|
163
164
|
* Possible answers an appliance can give when acknowledging a command.
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED