@enyo-energy/energy-app-sdk 0.0.142 → 0.0.144
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/energy-app-permission.type.cjs +1 -0
- package/dist/cjs/energy-app-permission.type.d.cts +2 -1
- package/dist/cjs/implementations/forecasts/home-consumption-forecast.cjs +1 -1
- package/dist/cjs/types/enyo-data-bus-value.cjs +0 -2
- package/dist/cjs/types/enyo-data-bus-value.d.cts +12 -84
- package/dist/cjs/version.cjs +1 -1
- package/dist/cjs/version.d.cts +1 -1
- package/dist/energy-app-permission.type.d.ts +2 -1
- package/dist/energy-app-permission.type.js +1 -0
- package/dist/implementations/forecasts/home-consumption-forecast.js +1 -1
- package/dist/types/enyo-data-bus-value.d.ts +12 -84
- package/dist/types/enyo-data-bus-value.js +0 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ var EnergyAppPermissionTypeEnum;
|
|
|
7
7
|
EnergyAppPermissionTypeEnum["NetworkDeviceDiscovery"] = "NetworkDeviceDiscovery";
|
|
8
8
|
EnergyAppPermissionTypeEnum["NetworkDeviceSearch"] = "NetworkDeviceSearch";
|
|
9
9
|
EnergyAppPermissionTypeEnum["NetworkDeviceAccess"] = "NetworkDeviceAccess";
|
|
10
|
+
EnergyAppPermissionTypeEnum["AllNetworkDeviceAccess"] = "AllNetworkDeviceAccess";
|
|
10
11
|
EnergyAppPermissionTypeEnum["Modbus"] = "Modbus";
|
|
11
12
|
EnergyAppPermissionTypeEnum["Storage"] = "Storage";
|
|
12
13
|
EnergyAppPermissionTypeEnum["Appliance"] = "Appliance";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export type EnergyAppPermissionType = 'RestrictedInternetAccess' | 'NetworkDeviceDiscovery' | 'NetworkDeviceSearch' | 'NetworkDeviceAccess' | 'Modbus' | 'Storage' | 'Appliance' | 'AllAppliances' | 'SendDataBusValues' | 'SubscribeDataBus' | 'SendDataBusCommands' | 'OcppServer' | 'ChargingCard' | 'Vehicle' | 'Charge' | 'SecretManager' | 'LocationZipCode' | 'LocationCoordinates' | 'Timeseries' | 'EnergyManagerInfo' | 'ElectricityTariff' | 'WeatherForecastRegister' | 'WeatherForecastUse' | 'PvForecastRegister' | 'PvForecastUse' | 'DynamicPriceForecastRegister' | 'DynamicPriceForecastUse' | 'PvSystemRegister' | 'PvSystemUse' | 'InverterControlCommands' | 'BatteryControlCommands' | 'ChargerControlCommands' | 'ModbusRtu' | 'EnergyPrices' | 'EnergyManager' | 'EebusDeviceManagement' | 'EebusDataAccess' | 'EebusControl' | 'Mqtt' | 'Bluetooth' | 'Wifi' | 'ChildProcess' | 'Udp';
|
|
1
|
+
export type EnergyAppPermissionType = 'RestrictedInternetAccess' | 'NetworkDeviceDiscovery' | 'NetworkDeviceSearch' | 'NetworkDeviceAccess' | 'AllNetworkDeviceAccess' | 'Modbus' | 'Storage' | 'Appliance' | 'AllAppliances' | 'SendDataBusValues' | 'SubscribeDataBus' | 'SendDataBusCommands' | 'OcppServer' | 'ChargingCard' | 'Vehicle' | 'Charge' | 'SecretManager' | 'LocationZipCode' | 'LocationCoordinates' | 'Timeseries' | 'EnergyManagerInfo' | 'ElectricityTariff' | 'WeatherForecastRegister' | 'WeatherForecastUse' | 'PvForecastRegister' | 'PvForecastUse' | 'DynamicPriceForecastRegister' | 'DynamicPriceForecastUse' | 'PvSystemRegister' | 'PvSystemUse' | 'InverterControlCommands' | 'BatteryControlCommands' | 'ChargerControlCommands' | 'ModbusRtu' | 'EnergyPrices' | 'EnergyManager' | 'EebusDeviceManagement' | 'EebusDataAccess' | 'EebusControl' | 'Mqtt' | 'Bluetooth' | 'Wifi' | 'ChildProcess' | 'Udp';
|
|
2
2
|
export declare enum EnergyAppPermissionTypeEnum {
|
|
3
3
|
RestrictedInternetAccess = "RestrictedInternetAccess",
|
|
4
4
|
NetworkDeviceDiscovery = "NetworkDeviceDiscovery",
|
|
5
5
|
NetworkDeviceSearch = "NetworkDeviceSearch",
|
|
6
6
|
NetworkDeviceAccess = "NetworkDeviceAccess",
|
|
7
|
+
AllNetworkDeviceAccess = "AllNetworkDeviceAccess",
|
|
7
8
|
Modbus = "Modbus",
|
|
8
9
|
Storage = "Storage",
|
|
9
10
|
Appliance = "Appliance",
|
|
@@ -132,7 +132,7 @@ class HomeConsumptionForecast {
|
|
|
132
132
|
this.initialized = false;
|
|
133
133
|
}
|
|
134
134
|
onAggregatedState(message) {
|
|
135
|
-
const power = message.data.
|
|
135
|
+
const power = message.data.homeConsumptionW;
|
|
136
136
|
if (typeof power !== 'number' || Number.isNaN(power))
|
|
137
137
|
return;
|
|
138
138
|
const ts = new Date(message.timestampIso).getTime();
|
|
@@ -170,8 +170,6 @@ var EnyoDataBusMessageEnum;
|
|
|
170
170
|
EnyoDataBusMessageEnum["StartAirConditioningV1"] = "StartAirConditioningV1";
|
|
171
171
|
EnyoDataBusMessageEnum["StopAirConditioningV1"] = "StopAirConditioningV1";
|
|
172
172
|
EnyoDataBusMessageEnum["VehicleSocUpdateV1"] = "VehicleSocUpdateV1";
|
|
173
|
-
EnyoDataBusMessageEnum["StartCalibrationV1"] = "StartCalibrationV1";
|
|
174
|
-
EnyoDataBusMessageEnum["StopCalibrationV1"] = "StopCalibrationV1";
|
|
175
173
|
})(EnyoDataBusMessageEnum || (exports.EnyoDataBusMessageEnum = EnyoDataBusMessageEnum = {}));
|
|
176
174
|
/**
|
|
177
175
|
* Storage control mode carried by {@link EnyoDataBusSetStorageScheduleV1}.
|
|
@@ -126,27 +126,12 @@ export declare enum EnyoChargeModeEnum {
|
|
|
126
126
|
PriceLimit = "price-limit"
|
|
127
127
|
}
|
|
128
128
|
export interface EnyoAggregatedStateApplianceValues {
|
|
129
|
-
|
|
130
|
-
gridFeedInWh?: number;
|
|
131
|
-
gridConsumptionWh?: number;
|
|
132
|
-
selfConsumptionW?: number;
|
|
133
|
-
selfConsumptionWh?: number;
|
|
134
|
-
batteryPowerW?: number;
|
|
129
|
+
powerW?: number;
|
|
135
130
|
batterySoC?: number;
|
|
136
|
-
pvPowerW?: number;
|
|
137
131
|
currentA?: number;
|
|
138
132
|
voltageL1?: number;
|
|
139
133
|
voltageL2?: number;
|
|
140
134
|
voltageL3?: number;
|
|
141
|
-
pvProductionWh?: number;
|
|
142
|
-
powerConsumptionHeatingWh?: number;
|
|
143
|
-
powerConsumptionDomesticHotWaterWh?: number;
|
|
144
|
-
heatGenerationHeatingWh?: number;
|
|
145
|
-
heatGenerationDomesticHotWaterWh?: number;
|
|
146
|
-
flexibility?: {
|
|
147
|
-
kWh?: number;
|
|
148
|
-
availableUntilIsoTimestamp?: string;
|
|
149
|
-
};
|
|
150
135
|
}
|
|
151
136
|
export declare enum EnyoDataBusMessageEnum {
|
|
152
137
|
InverterValuesUpdateV1 = "InverterValuesUpdateV1",
|
|
@@ -209,9 +194,7 @@ export declare enum EnyoDataBusMessageEnum {
|
|
|
209
194
|
AirConditioningTemperaturesUpdateV1 = "AirConditioningTemperaturesUpdateV1",
|
|
210
195
|
StartAirConditioningV1 = "StartAirConditioningV1",
|
|
211
196
|
StopAirConditioningV1 = "StopAirConditioningV1",
|
|
212
|
-
VehicleSocUpdateV1 = "VehicleSocUpdateV1"
|
|
213
|
-
StartCalibrationV1 = "StartCalibrationV1",
|
|
214
|
-
StopCalibrationV1 = "StopCalibrationV1"
|
|
197
|
+
VehicleSocUpdateV1 = "VehicleSocUpdateV1"
|
|
215
198
|
}
|
|
216
199
|
export type EnyoDataBusMessageResolution = '1s' | '10s' | '30s' | '1m' | '15m' | '1h' | '1d' | 'dynamic';
|
|
217
200
|
/**
|
|
@@ -504,29 +487,17 @@ export interface EnyoDataBusAggregatedStateValuesV1 extends EnyoDataBusMessage {
|
|
|
504
487
|
clockId: string;
|
|
505
488
|
data: {
|
|
506
489
|
/** Total grid power from all appliances (in Watt). Negative: grid feed in, positive: grid consumption */
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
/**
|
|
513
|
-
|
|
514
|
-
/** Total Home consumed energy from all appliances (in Watt hours) */
|
|
515
|
-
totalHomeConsumptionWh?: number;
|
|
516
|
-
/** Total battery power from all appliances (in Watt). Positive = consumption, negative = charging */
|
|
517
|
-
totalBatteryPowerW?: number;
|
|
490
|
+
gridPowerW?: number;
|
|
491
|
+
gridConsumptionW?: number;
|
|
492
|
+
gridFeedInW?: number;
|
|
493
|
+
homeConsumptionW?: number;
|
|
494
|
+
homeConsumptionWithAppliancesW?: number;
|
|
495
|
+
/** battery power from all appliances (in Watt). Positive = consumption, negative = charging */
|
|
496
|
+
batteryPowerW?: number;
|
|
518
497
|
/** Total PV production from all appliances (in Watt) */
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
/** Total power consumption for heating from all appliances (in Watt hours) */
|
|
523
|
-
totalPowerConsumptionHeatingWh?: number;
|
|
524
|
-
/** Total power consumption for domestic hot water from all appliances (in Watt hours) */
|
|
525
|
-
totalPowerConsumptionDomesticHotWaterWh?: number;
|
|
526
|
-
/** Total heat generation for heating from all appliances (in Watt hours) */
|
|
527
|
-
totalHeatGenerationHeatingWh?: number;
|
|
528
|
-
/** Total heat generation for domestic hot water from all appliances (in Watt hours) */
|
|
529
|
-
totalHeatGenerationDomesticHotWaterWh?: number;
|
|
498
|
+
pvProductionPowerW?: number;
|
|
499
|
+
heatpumpPowerW?: number;
|
|
500
|
+
chargerPowerW?: number;
|
|
530
501
|
autarkyPercentage?: number;
|
|
531
502
|
/** Array of all appliances with their individual values and current state */
|
|
532
503
|
appliances: Array<{
|
|
@@ -536,8 +507,6 @@ export interface EnyoDataBusAggregatedStateValuesV1 extends EnyoDataBusMessage {
|
|
|
536
507
|
type: EnyoApplianceTypeEnum;
|
|
537
508
|
/** Current connection state of the appliance */
|
|
538
509
|
state: EnyoApplianceStateEnum;
|
|
539
|
-
/** ISO timestamp of the last update from this appliance */
|
|
540
|
-
lastUpdateIso?: string;
|
|
541
510
|
/** the current state values of the appliance */
|
|
542
511
|
values: EnyoAggregatedStateApplianceValues;
|
|
543
512
|
}>;
|
|
@@ -1581,44 +1550,3 @@ export interface EnyoDataBusVehicleSocUpdateV1 extends EnyoDataBusMessage {
|
|
|
1581
1550
|
batterySizeKwh?: number;
|
|
1582
1551
|
};
|
|
1583
1552
|
}
|
|
1584
|
-
/**
|
|
1585
|
-
* Command message to start a calibration routine on a specific appliance.
|
|
1586
|
-
* Calibration is a vendor- and appliance-specific procedure (e.g. zeroing
|
|
1587
|
-
* a meter, learning a power range, aligning sensors); the targeted
|
|
1588
|
-
* integration decides what calibration entails for the given appliance.
|
|
1589
|
-
*
|
|
1590
|
-
* The receiving integration must answer with an
|
|
1591
|
-
* {@link EnyoDataBusCommandAcknowledgeV1} message that references this
|
|
1592
|
-
* message's `id` to indicate whether the calibration was accepted,
|
|
1593
|
-
* rejected, or is not supported by the appliance.
|
|
1594
|
-
*/
|
|
1595
|
-
export interface EnyoDataBusStartCalibrationV1 extends EnyoDataBusMessage {
|
|
1596
|
-
type: 'message';
|
|
1597
|
-
message: EnyoDataBusMessageEnum.StartCalibrationV1;
|
|
1598
|
-
/** ID of the appliance to start calibration on */
|
|
1599
|
-
applianceId: string;
|
|
1600
|
-
data: {
|
|
1601
|
-
/** Optional reason why this command was issued */
|
|
1602
|
-
reason?: EnyoDataBusCommandReason;
|
|
1603
|
-
};
|
|
1604
|
-
}
|
|
1605
|
-
/**
|
|
1606
|
-
* Command message to stop a calibration routine that is currently running
|
|
1607
|
-
* on a specific appliance. The targeted integration is expected to abort
|
|
1608
|
-
* any in-progress calibration for the addressed appliance.
|
|
1609
|
-
*
|
|
1610
|
-
* The receiving integration must answer with an
|
|
1611
|
-
* {@link EnyoDataBusCommandAcknowledgeV1} message that references this
|
|
1612
|
-
* message's `id` to indicate whether the stop request was accepted,
|
|
1613
|
-
* rejected, or is not supported by the appliance.
|
|
1614
|
-
*/
|
|
1615
|
-
export interface EnyoDataBusStopCalibrationV1 extends EnyoDataBusMessage {
|
|
1616
|
-
type: 'message';
|
|
1617
|
-
message: EnyoDataBusMessageEnum.StopCalibrationV1;
|
|
1618
|
-
/** ID of the appliance to stop calibration on */
|
|
1619
|
-
applianceId: string;
|
|
1620
|
-
data: {
|
|
1621
|
-
/** Optional reason why this command was issued */
|
|
1622
|
-
reason?: EnyoDataBusCommandReason;
|
|
1623
|
-
};
|
|
1624
|
-
}
|
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.144';
|
|
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
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export type EnergyAppPermissionType = 'RestrictedInternetAccess' | 'NetworkDeviceDiscovery' | 'NetworkDeviceSearch' | 'NetworkDeviceAccess' | 'Modbus' | 'Storage' | 'Appliance' | 'AllAppliances' | 'SendDataBusValues' | 'SubscribeDataBus' | 'SendDataBusCommands' | 'OcppServer' | 'ChargingCard' | 'Vehicle' | 'Charge' | 'SecretManager' | 'LocationZipCode' | 'LocationCoordinates' | 'Timeseries' | 'EnergyManagerInfo' | 'ElectricityTariff' | 'WeatherForecastRegister' | 'WeatherForecastUse' | 'PvForecastRegister' | 'PvForecastUse' | 'DynamicPriceForecastRegister' | 'DynamicPriceForecastUse' | 'PvSystemRegister' | 'PvSystemUse' | 'InverterControlCommands' | 'BatteryControlCommands' | 'ChargerControlCommands' | 'ModbusRtu' | 'EnergyPrices' | 'EnergyManager' | 'EebusDeviceManagement' | 'EebusDataAccess' | 'EebusControl' | 'Mqtt' | 'Bluetooth' | 'Wifi' | 'ChildProcess' | 'Udp';
|
|
1
|
+
export type EnergyAppPermissionType = 'RestrictedInternetAccess' | 'NetworkDeviceDiscovery' | 'NetworkDeviceSearch' | 'NetworkDeviceAccess' | 'AllNetworkDeviceAccess' | 'Modbus' | 'Storage' | 'Appliance' | 'AllAppliances' | 'SendDataBusValues' | 'SubscribeDataBus' | 'SendDataBusCommands' | 'OcppServer' | 'ChargingCard' | 'Vehicle' | 'Charge' | 'SecretManager' | 'LocationZipCode' | 'LocationCoordinates' | 'Timeseries' | 'EnergyManagerInfo' | 'ElectricityTariff' | 'WeatherForecastRegister' | 'WeatherForecastUse' | 'PvForecastRegister' | 'PvForecastUse' | 'DynamicPriceForecastRegister' | 'DynamicPriceForecastUse' | 'PvSystemRegister' | 'PvSystemUse' | 'InverterControlCommands' | 'BatteryControlCommands' | 'ChargerControlCommands' | 'ModbusRtu' | 'EnergyPrices' | 'EnergyManager' | 'EebusDeviceManagement' | 'EebusDataAccess' | 'EebusControl' | 'Mqtt' | 'Bluetooth' | 'Wifi' | 'ChildProcess' | 'Udp';
|
|
2
2
|
export declare enum EnergyAppPermissionTypeEnum {
|
|
3
3
|
RestrictedInternetAccess = "RestrictedInternetAccess",
|
|
4
4
|
NetworkDeviceDiscovery = "NetworkDeviceDiscovery",
|
|
5
5
|
NetworkDeviceSearch = "NetworkDeviceSearch",
|
|
6
6
|
NetworkDeviceAccess = "NetworkDeviceAccess",
|
|
7
|
+
AllNetworkDeviceAccess = "AllNetworkDeviceAccess",
|
|
7
8
|
Modbus = "Modbus",
|
|
8
9
|
Storage = "Storage",
|
|
9
10
|
Appliance = "Appliance",
|
|
@@ -4,6 +4,7 @@ export var EnergyAppPermissionTypeEnum;
|
|
|
4
4
|
EnergyAppPermissionTypeEnum["NetworkDeviceDiscovery"] = "NetworkDeviceDiscovery";
|
|
5
5
|
EnergyAppPermissionTypeEnum["NetworkDeviceSearch"] = "NetworkDeviceSearch";
|
|
6
6
|
EnergyAppPermissionTypeEnum["NetworkDeviceAccess"] = "NetworkDeviceAccess";
|
|
7
|
+
EnergyAppPermissionTypeEnum["AllNetworkDeviceAccess"] = "AllNetworkDeviceAccess";
|
|
7
8
|
EnergyAppPermissionTypeEnum["Modbus"] = "Modbus";
|
|
8
9
|
EnergyAppPermissionTypeEnum["Storage"] = "Storage";
|
|
9
10
|
EnergyAppPermissionTypeEnum["Appliance"] = "Appliance";
|
|
@@ -129,7 +129,7 @@ export class HomeConsumptionForecast {
|
|
|
129
129
|
this.initialized = false;
|
|
130
130
|
}
|
|
131
131
|
onAggregatedState(message) {
|
|
132
|
-
const power = message.data.
|
|
132
|
+
const power = message.data.homeConsumptionW;
|
|
133
133
|
if (typeof power !== 'number' || Number.isNaN(power))
|
|
134
134
|
return;
|
|
135
135
|
const ts = new Date(message.timestampIso).getTime();
|
|
@@ -126,27 +126,12 @@ export declare enum EnyoChargeModeEnum {
|
|
|
126
126
|
PriceLimit = "price-limit"
|
|
127
127
|
}
|
|
128
128
|
export interface EnyoAggregatedStateApplianceValues {
|
|
129
|
-
|
|
130
|
-
gridFeedInWh?: number;
|
|
131
|
-
gridConsumptionWh?: number;
|
|
132
|
-
selfConsumptionW?: number;
|
|
133
|
-
selfConsumptionWh?: number;
|
|
134
|
-
batteryPowerW?: number;
|
|
129
|
+
powerW?: number;
|
|
135
130
|
batterySoC?: number;
|
|
136
|
-
pvPowerW?: number;
|
|
137
131
|
currentA?: number;
|
|
138
132
|
voltageL1?: number;
|
|
139
133
|
voltageL2?: number;
|
|
140
134
|
voltageL3?: number;
|
|
141
|
-
pvProductionWh?: number;
|
|
142
|
-
powerConsumptionHeatingWh?: number;
|
|
143
|
-
powerConsumptionDomesticHotWaterWh?: number;
|
|
144
|
-
heatGenerationHeatingWh?: number;
|
|
145
|
-
heatGenerationDomesticHotWaterWh?: number;
|
|
146
|
-
flexibility?: {
|
|
147
|
-
kWh?: number;
|
|
148
|
-
availableUntilIsoTimestamp?: string;
|
|
149
|
-
};
|
|
150
135
|
}
|
|
151
136
|
export declare enum EnyoDataBusMessageEnum {
|
|
152
137
|
InverterValuesUpdateV1 = "InverterValuesUpdateV1",
|
|
@@ -209,9 +194,7 @@ export declare enum EnyoDataBusMessageEnum {
|
|
|
209
194
|
AirConditioningTemperaturesUpdateV1 = "AirConditioningTemperaturesUpdateV1",
|
|
210
195
|
StartAirConditioningV1 = "StartAirConditioningV1",
|
|
211
196
|
StopAirConditioningV1 = "StopAirConditioningV1",
|
|
212
|
-
VehicleSocUpdateV1 = "VehicleSocUpdateV1"
|
|
213
|
-
StartCalibrationV1 = "StartCalibrationV1",
|
|
214
|
-
StopCalibrationV1 = "StopCalibrationV1"
|
|
197
|
+
VehicleSocUpdateV1 = "VehicleSocUpdateV1"
|
|
215
198
|
}
|
|
216
199
|
export type EnyoDataBusMessageResolution = '1s' | '10s' | '30s' | '1m' | '15m' | '1h' | '1d' | 'dynamic';
|
|
217
200
|
/**
|
|
@@ -504,29 +487,17 @@ export interface EnyoDataBusAggregatedStateValuesV1 extends EnyoDataBusMessage {
|
|
|
504
487
|
clockId: string;
|
|
505
488
|
data: {
|
|
506
489
|
/** Total grid power from all appliances (in Watt). Negative: grid feed in, positive: grid consumption */
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
/**
|
|
513
|
-
|
|
514
|
-
/** Total Home consumed energy from all appliances (in Watt hours) */
|
|
515
|
-
totalHomeConsumptionWh?: number;
|
|
516
|
-
/** Total battery power from all appliances (in Watt). Positive = consumption, negative = charging */
|
|
517
|
-
totalBatteryPowerW?: number;
|
|
490
|
+
gridPowerW?: number;
|
|
491
|
+
gridConsumptionW?: number;
|
|
492
|
+
gridFeedInW?: number;
|
|
493
|
+
homeConsumptionW?: number;
|
|
494
|
+
homeConsumptionWithAppliancesW?: number;
|
|
495
|
+
/** battery power from all appliances (in Watt). Positive = consumption, negative = charging */
|
|
496
|
+
batteryPowerW?: number;
|
|
518
497
|
/** Total PV production from all appliances (in Watt) */
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
/** Total power consumption for heating from all appliances (in Watt hours) */
|
|
523
|
-
totalPowerConsumptionHeatingWh?: number;
|
|
524
|
-
/** Total power consumption for domestic hot water from all appliances (in Watt hours) */
|
|
525
|
-
totalPowerConsumptionDomesticHotWaterWh?: number;
|
|
526
|
-
/** Total heat generation for heating from all appliances (in Watt hours) */
|
|
527
|
-
totalHeatGenerationHeatingWh?: number;
|
|
528
|
-
/** Total heat generation for domestic hot water from all appliances (in Watt hours) */
|
|
529
|
-
totalHeatGenerationDomesticHotWaterWh?: number;
|
|
498
|
+
pvProductionPowerW?: number;
|
|
499
|
+
heatpumpPowerW?: number;
|
|
500
|
+
chargerPowerW?: number;
|
|
530
501
|
autarkyPercentage?: number;
|
|
531
502
|
/** Array of all appliances with their individual values and current state */
|
|
532
503
|
appliances: Array<{
|
|
@@ -536,8 +507,6 @@ export interface EnyoDataBusAggregatedStateValuesV1 extends EnyoDataBusMessage {
|
|
|
536
507
|
type: EnyoApplianceTypeEnum;
|
|
537
508
|
/** Current connection state of the appliance */
|
|
538
509
|
state: EnyoApplianceStateEnum;
|
|
539
|
-
/** ISO timestamp of the last update from this appliance */
|
|
540
|
-
lastUpdateIso?: string;
|
|
541
510
|
/** the current state values of the appliance */
|
|
542
511
|
values: EnyoAggregatedStateApplianceValues;
|
|
543
512
|
}>;
|
|
@@ -1581,44 +1550,3 @@ export interface EnyoDataBusVehicleSocUpdateV1 extends EnyoDataBusMessage {
|
|
|
1581
1550
|
batterySizeKwh?: number;
|
|
1582
1551
|
};
|
|
1583
1552
|
}
|
|
1584
|
-
/**
|
|
1585
|
-
* Command message to start a calibration routine on a specific appliance.
|
|
1586
|
-
* Calibration is a vendor- and appliance-specific procedure (e.g. zeroing
|
|
1587
|
-
* a meter, learning a power range, aligning sensors); the targeted
|
|
1588
|
-
* integration decides what calibration entails for the given appliance.
|
|
1589
|
-
*
|
|
1590
|
-
* The receiving integration must answer with an
|
|
1591
|
-
* {@link EnyoDataBusCommandAcknowledgeV1} message that references this
|
|
1592
|
-
* message's `id` to indicate whether the calibration was accepted,
|
|
1593
|
-
* rejected, or is not supported by the appliance.
|
|
1594
|
-
*/
|
|
1595
|
-
export interface EnyoDataBusStartCalibrationV1 extends EnyoDataBusMessage {
|
|
1596
|
-
type: 'message';
|
|
1597
|
-
message: EnyoDataBusMessageEnum.StartCalibrationV1;
|
|
1598
|
-
/** ID of the appliance to start calibration on */
|
|
1599
|
-
applianceId: string;
|
|
1600
|
-
data: {
|
|
1601
|
-
/** Optional reason why this command was issued */
|
|
1602
|
-
reason?: EnyoDataBusCommandReason;
|
|
1603
|
-
};
|
|
1604
|
-
}
|
|
1605
|
-
/**
|
|
1606
|
-
* Command message to stop a calibration routine that is currently running
|
|
1607
|
-
* on a specific appliance. The targeted integration is expected to abort
|
|
1608
|
-
* any in-progress calibration for the addressed appliance.
|
|
1609
|
-
*
|
|
1610
|
-
* The receiving integration must answer with an
|
|
1611
|
-
* {@link EnyoDataBusCommandAcknowledgeV1} message that references this
|
|
1612
|
-
* message's `id` to indicate whether the stop request was accepted,
|
|
1613
|
-
* rejected, or is not supported by the appliance.
|
|
1614
|
-
*/
|
|
1615
|
-
export interface EnyoDataBusStopCalibrationV1 extends EnyoDataBusMessage {
|
|
1616
|
-
type: 'message';
|
|
1617
|
-
message: EnyoDataBusMessageEnum.StopCalibrationV1;
|
|
1618
|
-
/** ID of the appliance to stop calibration on */
|
|
1619
|
-
applianceId: string;
|
|
1620
|
-
data: {
|
|
1621
|
-
/** Optional reason why this command was issued */
|
|
1622
|
-
reason?: EnyoDataBusCommandReason;
|
|
1623
|
-
};
|
|
1624
|
-
}
|
|
@@ -167,8 +167,6 @@ export var EnyoDataBusMessageEnum;
|
|
|
167
167
|
EnyoDataBusMessageEnum["StartAirConditioningV1"] = "StartAirConditioningV1";
|
|
168
168
|
EnyoDataBusMessageEnum["StopAirConditioningV1"] = "StopAirConditioningV1";
|
|
169
169
|
EnyoDataBusMessageEnum["VehicleSocUpdateV1"] = "VehicleSocUpdateV1";
|
|
170
|
-
EnyoDataBusMessageEnum["StartCalibrationV1"] = "StartCalibrationV1";
|
|
171
|
-
EnyoDataBusMessageEnum["StopCalibrationV1"] = "StopCalibrationV1";
|
|
172
170
|
})(EnyoDataBusMessageEnum || (EnyoDataBusMessageEnum = {}));
|
|
173
171
|
/**
|
|
174
172
|
* Storage control mode carried by {@link EnyoDataBusSetStorageScheduleV1}.
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED