homebridge-enphase-envoy 10.2.2-beta.21 → 10.2.2-beta.210

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,17 @@ 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.2.2] - (12.10.2025)
13
+
14
+ ## Changes
15
+
16
+ - fix power level not refresh if meter production not enabled [#213](https://github.com/grzegorz914/homebridge-enphase-envoy/issues/213)
17
+ - changed OFF state to < 0.5% for power and backup level accessory, before was OFF if level < 1%
18
+ - stability and performance improvements
19
+ - other small fixes
20
+ - redme updates
21
+ - cleanup
22
+
12
23
  ## [10.2.1] - (03.10.2025)
13
24
 
14
25
  ## Changes
package/README.md CHANGED
@@ -312,7 +312,7 @@ Path `status` response all available paths.
312
312
 
313
313
  | Method | URL | Path | Response | Type |
314
314
  | --- | --- | --- | --- | --- |
315
- | GET | `http//ip:port` | `token`, `info`, `home`, `homedata`, `inventory`, `microinvertersstatus`, `meters`, `metersreading`, `metersreports`, `detaileddevicesdata`, `microinvertersdata`, `qrelaysdata`, `metersdata`, `production`, `productionpdm`, `energypdm`, `productionct`,`powerandenergydata`, `acbatterydata`, `ensembleinventory`, `ensemblestatus`, `ensemblepower`, `enchargesettings`, `tariff`, `drycontacts`, `drycontactssettings`, `generator`, `generatorsettings`, `ensembledata`, `gridprofile`, `livedata`, `productionstate`, `plclevel`, `datasampling`. | `{wNow: 2353}` | JSON |
315
+ | GET | `http//ip:port` | `token`, `info`, `home`, `homedata`, `inventory`, `microinvertersstatus`, `meters`, `metersreading`, `metersreports`, `detaileddevicesdata`, `microinvertersdata`, `qrelaysdata`, `metersdata`, `production`, `productionpdm`, `energypdm`, `productionct`,`powerandenergydata`, `acbatterydata`, `ensembleinventory`, `ensemblestatus`, `ensemblepower`, `enchargesettings`, `tariff`, `drycontacts`, `drycontactssettings`, `generator`, `generatorsettings`, `ensembledata`, `gridprofile`, `livedata`, `livedatadata`, `productionstate`, `plclevel`, `datasampling`. | `{wNow: 2353}` | JSON |
316
316
 
317
317
  | Method | URL | Key | Value | Type | Description |
318
318
  | --- | --- | --- | --- | --- | --- |
@@ -331,7 +331,7 @@ Subscribe using JSON `{ "EnchargeProfile": "savings" }`
331
331
 
332
332
  | Method | Topic | Message | Type |
333
333
  | --- | --- | --- | --- |
334
- | Publish | `Token`, `Info`, `Home`, `Home Data`, `Inventory`, `Microinverters Status`, `Meters`, `Meters Reading`, `Meters Reports`, `Detailed Devices Data`, `Microinverters Data`, `Q-Relays Data`, `Meters Data`, `Production`, `Production Pdm`, `Energy Pdm`, `Production CT`, `Power And Energy Data`, `AC Battery Data`, `Ensemble Inventory`, `Ensemble Status`, `Ensemble Status`, `Encharge Power`, `Tariff`, `Dry Contacts`, `Dry Contacts Settings`, `Generator`, `Generator Settings`, `Ensemble Data`, `Grid Profile`, `Live Data`, `Production State`, `PLC Level`, `Data Sampling` | `{wNow: 2353}` | JSON |
334
+ | Publish | `Token`, `Info`, `Home`, `Home Data`, `Inventory`, `Microinverters Status`, `Meters`, `Meters Reading`, `Meters Reports`, `Detailed Devices Data`, `Microinverters Data`, `Q-Relays Data`, `Meters Data`, `Production`, `Production Pdm`, `Energy Pdm`, `Production CT`, `Power And Energy Data`, `AC Battery Data`, `Ensemble Inventory`, `Ensemble Status`, `Ensemble Status`, `Encharge Power`, `Tariff`, `Dry Contacts`, `Dry Contacts Settings`, `Generator`, `Generator Settings`, `Ensemble Data`, `Grid Profile`, `Live Data`, `Live Data Data`, `Production State`, `PLC Level`, `Data Sampling` | `{wNow: 2353}` | JSON |
335
335
 
336
336
  | Method | Topic | Key | Value | Type | Description |
337
337
  | --- | --- | --- | --- | --- | --- |
package/index.js CHANGED
@@ -5,7 +5,6 @@ import EnergyMeter from './src/energymeter.js';
5
5
  import ImpulseGenerator from './src/impulsegenerator.js';
6
6
  import { PluginName, PlatformName } from './src/constants.js';
7
7
  import CustomCharacteristics from './src/customcharacteristics.js';
8
- import fakegato from 'fakegato-history';
9
8
 
10
9
  class EnvoyPlatform {
11
10
  constructor(log, config, api) {
@@ -16,7 +15,6 @@ class EnvoyPlatform {
16
15
 
17
16
  this.log = log;
18
17
  this.accessories = [];
19
- this.FakeGatoHistoryService = fakegato(api);
20
18
 
21
19
  const prefDir = join(api.user.storagePath(), 'enphaseEnvoy');
22
20
  try {
@@ -80,7 +78,6 @@ class EnvoyPlatform {
80
78
  const postFix = host.split('.').join('');
81
79
  const envoyIdFile = join(prefDir, `envoyId_${postFix}`);
82
80
  const envoyTokenFile = join(prefDir, `envoyToken_${postFix}`);
83
- const energyMeterHistory = join(prefDir, `energyMeterHistory_${postFix}`);
84
81
 
85
82
  try {
86
83
  [envoyIdFile, envoyTokenFile].forEach(file => {
@@ -100,21 +97,21 @@ class EnvoyPlatform {
100
97
  const impulseGenerator = new ImpulseGenerator()
101
98
  .on('start', async () => {
102
99
  try {
103
- const envoyDevice = new DeviceClass(api, accessoryName, host, displayType, envoyFirmware7xxTokenGenerationMode, envoyPasswd, envoyToken, envoyTokenInstaller, enlightenUser, enlightenPasswd, envoyIdFile, envoyTokenFile, device, energyMeterHistory, index === 1 ? this.FakeGatoHistoryService : undefined)
100
+ const envoyDevice = new DeviceClass(api, accessoryName, host, displayType, envoyFirmware7xxTokenGenerationMode, envoyPasswd, envoyToken, envoyTokenInstaller, enlightenUser, enlightenPasswd, envoyIdFile, envoyTokenFile, device)
104
101
  .on('devInfo', (info) => logLevel.devInfo && log.info(info))
105
- .on('success', (msg) => logLevel.success && log.success(`Device: ${host} ${deviceName}, ${msg}`))
106
- .on('info', (msg) => logLevel.info && log.info(`Device: ${host} ${deviceName}, ${msg}`))
107
- .on('debug', (msg, data) => logLevel.debug && log.info(`Device: ${host} ${deviceName}, debug: ${data ? `${msg} ${JSON.stringify(data, null, 2)}` : msg}`))
108
- .on('warn', (msg) => logLevel.warn && log.warn(`Device: ${host} ${deviceName}, ${msg}`))
109
- .on('error', (msg) => logLevel.error && log.error(`Device: ${host} ${deviceName}, ${msg}`));
102
+ .on('success', (msg) => logLevel.success && log.success(`Device: ${host} ${accessoryName}, ${msg}`))
103
+ .on('info', (msg) => logLevel.info && log.info(`Device: ${host} ${accessoryName}, ${msg}`))
104
+ .on('debug', (msg, data) => logLevel.debug && log.info(`Device: ${host} ${accessoryName}, debug: ${data ? `${msg} ${JSON.stringify(data, null, 2)}` : msg}`))
105
+ .on('warn', (msg) => logLevel.warn && log.warn(`Device: ${host} ${accessoryName}, ${msg}`))
106
+ .on('error', (msg) => logLevel.error && log.error(`Device: ${host} ${accessoryName}, ${msg}`));
110
107
 
111
108
  const accessory = await envoyDevice.start();
112
109
  if (accessory) {
113
110
  api.publishExternalAccessories(PluginName, [accessory]);
114
- if (logLevel.success) log.success(`Device: ${host} ${deviceName}, Published as external accessory.`);
111
+ if (logLevel.success) log.success(`Device: ${host} ${accessoryName}, Published as external accessory.`);
115
112
 
116
113
  await impulseGenerator.stop();
117
- await envoyDevice.startImpulseGenerator();
114
+ await envoyDevice.startStopImpulseGenerator(true);
118
115
  }
119
116
  } catch (error) {
120
117
  if (logLevel.error) log.error(`Device: ${host} ${accessoryName}, Start impulse generator error: ${error}, retrying.`);
@@ -136,7 +133,6 @@ class EnvoyPlatform {
136
133
 
137
134
  configureAccessory(accessory) {
138
135
  accessory.log = this.log;
139
- this.loggingService = new fakegato('energy', accessory, 4032);
140
136
  this.accessories.push(accessory);
141
137
  }
142
138
  }
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.2.2-beta.21",
5
+ "version": "10.2.2-beta.210",
6
6
  "description": "Homebridge p7ugin for Photovoltaic Energy System manufactured by Enphase.",
7
7
  "license": "MIT",
8
8
  "author": "grzegorz914",