homebridge-melcloud-control 4.3.0 → 4.3.1

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",
4
+ "version": "4.3.1",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -93,6 +93,7 @@ class MelCloudAta extends EventEmitter {
93
93
  deviceData.Device.DefaultHeatingSetTemperature = temps?.defaultHeatingSetTemperature ?? 20;
94
94
  deviceData.Device.DefaultCoolingSetTemperature = temps?.defaultCoolingSetTemperature ?? 24;
95
95
 
96
+ //web cocket connection
96
97
  if (!this.connecting && !this.socketConnected) {
97
98
  this.connecting = true;
98
99
 
@@ -116,7 +117,7 @@ class MelCloudAta extends EventEmitter {
116
117
  // heartbeat
117
118
  this.heartbeat = setInterval(() => {
118
119
  if (socket.readyState === socket.OPEN) {
119
- if (!this.logDebug) this.emit('debug', `Socket send heartbeat`);
120
+ if (this.logDebug) this.emit('debug', `Socket send heartbeat`);
120
121
  socket.ping();
121
122
  }
122
123
  }, 30000);