homebridge-melcloud-control 4.3.0-beta.16 → 4.3.0-beta.18

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.3.0-beta.16",
4
+ "version": "4.3.0-beta.18",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -110,7 +110,7 @@ class MelCloudAta extends EventEmitter {
110
110
  if (!this.logDebug) this.emit('warn', `Socket send heartbeat`);
111
111
  socket.ping();
112
112
  }
113
- }, 5000);
113
+ }, 10000);
114
114
  })
115
115
  .on('pong', () => {
116
116
  if (!this.logDebug) this.emit('warn', `Socket received heartbeat`);
@@ -126,7 +126,9 @@ class MelCloudAta extends EventEmitter {
126
126
 
127
127
  switch (unitId) {
128
128
  case this.deviceId:
129
- const settings = messageData.settings[0];
129
+ const settings = Object.fromEntries(messageData.settings[0].map(s => [s.name, s.value]));
130
+ if (!this.logDebug) this.emit('warn', `Settings:', ${settings}`);
131
+
130
132
  const name = settings.name;
131
133
  const value = settings.value;
132
134
  deviceData.Device[name] = value;