homebridge-enphase-envoy 10.2.2-beta.0 → 10.2.2-beta.2
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 +44 -44
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.2",
|
|
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
|
@@ -615,6 +615,12 @@ class EnvoyDevice extends EventEmitter {
|
|
|
615
615
|
installer: this.envoyFirmware7xxTokenGenerationMode === 2 ? this.envoyTokenInstaller : false
|
|
616
616
|
}
|
|
617
617
|
},
|
|
618
|
+
backboneApp: {
|
|
619
|
+
supported: false
|
|
620
|
+
},
|
|
621
|
+
productionState: {
|
|
622
|
+
supported: false
|
|
623
|
+
},
|
|
618
624
|
home: {
|
|
619
625
|
supported: false,
|
|
620
626
|
networkInterfaces: {
|
|
@@ -772,40 +778,6 @@ class EnvoyDevice extends EventEmitter {
|
|
|
772
778
|
supported: false,
|
|
773
779
|
installed: false
|
|
774
780
|
},
|
|
775
|
-
homeData: {
|
|
776
|
-
supported: false
|
|
777
|
-
},
|
|
778
|
-
metersData: {
|
|
779
|
-
supported: false
|
|
780
|
-
},
|
|
781
|
-
detailedDevicesData: {
|
|
782
|
-
supported: false,
|
|
783
|
-
installed: false,
|
|
784
|
-
pcus: {
|
|
785
|
-
supported: false
|
|
786
|
-
},
|
|
787
|
-
meters: {
|
|
788
|
-
supported: false
|
|
789
|
-
},
|
|
790
|
-
nsrbs: {
|
|
791
|
-
supported: false
|
|
792
|
-
},
|
|
793
|
-
},
|
|
794
|
-
pcusData: {
|
|
795
|
-
supported: false,
|
|
796
|
-
},
|
|
797
|
-
nsrbsData: {
|
|
798
|
-
supported: false,
|
|
799
|
-
},
|
|
800
|
-
acbsData: {
|
|
801
|
-
supported: false,
|
|
802
|
-
},
|
|
803
|
-
powerAndEnergyData: {
|
|
804
|
-
supported: false
|
|
805
|
-
},
|
|
806
|
-
ensembleData: {
|
|
807
|
-
supported: false,
|
|
808
|
-
},
|
|
809
781
|
production: {
|
|
810
782
|
supported: false
|
|
811
783
|
},
|
|
@@ -880,9 +852,6 @@ class EnvoyDevice extends EventEmitter {
|
|
|
880
852
|
supported: false
|
|
881
853
|
}
|
|
882
854
|
},
|
|
883
|
-
liveData: {
|
|
884
|
-
supported: false
|
|
885
|
-
},
|
|
886
855
|
gridProfile: {
|
|
887
856
|
supported: false
|
|
888
857
|
},
|
|
@@ -898,10 +867,41 @@ class EnvoyDevice extends EventEmitter {
|
|
|
898
867
|
supported: false
|
|
899
868
|
},
|
|
900
869
|
},
|
|
901
|
-
|
|
870
|
+
homeData: {
|
|
902
871
|
supported: false
|
|
903
872
|
},
|
|
904
|
-
|
|
873
|
+
metersData: {
|
|
874
|
+
supported: false
|
|
875
|
+
},
|
|
876
|
+
detailedDevicesData: {
|
|
877
|
+
supported: false,
|
|
878
|
+
installed: false,
|
|
879
|
+
pcus: {
|
|
880
|
+
supported: false
|
|
881
|
+
},
|
|
882
|
+
meters: {
|
|
883
|
+
supported: false
|
|
884
|
+
},
|
|
885
|
+
nsrbs: {
|
|
886
|
+
supported: false
|
|
887
|
+
},
|
|
888
|
+
},
|
|
889
|
+
pcusData: {
|
|
890
|
+
supported: false,
|
|
891
|
+
},
|
|
892
|
+
nsrbsData: {
|
|
893
|
+
supported: false,
|
|
894
|
+
},
|
|
895
|
+
acbsData: {
|
|
896
|
+
supported: false,
|
|
897
|
+
},
|
|
898
|
+
powerAndEnergyData: {
|
|
899
|
+
supported: false
|
|
900
|
+
},
|
|
901
|
+
ensembleData: {
|
|
902
|
+
supported: false,
|
|
903
|
+
},
|
|
904
|
+
liveData: {
|
|
905
905
|
supported: false
|
|
906
906
|
}
|
|
907
907
|
};
|
|
@@ -4160,8 +4160,8 @@ class EnvoyDevice extends EventEmitter {
|
|
|
4160
4160
|
accessory.level = obj.powerLevel;
|
|
4161
4161
|
|
|
4162
4162
|
const characteristics = [
|
|
4163
|
-
{ type: characteristicType, value:
|
|
4164
|
-
{ type: characteristicType1, value:
|
|
4163
|
+
{ type: characteristicType, value: obj.powerState },
|
|
4164
|
+
{ type: characteristicType1, value: obj.powerLevel },
|
|
4165
4165
|
];
|
|
4166
4166
|
|
|
4167
4167
|
// Update system services
|
|
@@ -5657,8 +5657,8 @@ class EnvoyDevice extends EventEmitter {
|
|
|
5657
5657
|
|
|
5658
5658
|
// Create characteristics
|
|
5659
5659
|
const characteristics = [
|
|
5660
|
-
{ type: characteristicType, value:
|
|
5661
|
-
{ type: characteristicType1, value:
|
|
5660
|
+
{ type: characteristicType, value: powerState },
|
|
5661
|
+
{ type: characteristicType1, value: powerLevel },
|
|
5662
5662
|
];
|
|
5663
5663
|
|
|
5664
5664
|
// Update system services
|
|
@@ -8422,7 +8422,7 @@ class EnvoyDevice extends EventEmitter {
|
|
|
8422
8422
|
const getAcbsData = this.feature.inventory.acbs.installed ? await this.updateAcbsData() : false;
|
|
8423
8423
|
const getPowerAndEnergyData = await this.updatePowerAndEnergyData();
|
|
8424
8424
|
const getEnsembleData = getEnsemble ? await this.updateEnsembleData() : false;
|
|
8425
|
-
const getLiveData = tokenRequired ? await this.updateLiveData() : false;
|
|
8425
|
+
const getLiveData = tokenRequired && (this.feature.meters.installed || getEnsemble) ? await this.updateLiveData() : false;
|
|
8426
8426
|
|
|
8427
8427
|
// Setup timers
|
|
8428
8428
|
this.timers = [];
|