homebridge-enphase-envoy 10.2.5-beta.2 → 10.2.5-beta.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/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.5-beta.2",
5
+ "version": "10.2.5-beta.3",
6
6
  "description": "Homebridge p7ugin for Photovoltaic Energy System manufactured by Enphase.",
7
7
  "license": "MIT",
8
8
  "author": "grzegorz914",
@@ -25,8 +25,6 @@ class EnergyMeter extends EventEmitter {
25
25
  this.envoyFirmware7xxTokenGenerationMode = device.envoyFirmware7xxTokenGenerationMode;
26
26
  this.enlightenUser = device.enlightenUser;
27
27
  this.enlightenPasswd = device.enlightenPasswd;
28
- this.envoyToken = device.envoyToken;
29
- this.envoyTokenInstaller = device.envoyTokenInstaller;
30
28
  this.energyProductionLifetimeOffset = device.energyProductionLifetimeOffset || 0;
31
29
  this.energyConsumptionTotalLifetimeOffset = device.energyConsumptionTotalLifetimeOffset || 0;
32
30
  this.energyConsumptionNetLifetimeOffset = device.energyConsumptionNetLifetimeOffset || 0;
@@ -64,9 +62,9 @@ class EnergyMeter extends EventEmitter {
64
62
  cookie: '',
65
63
  jwtToken: {
66
64
  generation_time: 0,
67
- token: envoyToken,
65
+ token: device.envoyToken,
68
66
  expires_at: 0,
69
- installer: this.envoyFirmware7xxTokenGenerationMode === 2 ? this.envoyTokenInstaller : false
67
+ installer: this.envoyFirmware7xxTokenGenerationMode === 2 ? device.envoyTokenInstaller : false
70
68
  }
71
69
  },
72
70
  meters: {
@@ -362,7 +362,7 @@ class EnvoyDevice extends EventEmitter {
362
362
  this.envoyTokenFile = envoyTokenFile;
363
363
 
364
364
  //url
365
- this.url = envoyFirmware7xxTokenGenerationMode > 0 ? `https://${this.host}` : `http://${this.host}`;
365
+ this.url = config.envoyFirmware7xxTokenGenerationMode > 0 ? `https://${this.host}` : `http://${this.host}`;
366
366
 
367
367
  //supported functions
368
368
  this.feature = {