homebridge-enphase-envoy 9.9.4 → 9.9.6

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/index.js CHANGED
@@ -35,7 +35,7 @@ class EnvoyPlatform {
35
35
  }
36
36
 
37
37
  const deviceName = device.name;
38
- const host = device.host || i === 1 ? 'envoy.local' : `envoy-${i}.local`;
38
+ const host = device.host || (i === 1 ? 'envoy.local' : `envoy-${i}.local`);
39
39
  const envoyFirmware7xx = device.envoyFirmware7xx || false;
40
40
  const envoyFirmware7xxTokenGenerationMode = device.envoyFirmware7xxTokenGenerationMode || 0; //0 - enlighten credentials, 1 - own token
41
41
  const envoyPasswd = device.envoyPasswd;
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.4",
5
+ "version": "9.9.6",
6
6
  "description": "Homebridge plugin for Photovoltaic Energy System manufactured by Enphase.",
7
7
  "license": "MIT",
8
8
  "author": "grzegorz914",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "async-mqtt": "^2.6.3",
39
- "axios": "^1.8.3",
39
+ "axios": "^1.8.4",
40
40
  "express": "^4.21.2",
41
41
  "fast-xml-parser": "^5.0.9"
42
42
  },
@@ -256,7 +256,7 @@ class EnvoyDevice extends EventEmitter {
256
256
  const energyConsumptionTotalStateSensorDisplayType = this.energyConsumptionTotalStateSensor.displayType ?? 0;
257
257
  if (energyConsumptionTotalStateSensorDisplayType > 0) {
258
258
  const sensor = {};
259
- sensor.name = this.this.energyConsumptionTotalStateSensor.name || 'Energy Consumption Total State Sensor';
259
+ sensor.name = this.energyConsumptionTotalStateSensor.name || 'Energy Consumption Total State Sensor';
260
260
  sensor.namePrefix = this.energyConsumptionTotalStateSensor.namePrefix;
261
261
  sensor.serviceType = ['', Service.MotionSensor, Service.OccupancySensor, Service.ContactSensor][energyConsumptionTotalStateSensorDisplayType];
262
262
  sensor.characteristicType = ['', Characteristic.MotionDetected, Characteristic.OccupancyDetected, Characteristic.ContactSensorState][energyConsumptionTotalStateSensorDisplayType];
@@ -287,7 +287,7 @@ class EnvoyDevice extends EventEmitter {
287
287
  const powerConsumptionNetStateSensorDisplayType = this.powerConsumptionNetStateSensor.displayType ?? 0;
288
288
  if (powerConsumptionNetStateSensorDisplayType > 0) {
289
289
  const sensor = {};
290
- sensor.name = this.this.powerConsumptionNetStateSensor.name || 'Power Consumption Net State Sensor';
290
+ sensor.name = this.powerConsumptionNetStateSensor.name || 'Power Consumption Net State Sensor';
291
291
  sensor.namePrefix = this.powerConsumptionNetStateSensor.namePrefix;
292
292
  sensor.serviceType = ['', Service.MotionSensor, Service.OccupancySensor, Service.ContactSensor][powerConsumptionNetStateSensorDisplayType];
293
293
  sensor.characteristicType = ['', Characteristic.MotionDetected, Characteristic.OccupancyDetected, Characteristic.ContactSensorState][powerConsumptionNetStateSensorDisplayType];
@@ -318,7 +318,7 @@ class EnvoyDevice extends EventEmitter {
318
318
  const energyConsumptionNetStateSensorDisplayType = this.energyConsumptionNetStateSensor.displayType ?? 0;
319
319
  if (energyConsumptionNetStateSensorDisplayType > 0) {
320
320
  const sensor = {};
321
- sensor.name = this.this.energyConsumptionNetStateSensor.name || 'Energy Consumption Net State Sensor';
321
+ sensor.name = this.energyConsumptionNetStateSensor.name || 'Energy Consumption Net State Sensor';
322
322
  sensor.namePrefix = this.energyConsumptionNetStateSensor.namePrefix;
323
323
  sensor.serviceType = ['', Service.MotionSensor, Service.OccupancySensor, Service.ContactSensor][energyConsumptionNetStateSensorDisplayType];
324
324
  sensor.characteristicType = ['', Characteristic.MotionDetected, Characteristic.OccupancyDetected, Characteristic.ContactSensorState][energyConsumptionNetStateSensorDisplayType];