homebridge-enphase-envoy 10.3.4-beta.2 → 10.3.4-beta.4

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
@@ -9,6 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  - after update to v10.0.0 and above the accessory and bridge need to be removed from the homebridge / Home.app and added again
11
11
 
12
+ ## [10.3.4] - (12.11.2025)
13
+
14
+ ## Changes
15
+
16
+ - fix [#221](https://github.com/grzegorz914/homebridge-enphase-envoy/issues/221)
17
+ - bump dependencies
18
+ - cleanup
19
+
12
20
  ## [10.3.2] - (30.10.2025)
13
21
 
14
22
  ## 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.3.4-beta.2",
5
+ "version": "10.3.4-beta.4",
6
6
  "description": "Homebridge p7ugin for Photovoltaic Energy System manufactured by Enphase.",
7
7
  "license": "MIT",
8
8
  "author": "grzegorz914",
package/src/envoydata.js CHANGED
@@ -2051,7 +2051,7 @@ class EnvoyData extends EventEmitter {
2051
2051
  const serialNumber = device.serial_num;
2052
2052
  const encharge = encharges.find(device => device.serialNumber === serialNumber);
2053
2053
  if (this.logDebug) this.emit('debug', `Ensemble device power:`, device);
2054
- if (!device) continue;
2054
+ if (!encharge) continue;
2055
2055
 
2056
2056
  encharge.power = {
2057
2057
  serialNumber: device.serial_num,
@@ -4338,7 +4338,7 @@ class EnvoyDevice extends EventEmitter {
4338
4338
  { type: Characteristic.AggMaxEnergy, value: secctrl.aggMaxEnergyKw },
4339
4339
  { type: Characteristic.EncAggBackupEnergy, value: secctrl.encAggBackupEnergy },
4340
4340
  { type: Characteristic.AggSoc, value: secctrl.aggSoc },
4341
- { type: Characteristic.encAggSoc, value: secctrl.encAggSoc });
4341
+ { type: Characteristic.EncAggSoc, value: secctrl.encAggSoc });
4342
4342
  }
4343
4343
 
4344
4344
  if (phaseA) {
@@ -4480,7 +4480,7 @@ class EnvoyDevice extends EventEmitter {
4480
4480
  restRelayPost: counterData.rest_RelayPost,
4481
4481
  restCommCheckGet: counterData.rest_CommCheckGet,
4482
4482
  restPower: counterData.rest_Power,
4483
- restPowerKw: counterData.rest_Power != null ? counterData.rest_Power / 1000 : null,
4483
+ restPowerKw: counterData.rest_Power !== null ? counterData.rest_Power / 1000 : null,
4484
4484
  extZbRemove: counterData.ext_zb_remove,
4485
4485
  extZbRemoveErr: counterData.ext_zb_remove_err,
4486
4486
  extCfgSaveDevice: counterData.ext_cfg_save_device,