homebridge-enphase-envoy 10.3.1-beta.5 → 10.3.1-beta.6

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 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",
5
+ "version": "10.3.1-beta.6",
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
@@ -908,8 +908,8 @@ class EnvoyData extends EventEmitter {
908
908
 
909
909
  const comm = home.comm ?? {};
910
910
  const network = home.network ?? {};
911
- const wirelessConnections = home.wireless_connection ?? [];
912
- const networkInterfaces = network.interfaces ?? [];
911
+ const networkInterfaces = (network.interfaces ?? []).filter(iface => iface.ip !== '169.254.120.1');
912
+ const wirelessConnections = (home.wireless_connection ?? []).filter(kit => kit.signal_strength_max > 0);
913
913
 
914
914
  // Communication device support flags
915
915
  const microinvertersSupported = 'pcu' in comm;
@@ -927,11 +927,11 @@ class EnvoyData extends EventEmitter {
927
927
  this.feature.inventory.esubs.encharges.supported = enchargesSupported;
928
928
 
929
929
  this.feature.home.networkInterfaces.supported = networkInterfaces.length > 0;
930
- this.feature.home.networkInterfaces.installed = networkInterfaces.some(i => i.signal_strength_max > 0);
930
+ this.feature.home.networkInterfaces.installed = networkInterfaces.some(i => i.carrier);
931
931
  this.feature.home.networkInterfaces.count = networkInterfaces.length;
932
932
 
933
933
  this.feature.home.wirelessConnections.supported = wirelessConnections.length > 0;
934
- this.feature.home.wirelessConnections.installed = wirelessConnections.some(w => w.signal_strength_max > 0);
934
+ this.feature.home.wirelessConnections.installed = wirelessConnections.some(w => w.connected);
935
935
  this.feature.home.wirelessConnections.count = wirelessConnections.length;
936
936
  this.feature.home.supported = true;
937
937
 
@@ -3205,7 +3205,7 @@ class EnvoyDevice extends EventEmitter {
3205
3205
  const comm = home.comm ?? {};
3206
3206
  const network = home.network ?? {};
3207
3207
  const wirelessConnections = home.wireless_connection ?? [];
3208
- const networkInterfaces = network.interfaces ?? [];
3208
+ const networkInterfaces = network.interfaces ?? []
3209
3209
  // Communication device support flags
3210
3210
  const commEnsemble = comm.esub ?? {};
3211
3211
  const commEncharges = Array.isArray(comm.encharge) ? comm.encharge : [];