homebridge-enphase-envoy 9.9.1 → 9.9.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/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@ 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.9.2] - (15.03.2025)
9
+
10
+ ## Changes
11
+
12
+ - fix [#182](https://github.com/grzegorz914/homebridge-enphase-envoy/issues/182)
13
+ - cleanup
14
+
8
15
  ## [9.9.1] - (15.03.2025)
9
16
 
10
17
  ## 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.9.1",
5
+ "version": "9.9.2",
6
6
  "description": "Homebridge plugin for Photovoltaic Energy System manufactured by Enphase.",
7
7
  "license": "MIT",
8
8
  "author": "grzegorz914",
@@ -6899,12 +6899,14 @@ class EnvoyDevice extends EventEmitter {
6899
6899
  const refreshProduction = await this.updateProductionInverters();
6900
6900
  const updateProductionCt = refreshProduction ? await this.updateProductionCt() : false;
6901
6901
 
6902
- //get production all
6903
- const refreshProductionAll = tokenValid ? await this.updateProductionAll() : false;
6902
+ //get production all
6903
+ const match = this.pv.envoy.info.software.match(/\d+/);
6904
+ const envoyFirmware = match ? match[0] : 5;
6905
+ const refreshProductionAll = tokenValid && envoyFirmware >= 8 ? await this.updateProductionAll() : false;
6904
6906
 
6905
6907
  //access with installer password and envoy dev id
6906
6908
  const updatePowerProductionState = envoyDevIdValid && ((this.pv.envoy.jwtToken.installer && tokenValid) || digestAuthorizationInstaller) ? await this.updateProductionPowerState() : false;
6907
-
6909
+
6908
6910
  //get ensemble data only FW. >= 7.x.x.
6909
6911
  const refreshEnsemble = tokenValid ? await this.updateEnsembleInventory() : false;
6910
6912
  const updateEnsembleStatus = refreshEnsemble ? await this.updateEnsembleStatus() : false;