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 +1 -1
- package/src/envoydevice.js +9 -9
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.
|
|
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",
|
package/src/envoydevice.js
CHANGED
|
@@ -1210,11 +1210,13 @@ class EnvoyDevice extends EventEmitter {
|
|
|
1210
1210
|
});
|
|
1211
1211
|
}
|
|
1212
1212
|
|
|
1213
|
-
|
|
1213
|
+
this.envoyService = service;
|
|
1214
|
+
|
|
1215
|
+
// Network Interfaces
|
|
1214
1216
|
if (networkInterfacesInstalled) {
|
|
1215
1217
|
this.networkInterfacesServices = [];
|
|
1216
1218
|
|
|
1217
|
-
for (const networkInterface of home.
|
|
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((
|
|
3207
|
-
if (!
|
|
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:
|
|
3212
|
-
{ type: Characteristic.AddressIp, value:
|
|
3213
|
-
{ type: Characteristic.SignalStrength, value:
|
|
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
|