homebridge-enphase-envoy 10.3.1-beta.1 → 10.3.1-beta.3
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 +2 -2
- package/src/envoydevice.js +9 -3
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.3",
|
|
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
|
@@ -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.
|
|
930
|
+
this.feature.home.networkInterfaces.installed = networkInterfaces.some(i => i.signal_strength_max > 0);
|
|
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.
|
|
934
|
+
this.feature.home.wirelessConnections.installed = wirelessConnections.some(w => w.signal_strength_max > 0);
|
|
935
935
|
this.feature.home.wirelessConnections.count = wirelessConnections.length;
|
|
936
936
|
this.feature.home.supported = true;
|
|
937
937
|
|
package/src/envoydevice.js
CHANGED
|
@@ -3108,8 +3108,14 @@ class EnvoyDevice extends EventEmitter {
|
|
|
3108
3108
|
this.emit('devInfo', `Firmware: ${info.software}`);
|
|
3109
3109
|
this.emit('devInfo', `SerialNr: ${info.serialNumber}`);
|
|
3110
3110
|
this.emit('devInfo', `Time: ${this.functions.formatTimestamp(info.time, timeZone)}`);
|
|
3111
|
-
this.emit('devInfo', `Energy Meter: ${this.energyMeter ? 'Enabled' : 'Disabled'}`);
|
|
3112
3111
|
this.emit('devInfo', `------------------------------`);
|
|
3112
|
+
if (energyMeter) {
|
|
3113
|
+
this.emit('devInfo', `Eve Energy Meter: ${this.energyMeter ? 'Enabled' : 'Disabled'}`);
|
|
3114
|
+
this.emit('devInfo', `Production: Enabled`);
|
|
3115
|
+
if (feature.meters.consumptionNet.supported) this.emit('devInfo', `Consumption Net: ${feature.meters.consumptionNet.enabled ? 'Enabled' : 'Disabled'}`);
|
|
3116
|
+
if (feature.meters.consumptionTotal.supported) this.emit('devInfo', `Consumption Total: ${feature.meters.consumptionTotal.enabled ? 'Enabled' : 'Disabled'}`);
|
|
3117
|
+
this.emit('devInfo', `------------------------------`);
|
|
3118
|
+
}
|
|
3113
3119
|
|
|
3114
3120
|
// Inventory
|
|
3115
3121
|
let hasInventoryInfo = false;
|
|
@@ -3196,8 +3202,8 @@ class EnvoyDevice extends EventEmitter {
|
|
|
3196
3202
|
try {
|
|
3197
3203
|
const comm = home.comm ?? {};
|
|
3198
3204
|
const network = home.network ?? {};
|
|
3199
|
-
const wirelessConnections =
|
|
3200
|
-
const networkInterfaces =
|
|
3205
|
+
const wirelessConnections = home.wireless_connection ?? [];
|
|
3206
|
+
const networkInterfaces = network.interfaces ?? [];
|
|
3201
3207
|
// Communication device support flags
|
|
3202
3208
|
const commEnsemble = comm.esub ?? {};
|
|
3203
3209
|
const commEncharges = Array.isArray(comm.encharge) ? comm.encharge : [];
|