homebridge-enphase-envoy 10.3.1-beta.7 → 10.3.1-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/envoydata.js +7 -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.3.1-beta.
|
|
5
|
+
"version": "10.3.1-beta.8",
|
|
6
6
|
"description": "Homebridge p7ugin for Photovoltaic Energy System manufactured by Enphase.",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"author": "grzegorz914",
|
package/src/envoydata.js
CHANGED
|
@@ -907,7 +907,7 @@ class EnvoyData extends EventEmitter {
|
|
|
907
907
|
if (this.logDebug) this.emit('debug', 'Home:', home);
|
|
908
908
|
|
|
909
909
|
const network = home.network ?? {};
|
|
910
|
-
network.interfaces = (network.interfaces ?? []).filter(iface => iface.ip !== '169.254.120.1');
|
|
910
|
+
network.interfaces = (network.interfaces ?? []).filter(iface => iface.carrier === true || iface.ip !== '169.254.120.1');
|
|
911
911
|
home.wireless_connection = (home.wireless_connection ?? []).filter(kit => kit.signal_strength_max > 0);
|
|
912
912
|
|
|
913
913
|
// Communication device support flags
|
|
@@ -916,6 +916,8 @@ class EnvoyData extends EventEmitter {
|
|
|
916
916
|
const qRelaysSupported = 'nsrb' in home.comm;
|
|
917
917
|
const ensemblesSupported = 'esub' in home.comm;
|
|
918
918
|
const enchargesSupported = 'encharge' in home.comm;
|
|
919
|
+
const networkInterfacesSupported = 'interfaces' in network;
|
|
920
|
+
const wirelessConnectionsSupported = 'wireless_connection' in home;
|
|
919
921
|
this.pv.home = home;
|
|
920
922
|
|
|
921
923
|
// Update feature flags
|
|
@@ -925,12 +927,12 @@ class EnvoyData extends EventEmitter {
|
|
|
925
927
|
this.feature.inventory.esubs.supported = ensemblesSupported;
|
|
926
928
|
this.feature.inventory.esubs.encharges.supported = enchargesSupported;
|
|
927
929
|
|
|
928
|
-
this.feature.home.networkInterfaces.supported =
|
|
929
|
-
this.feature.home.networkInterfaces.installed = network.interfaces.
|
|
930
|
+
this.feature.home.networkInterfaces.supported = networkInterfacesSupported;
|
|
931
|
+
this.feature.home.networkInterfaces.installed = network.interfaces.length > 0;
|
|
930
932
|
this.feature.home.networkInterfaces.count = network.interfaces.length;
|
|
931
933
|
|
|
932
|
-
this.feature.home.wirelessConnections.supported =
|
|
933
|
-
this.feature.home.wirelessConnections.installed = home.wireless_connection.
|
|
934
|
+
this.feature.home.wirelessConnections.supported = wirelessConnectionsSupported;
|
|
935
|
+
this.feature.home.wirelessConnections.installed = home.wireless_connection.length > 0;
|
|
934
936
|
this.feature.home.wirelessConnections.count = home.wireless_connection.length;
|
|
935
937
|
this.feature.home.supported = true;
|
|
936
938
|
|