homebridge-enphase-envoy 10.3.0-beta.5 → 10.3.0-beta.7
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 +1 -1
- package/src/envoydevice.js +6 -6
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.3.0-beta.
|
|
5
|
+
"version": "10.3.0-beta.7",
|
|
6
6
|
"description": "Homebridge p7ugin for Photovoltaic Energy System manufactured by Enphase.",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"author": "grzegorz914",
|
package/src/envoydevice.js
CHANGED
|
@@ -2694,7 +2694,7 @@ class EnvoyDevice extends EventEmitter {
|
|
|
2694
2694
|
{ type: Characteristic.AdminState, label: 'admin state', value: collar.adminStateStr },
|
|
2695
2695
|
{ type: Characteristic.Status, label: 'status', value: collar.deviceStatus },
|
|
2696
2696
|
{ type: Characteristic.MidState, label: 'mid state', value: collar.midState },
|
|
2697
|
-
{ type: Characteristic.GridState, label: '
|
|
2697
|
+
{ type: Characteristic.GridState, label: 'grid state', value: collar.gridState },
|
|
2698
2698
|
{ type: Characteristic.Communicating, label: 'communicating', value: collar.communicating, postfix: collar.communicating ? 'Yes' : 'No' },
|
|
2699
2699
|
{ type: Characteristic.Temperature, label: 'temperature', value: collar.temperature, unit: '°C' },
|
|
2700
2700
|
{ type: Characteristic.ReadingTime, label: 'reading time', value: collar.readingTime }
|
|
@@ -4839,7 +4839,7 @@ class EnvoyDevice extends EventEmitter {
|
|
|
4839
4839
|
logger: info.logger ?? '',
|
|
4840
4840
|
date: this.functions.formatTimestamp(info.date, this.pv.homeData.timeZone),
|
|
4841
4841
|
};
|
|
4842
|
-
|
|
4842
|
+
if (this.logDebug) this.emit('debug', `Requesting encharges tariff data1`);
|
|
4843
4843
|
// Storage Settings
|
|
4844
4844
|
const s = info.storage_settings ?? {};
|
|
4845
4845
|
tariff.storageSettings = {
|
|
@@ -4884,10 +4884,10 @@ class EnvoyDevice extends EventEmitter {
|
|
|
4884
4884
|
return season;
|
|
4885
4885
|
});
|
|
4886
4886
|
};
|
|
4887
|
-
|
|
4887
|
+
if (this.logDebug) this.emit('debug', `Requesting encharges tariff data2`);
|
|
4888
4888
|
tariff.seasons = processSeasons(info.seasons ?? []);
|
|
4889
4889
|
tariff.seasonsSell = processSeasons(info.seasons_sell ?? []);
|
|
4890
|
-
|
|
4890
|
+
if (this.logDebug) this.emit('debug', `Requesting encharges tariff data3`);
|
|
4891
4891
|
// Schedule
|
|
4892
4892
|
const sched = tariffData.schedule ?? {};
|
|
4893
4893
|
tariff.schedule = {
|
|
@@ -4907,7 +4907,7 @@ class EnvoyDevice extends EventEmitter {
|
|
|
4907
4907
|
overrideTouMode: ApiCodes[sched.override_tou_mode] ?? sched.override_tou_mode,
|
|
4908
4908
|
schedule: sched.schedule ?? {}
|
|
4909
4909
|
};
|
|
4910
|
-
|
|
4910
|
+
if (this.logDebug) this.emit('debug', `Requesting encharges tariff data4`);
|
|
4911
4911
|
// Encharge profile control updates
|
|
4912
4912
|
for (let i = 0; i < this.enchargeProfileControls.length; i++) {
|
|
4913
4913
|
const control = this.enchargeProfileControls[i];
|
|
@@ -4932,7 +4932,7 @@ class EnvoyDevice extends EventEmitter {
|
|
|
4932
4932
|
this.enchargeProfileControlsServices?.[i]?.updateCharacteristic(type, value);
|
|
4933
4933
|
}
|
|
4934
4934
|
}
|
|
4935
|
-
|
|
4935
|
+
if (this.logDebug) this.emit('debug', `Requesting encharges tariff data5`);
|
|
4936
4936
|
// Encharge profile sensors update
|
|
4937
4937
|
for (let i = 0; i < this.enchargeProfileSensors.length; i++) {
|
|
4938
4938
|
const sensor = this.enchargeProfileSensors[i];
|