homebridge-enphase-envoy 10.2.2-beta.21 → 10.2.2-beta.22
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 +11 -5
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.2.2-beta.
|
|
5
|
+
"version": "10.2.2-beta.22",
|
|
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
|
@@ -947,17 +947,23 @@ class EnvoyDevice extends EventEmitter {
|
|
|
947
947
|
eim: {},
|
|
948
948
|
rgm: {},
|
|
949
949
|
pmu: {},
|
|
950
|
-
powerPeak: -100000
|
|
951
950
|
},
|
|
952
951
|
consumptionNet: {
|
|
953
|
-
powerPeak: -100000
|
|
954
952
|
},
|
|
955
953
|
consumptionTotal: {
|
|
956
|
-
powerPeak: -100000
|
|
957
954
|
},
|
|
958
955
|
},
|
|
959
956
|
powerAndEnergyData: {
|
|
960
957
|
data: [],
|
|
958
|
+
production: {
|
|
959
|
+
powerPeak: -100000
|
|
960
|
+
},
|
|
961
|
+
consumptionNet: {
|
|
962
|
+
powerPeak: -100000
|
|
963
|
+
},
|
|
964
|
+
consumptionTotal: {
|
|
965
|
+
powerPeak: -100000
|
|
966
|
+
},
|
|
961
967
|
},
|
|
962
968
|
liveData: {},
|
|
963
969
|
gridProfile: {},
|
|
@@ -3978,7 +3984,7 @@ class EnvoyDevice extends EventEmitter {
|
|
|
3978
3984
|
let sourceMeter, sourceEnergy;
|
|
3979
3985
|
let power, powerLevel, powerState, powerPeak, powerPeakDetected;
|
|
3980
3986
|
let energyToday, energyLastSevenDays, energyLifetime, energyLifetimeUpload, energyLifetimeWithOffset;
|
|
3981
|
-
const powerPeakStored = this.pv.
|
|
3987
|
+
const powerPeakStored = this.pv.powerAndEnergyData[key].powerPeak;
|
|
3982
3988
|
|
|
3983
3989
|
switch (key) {
|
|
3984
3990
|
case 'production': {
|
|
@@ -4024,7 +4030,7 @@ class EnvoyDevice extends EventEmitter {
|
|
|
4024
4030
|
break;
|
|
4025
4031
|
}
|
|
4026
4032
|
}
|
|
4027
|
-
if (this.isValidValue(powerPeak)) this.pv.
|
|
4033
|
+
if (this.isValidValue(powerPeak)) this.pv.powerAndEnergyData[key].powerPeak = powerPeak;
|
|
4028
4034
|
|
|
4029
4035
|
if (!sourceMeter) continue;
|
|
4030
4036
|
if (this.logDebug) {
|