homebridge-enphase-envoy 10.2.6-beta.3 → 10.2.6-beta.5

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.2.6-beta.3",
5
+ "version": "10.2.6-beta.5",
6
6
  "description": "Homebridge p7ugin for Photovoltaic Energy System manufactured by Enphase.",
7
7
  "license": "MIT",
8
8
  "author": "grzegorz914",
@@ -1210,11 +1210,13 @@ class EnvoyDevice extends EventEmitter {
1210
1210
  });
1211
1211
  }
1212
1212
 
1213
- // Wireless connection kits
1213
+ this.envoyService = service;
1214
+
1215
+ // Network Interfaces
1214
1216
  if (networkInterfacesInstalled) {
1215
1217
  this.networkInterfacesServices = [];
1216
1218
 
1217
- for (const networkInterface of home.networkInterfaces) {
1219
+ for (const networkInterface of home.network.interfaces) {
1218
1220
  const interfaceType = networkInterface.type;
1219
1221
  if (this.logDebug) this.emit('debug', `Prepare Network Interface ${interfaceType} Service`);
1220
1222
 
@@ -1273,8 +1275,6 @@ class EnvoyDevice extends EventEmitter {
1273
1275
  this.wirelessConnectionsKitServices.push(wirelessService);
1274
1276
  }
1275
1277
  }
1276
-
1277
- this.envoyService = service;
1278
1278
  }
1279
1279
 
1280
1280
  //meters
@@ -3203,14 +3203,14 @@ class EnvoyDevice extends EventEmitter {
3203
3203
 
3204
3204
  // Network interfaces
3205
3205
  if (this.feature.home.networkInterfaces.installed) {
3206
- interfaces?.forEach((interface, index) => {
3207
- if (!interface.carrier) return;
3206
+ interfaces?.forEach((networkInterface, index) => {
3207
+ if (!networkInterface.carrier) return;
3208
3208
 
3209
3209
  // Create characteristics
3210
3210
  const characteristics1 = [
3211
- { type: Characteristic.Type, value: interface.type },
3212
- { type: Characteristic.AddressIp, value: interface.ip },
3213
- { type: Characteristic.SignalStrength, value: interface.signalStrength },
3211
+ { type: Characteristic.Type, value: networkInterface.type },
3212
+ { type: Characteristic.AddressIp, value: networkInterface.ip },
3213
+ { type: Characteristic.SignalStrength, value: networkInterface.signalStrength },
3214
3214
  ];
3215
3215
 
3216
3216
  // Update envoy services