homebridge-enphase-envoy 10.3.1-beta.0 → 10.3.1-beta.2
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 +2 -2
- package/src/envoydata.js +2 -2
- package/src/envoydevice.js +12 -6
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.2",
|
|
6
6
|
"description": "Homebridge p7ugin for Photovoltaic Energy System manufactured by Enphase.",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"author": "grzegorz914",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"LICENSE"
|
|
32
32
|
],
|
|
33
33
|
"engines": {
|
|
34
|
-
"homebridge": "^1.9.0 || ^2.0.0 || ^2.0.0-beta.30 || ^2.0.0-alpha.
|
|
34
|
+
"homebridge": "^1.9.0 || ^2.0.0 || ^2.0.0-beta.30 || ^2.0.0-alpha.60",
|
|
35
35
|
"node": "^20 || ^22 || ^24"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
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
|
@@ -3196,8 +3196,8 @@ class EnvoyDevice extends EventEmitter {
|
|
|
3196
3196
|
try {
|
|
3197
3197
|
const comm = home.comm ?? {};
|
|
3198
3198
|
const network = home.network ?? {};
|
|
3199
|
-
const wirelessConnections =
|
|
3200
|
-
const networkInterfaces =
|
|
3199
|
+
const wirelessConnections = home.wireless_connection ?? [];
|
|
3200
|
+
const networkInterfaces = network.interfaces ?? [];
|
|
3201
3201
|
// Communication device support flags
|
|
3202
3202
|
const commEnsemble = comm.esub ?? {};
|
|
3203
3203
|
const commEncharges = Array.isArray(comm.encharge) ? comm.encharge : [];
|
|
@@ -3518,10 +3518,16 @@ class EnvoyDevice extends EventEmitter {
|
|
|
3518
3518
|
powerPeak: pcu.powerPeak,
|
|
3519
3519
|
});
|
|
3520
3520
|
|
|
3521
|
+
if (this.logInfo) {
|
|
3522
|
+
this.emit('info', `Microinverter, ${pcuData.serialNumber}, power: ${pcuData.power} W`);
|
|
3523
|
+
this.emit('info', `Microinverter, ${pcuData.serialNumber}, phase: ${pcuData.phase}`);
|
|
3524
|
+
}
|
|
3525
|
+
|
|
3521
3526
|
// Add characteristics
|
|
3522
3527
|
characteristics.push(
|
|
3523
3528
|
{ type: Characteristic.PowerW, value: pcuData.power },
|
|
3524
|
-
{ type: Characteristic.PowerPeakW, value: pcuData.powerPeak }
|
|
3529
|
+
{ type: Characteristic.PowerPeakW, value: pcuData.powerPeak }
|
|
3530
|
+
);
|
|
3525
3531
|
}
|
|
3526
3532
|
|
|
3527
3533
|
// Add detailed info if supported
|
|
@@ -3621,9 +3627,9 @@ class EnvoyDevice extends EventEmitter {
|
|
|
3621
3627
|
plcLevel: nsrb.plcLevel,
|
|
3622
3628
|
};
|
|
3623
3629
|
|
|
3624
|
-
if (this.
|
|
3625
|
-
this.emit('
|
|
3626
|
-
this.emit('
|
|
3630
|
+
if (this.logInfo) {
|
|
3631
|
+
this.emit('info', `Q-Relay, ${nsrbData.serialNumber}, state: ${nsrbData.relay}`);
|
|
3632
|
+
this.emit('info', `Q-Relay, ${nsrbData.serialNumber}, lines: ${nsrbData.linesCount}`);
|
|
3627
3633
|
}
|
|
3628
3634
|
|
|
3629
3635
|
// Create characteristics
|