homebridge-enphase-envoy 10.3.0-beta.7 → 10.3.0-beta.8
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/package.json +1 -1
- package/src/envoydevice.js +12 -12
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"private": false,
|
|
3
3
|
"displayName": "Enphase Envoy",
|
|
4
4
|
"name": "homebridge-enphase-envoy",
|
|
5
|
-
"version": "10.3.0-beta.
|
|
5
|
+
"version": "10.3.0-beta.8",
|
|
6
6
|
"description": "Homebridge p7ugin for Photovoltaic Energy System manufactured by Enphase.",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"author": "grzegorz914",
|
package/src/envoydevice.js
CHANGED
|
@@ -4334,10 +4334,10 @@ class EnvoyDevice extends EventEmitter {
|
|
|
4334
4334
|
// Add to ensemble summary characteristics if live data not supported
|
|
4335
4335
|
if (!this.feature.liveData.supported || !this.feature.meters.storage.enabled) {
|
|
4336
4336
|
ensembleSummaryCharacteristics.push(
|
|
4337
|
-
{ type: Characteristic.AggMaxEnergy, value: secctrl.aggMaxEnergyKw },
|
|
4338
|
-
{ type: Characteristic.EncAggBackupEnergy, value: secctrl.encAggBackupEnergy },
|
|
4339
4337
|
{ type: Characteristic.AggSoc, value: secctrl.aggSoc },
|
|
4340
|
-
{ type: Characteristic.
|
|
4338
|
+
{ type: Characteristic.AggMaxEnergy, value: secctrl.aggMaxEnergyKw },
|
|
4339
|
+
{ type: Characteristic.EncAggSoc, value: secctrl.encAggSoc },
|
|
4340
|
+
{ type: Characteristic.EncAggBackupEnergy, value: secctrl.encAggBackupEnergy });
|
|
4341
4341
|
}
|
|
4342
4342
|
|
|
4343
4343
|
if (phaseA) {
|
|
@@ -4839,7 +4839,7 @@ class EnvoyDevice extends EventEmitter {
|
|
|
4839
4839
|
logger: info.logger ?? '',
|
|
4840
4840
|
date: this.functions.formatTimestamp(info.date, this.pv.homeData.timeZone),
|
|
4841
4841
|
};
|
|
4842
|
-
|
|
4842
|
+
|
|
4843
4843
|
// Storage Settings
|
|
4844
4844
|
const s = info.storage_settings ?? {};
|
|
4845
4845
|
tariff.storageSettings = {
|
|
@@ -4884,10 +4884,10 @@ if (this.logDebug) this.emit('debug', `Requesting encharges tariff data1`);
|
|
|
4884
4884
|
return season;
|
|
4885
4885
|
});
|
|
4886
4886
|
};
|
|
4887
|
-
|
|
4887
|
+
|
|
4888
4888
|
tariff.seasons = processSeasons(info.seasons ?? []);
|
|
4889
4889
|
tariff.seasonsSell = processSeasons(info.seasons_sell ?? []);
|
|
4890
|
-
|
|
4890
|
+
|
|
4891
4891
|
// Schedule
|
|
4892
4892
|
const sched = tariffData.schedule ?? {};
|
|
4893
4893
|
tariff.schedule = {
|
|
@@ -4907,7 +4907,7 @@ if (this.logDebug) this.emit('debug', `Requesting encharges tariff data3`);
|
|
|
4907
4907
|
overrideTouMode: ApiCodes[sched.override_tou_mode] ?? sched.override_tou_mode,
|
|
4908
4908
|
schedule: sched.schedule ?? {}
|
|
4909
4909
|
};
|
|
4910
|
-
|
|
4910
|
+
|
|
4911
4911
|
// Encharge profile control updates
|
|
4912
4912
|
for (let i = 0; i < this.enchargeProfileControls.length; i++) {
|
|
4913
4913
|
const control = this.enchargeProfileControls[i];
|
|
@@ -4932,7 +4932,7 @@ if (this.logDebug) this.emit('debug', `Requesting encharges tariff data4`);
|
|
|
4932
4932
|
this.enchargeProfileControlsServices?.[i]?.updateCharacteristic(type, value);
|
|
4933
4933
|
}
|
|
4934
4934
|
}
|
|
4935
|
-
if (this.logDebug) this.emit('debug', `Requesting encharges tariff data5`);
|
|
4935
|
+
if (this.logDebug) this.emit('debug', `Requesting encharges tariff data5`);
|
|
4936
4936
|
// Encharge profile sensors update
|
|
4937
4937
|
for (let i = 0; i < this.enchargeProfileSensors.length; i++) {
|
|
4938
4938
|
const sensor = this.enchargeProfileSensors[i];
|
|
@@ -4955,7 +4955,7 @@ if (this.logDebug) this.emit('debug', `Requesting encharges tariff data5`);
|
|
|
4955
4955
|
// Save updated tariff
|
|
4956
4956
|
this.pv.inventoryData.esubs.encharges.tariff = tariff;
|
|
4957
4957
|
}
|
|
4958
|
-
|
|
4958
|
+
if (this.logDebug) this.emit('debug', `Requesting encharges tariff data6`);
|
|
4959
4959
|
// Add rated power summary in kW
|
|
4960
4960
|
if (enchargesStatusSupported && this.functions.isValidValue(encharges.ratedPowerSumKw)) {
|
|
4961
4961
|
this.pv.inventoryData.esubs.encharges.ratedPowerSumKw = encharges.ratedPowerSumKw;
|
|
@@ -4963,7 +4963,7 @@ if (this.logDebug) this.emit('debug', `Requesting encharges tariff data5`);
|
|
|
4963
4963
|
// Add to ensemble summary characteristics
|
|
4964
4964
|
ensembleSummaryCharacteristics.push({ type: Characteristic.RatedPower, value: encharges.ratedPowerSumKw });
|
|
4965
4965
|
}
|
|
4966
|
-
|
|
4966
|
+
if (this.logDebug) this.emit('debug', `Requesting encharges tariff data7`);
|
|
4967
4967
|
// Add real power summary in kW
|
|
4968
4968
|
if (enchargesPowerSupported && this.functions.isValidValue(encharges.realPowerSumKw)) {
|
|
4969
4969
|
this.pv.inventoryData.esubs.encharges.realPowerSumKw = encharges.realPowerSumKw;
|
|
@@ -4972,7 +4972,7 @@ if (this.logDebug) this.emit('debug', `Requesting encharges tariff data5`);
|
|
|
4972
4972
|
ensembleSummaryCharacteristics.push({ type: Characteristic.RealPower, value: encharges.realPowerSumKw });
|
|
4973
4973
|
}
|
|
4974
4974
|
}
|
|
4975
|
-
|
|
4975
|
+
if (this.logDebug) this.emit('debug', `Requesting encharges tariff data8`);
|
|
4976
4976
|
// Update ensemble summary service
|
|
4977
4977
|
for (const { type, value } of ensembleSummaryCharacteristics) {
|
|
4978
4978
|
if (!this.functions.isValidValue(value)) continue;
|
|
@@ -5592,8 +5592,8 @@ if (this.logDebug) this.emit('debug', `Requesting encharges tariff data5`);
|
|
|
5592
5592
|
|
|
5593
5593
|
// Agg Energy and Soc
|
|
5594
5594
|
const characteristics = [
|
|
5595
|
-
{ type: Characteristic.AggMaxEnergy, value: energySumKw, valueKey: 'aggMaxEnergyKw' },
|
|
5596
5595
|
{ type: Characteristic.AggSoc, value: percentFullSum, valueKey: 'aggSoc' },
|
|
5596
|
+
{ type: Characteristic.AggMaxEnergy, value: energySumKw, valueKey: 'aggMaxEnergyKw' },
|
|
5597
5597
|
];
|
|
5598
5598
|
|
|
5599
5599
|
// Update storage summary services
|