homebridge-enphase-envoy 10.2.5-beta.0 → 10.2.5-beta.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/index.js +1 -1
- package/package.json +1 -1
- package/src/energymeter.js +1 -1
- package/src/envoydevice.js +3 -3
package/index.js
CHANGED
|
@@ -123,7 +123,7 @@ class EnvoyPlatform {
|
|
|
123
123
|
});
|
|
124
124
|
|
|
125
125
|
// start impulse generator
|
|
126
|
-
await impulseGenerator.
|
|
126
|
+
await impulseGenerator.state(true, [{ name: 'start', sampling: 120000 }]);
|
|
127
127
|
}
|
|
128
128
|
} catch (error) {
|
|
129
129
|
if (logLevel.error) log.error(`Device: ${host} ${deviceName}, Did finish launching error: ${error}`);
|
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.
|
|
5
|
+
"version": "10.2.5-beta.2",
|
|
6
6
|
"description": "Homebridge p7ugin for Photovoltaic Energy System manufactured by Enphase.",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"author": "grzegorz914",
|
package/src/energymeter.js
CHANGED
|
@@ -50,7 +50,7 @@ class EnergyMeter extends EventEmitter {
|
|
|
50
50
|
this.lastReset = 0;
|
|
51
51
|
|
|
52
52
|
//url
|
|
53
|
-
this.url = envoyFirmware7xxTokenGenerationMode > 0 ? `https://${this.host}` : `http://${this.host}`;
|
|
53
|
+
this.url = device.envoyFirmware7xxTokenGenerationMode > 0 ? `https://${this.host}` : `http://${this.host}`;
|
|
54
54
|
|
|
55
55
|
//supported functions
|
|
56
56
|
this.feature = {
|
package/src/envoydevice.js
CHANGED
|
@@ -103,9 +103,9 @@ class EnvoyDevice extends EventEmitter {
|
|
|
103
103
|
|
|
104
104
|
//system accessoty
|
|
105
105
|
this.systemAccessory = {
|
|
106
|
-
serviceType: ['', Service.Lightbulb, Service.Fan, Service.HumiditySensor, Service.CarbonMonoxideSensor][displayType],
|
|
107
|
-
characteristicType: ['', Characteristic.On, Characteristic.On, Characteristic.StatusActive, Characteristic.CarbonMonoxideDetected][displayType],
|
|
108
|
-
characteristicType1: ['', Characteristic.Brightness, Characteristic.RotationSpeed, Characteristic.CurrentRelativeHumidity, Characteristic.CarbonMonoxideLevel][displayType],
|
|
106
|
+
serviceType: ['', Service.Lightbulb, Service.Fan, Service.HumiditySensor, Service.CarbonMonoxideSensor][device.displayType],
|
|
107
|
+
characteristicType: ['', Characteristic.On, Characteristic.On, Characteristic.StatusActive, Characteristic.CarbonMonoxideDetected][device.displayType],
|
|
108
|
+
characteristicType1: ['', Characteristic.Brightness, Characteristic.RotationSpeed, Characteristic.CurrentRelativeHumidity, Characteristic.CarbonMonoxideLevel][device.displayType],
|
|
109
109
|
state: false,
|
|
110
110
|
level: 0
|
|
111
111
|
}
|