homebridge-enphase-envoy 9.3.2 → 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 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.2",
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",
@@ -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) / enchargesCount) ?? 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