homebridge-enphase-envoy 10.2.5 → 10.2.6-beta.0
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 +5 -1
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
|
+
"version": "10.2.6-beta.0",
|
|
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
|
@@ -4867,6 +4867,8 @@ class EnvoyDevice extends EventEmitter {
|
|
|
4867
4867
|
|
|
4868
4868
|
// Add dry contacts
|
|
4869
4869
|
if (enpowersDryContactsSupported && Array.isArray(enpower.dryContacts)) {
|
|
4870
|
+
if (this.logDebug) this.emit('debug', `Requesting enpowers dry contacts data`);
|
|
4871
|
+
|
|
4870
4872
|
enpower.dryContacts.forEach((contact, i) => {
|
|
4871
4873
|
const dryContactData = {
|
|
4872
4874
|
id: contact.id,
|
|
@@ -4882,6 +4884,8 @@ class EnvoyDevice extends EventEmitter {
|
|
|
4882
4884
|
|
|
4883
4885
|
// Add dry contacts settings
|
|
4884
4886
|
if (enpowersDryContactsSettingsSupported && contact.settings) {
|
|
4887
|
+
if (this.logDebug) this.emit('debug', `Requesting enpowers dry contacts settings data`);
|
|
4888
|
+
|
|
4885
4889
|
const settings = contact.settings;
|
|
4886
4890
|
dryContactData.settings = {
|
|
4887
4891
|
type: ApiCodes[settings.type] ?? settings.type,
|
|
@@ -4906,7 +4910,7 @@ class EnvoyDevice extends EventEmitter {
|
|
|
4906
4910
|
};
|
|
4907
4911
|
}
|
|
4908
4912
|
|
|
4909
|
-
this.pv.inventoryData.esubs.dryContacts[i] = dryContactData;
|
|
4913
|
+
this.pv.inventoryData.esubs.enpowers[index].dryContacts[i] = dryContactData;
|
|
4910
4914
|
});
|
|
4911
4915
|
}
|
|
4912
4916
|
|