homebridge-enphase-envoy 9.3.1 → 9.3.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 +2 -2
- package/src/envoydevice.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [9.3.3] - (23.08.2024)
|
|
9
|
+
|
|
10
|
+
## Changes
|
|
11
|
+
|
|
12
|
+
- fix [#151](https://github.com/grzegorz914/homebridge-enphase-envoy/issues/151)
|
|
13
|
+
|
|
8
14
|
## [9.3.0] - (23.08.2024)
|
|
9
15
|
|
|
10
16
|
## 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": "9.3.
|
|
5
|
+
"version": "9.3.3",
|
|
6
6
|
"description": "Homebridge plugin for Photovoltaic Energy System manufactured by Enphase.",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"author": "grzegorz914",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"async-mqtt": "^2.6.3",
|
|
36
|
-
"axios": "^1.7.
|
|
36
|
+
"axios": "^1.7.5",
|
|
37
37
|
"express": "^4.19.2",
|
|
38
38
|
"fast-xml-parser": "^4.4.1"
|
|
39
39
|
},
|
package/src/envoydevice.js
CHANGED
|
@@ -2603,7 +2603,7 @@ class EnvoyDevice extends EventEmitter {
|
|
|
2603
2603
|
this.ensemble.encharges = encharges;
|
|
2604
2604
|
|
|
2605
2605
|
//calculate encharges percent full summ
|
|
2606
|
-
this.ensemble.encharges.percentFullSum = (enchargesPercentFullSummary.reduce((total, num) => total + num, 0) /
|
|
2606
|
+
this.ensemble.encharges.percentFullSum = (enchargesPercentFullSummary.reduce((total, num) => total + num, 0) / enchargesData.length) ?? 0;
|
|
2607
2607
|
this.ensemble.encharges.energyState = this.ensemble.encharges.percentFullSum > 0;
|
|
2608
2608
|
|
|
2609
2609
|
//update services
|