homebridge-enphase-envoy 10.0.2 → 10.0.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/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/envoydevice.js +4 -6
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
8
8
|
## Note!!!
|
|
9
9
|
- after update to v10.0.0 and above the accessory and bridge need to be removed from the homebridge / Home.app and added again
|
|
10
10
|
|
|
11
|
+
## [10.0.3] - (29.06.2025)
|
|
12
|
+
|
|
13
|
+
## Changes
|
|
14
|
+
|
|
15
|
+
- fix scale plc level to 100%
|
|
16
|
+
|
|
11
17
|
## [10.0.2] - (29.06.2025)
|
|
12
18
|
|
|
13
19
|
## Changes
|
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.0.
|
|
5
|
+
"version": "10.0.3",
|
|
6
6
|
"description": "Homebridge plugin for Photovoltaic Energy System manufactured by Enphase.",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"author": "grzegorz914",
|
package/src/envoydevice.js
CHANGED
|
@@ -4571,10 +4571,7 @@ class EnvoyDevice extends EventEmitter {
|
|
|
4571
4571
|
}
|
|
4572
4572
|
};
|
|
4573
4573
|
|
|
4574
|
-
const response = this.feature.info.firmware7xx
|
|
4575
|
-
? await this.axiosInstance(ApiUrls.InverterComm)
|
|
4576
|
-
: await this.digestAuthInstaller.request(ApiUrls.InverterComm, options);
|
|
4577
|
-
|
|
4574
|
+
const response = this.feature.info.firmware7xx ? await this.axiosInstance(ApiUrls.InverterComm) : await this.digestAuthInstaller.request(ApiUrls.InverterComm, options);
|
|
4578
4575
|
const plcLevel = response.data;
|
|
4579
4576
|
if (this.enableDebugMode) this.emit('debug', 'Plc level:', plcLevel);
|
|
4580
4577
|
this.pv.plcLevelCheckState = true;
|
|
@@ -4597,7 +4594,7 @@ class EnvoyDevice extends EventEmitter {
|
|
|
4597
4594
|
for (const device of devices) {
|
|
4598
4595
|
const serialNumber = device.serialNumber;
|
|
4599
4596
|
const rawValue = plcLevel[serialNumber] ?? 0;
|
|
4600
|
-
device.commLevel = this.scaleValue(rawValue, 0,
|
|
4597
|
+
device.commLevel = this.scaleValue(rawValue, 0, 5, 0, 100);
|
|
4601
4598
|
}
|
|
4602
4599
|
featureFlag.supported = true;
|
|
4603
4600
|
}
|
|
@@ -4713,7 +4710,8 @@ class EnvoyDevice extends EventEmitter {
|
|
|
4713
4710
|
this.envoyService?.updateCharacteristic(Characteristic.ProductionState, state);
|
|
4714
4711
|
if (this.productionStateActiveSensor) {
|
|
4715
4712
|
this.productionStateActiveSensor.state = state;
|
|
4716
|
-
this.productionStateSensorService
|
|
4713
|
+
this.productionStateSensorService
|
|
4714
|
+
?.updateCharacteristic(this.productionStateActiveSensor.characteristicType, state);
|
|
4717
4715
|
}
|
|
4718
4716
|
this.feature.productionState.supported = true;
|
|
4719
4717
|
}
|