homebridge-enphase-envoy 10.8.0 → 10.8.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
@@ -11,6 +11,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
  - For plugin >= v10.4.0 use Homebridge UI >= v5.13.0
12
12
  - after update to v10.0.0 and above the accessory and bridge need to be removed from the homebridge / Home.app and added again
13
13
 
14
+ ## [10.8.2] - (29.10.2026)
15
+
16
+ ### Changes
17
+
18
+ - fixed: security, updated the locked versions of proxy-addr, follow-redirects and ip-address to fix the vulnerabilities reported by Dependabot
19
+
20
+ ## [10.8.1] - (29.09.2026)
21
+
22
+ ### Changes
23
+
24
+ - fixed: Home Assistant discovery, the sensors of the test version named after the grid (Grid power, Grid import, Consumption power...) stayed in Home Assistant, the plugin now removes them at start
25
+
14
26
  ## [10.8.0] - (29.09.2026)
15
27
 
16
28
  ### 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.8.0",
5
+ "version": "10.8.2",
6
6
  "description": "Homebridge plugin for Photovoltaic Energy System manufactured by Enphase.",
7
7
  "license": "MIT",
8
8
  "author": "grzegorz914",
@@ -43,6 +43,13 @@ Object.assign(Sensors, {
43
43
  battery_energy: { name: 'Battery energy', device_class: 'energy_storage', state_class: 'measurement', unit_of_measurement: 'kWh', suggested_display_precision: 2, icon: 'mdi:home-battery' }
44
44
  });
45
45
 
46
+ // Sensors of the first test version, named after the grid instead of the meters, their retained discovery is removed
47
+ const LegacySensors = [
48
+ 'grid_power', 'grid_voltage', 'grid_frequency', 'grid_current', 'grid_power_factor', 'grid_reactive_power', 'grid_apparent_power',
49
+ 'grid_import_today', 'grid_export_today', 'grid_import_lifetime', 'grid_export_lifetime',
50
+ 'consumption_power', 'consumption_energy_today', 'consumption_energy_lifetime'
51
+ ];
52
+
46
53
  const number = (value) => typeof value === 'number' && Number.isFinite(value) ? value : null;
47
54
  // Wh to kWh with Wh precision
48
55
  const kWh = (value) => number(value) === null ? null : Math.round(value) / 1000;
@@ -79,6 +86,14 @@ class HaDiscovery {
79
86
 
80
87
  // Sensors with a value get their discovery message, then the state of all of them
81
88
  async publish(state) {
89
+ // Once per start, an empty retained message removes the entity from Home Assistant
90
+ if (!this.legacyRemoved) {
91
+ this.legacyRemoved = true;
92
+ for (const key of LegacySensors) {
93
+ await this.mqtt.publishRetained(`${this.mqtt.haPrefix}/sensor/${this.baseId}_${key}/config`, '');
94
+ }
95
+ }
96
+
82
97
  for (const [key, sensor] of Object.entries(Sensors)) {
83
98
  if (state[key] === null || state[key] === undefined) continue;
84
99
  await this.publishSensor(key, sensor);