homebridge-melcloud-control 4.3.3 → 4.3.4-beta.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/README.md CHANGED
@@ -129,6 +129,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
129
129
  * Operating mode `HEAT/COOL/CURVE/HOLIDAY/AUTO HOT WATER/ECO HOT WATER/FORCE HOT WATER`.
130
130
  * Physical lock controls `LOCK/UNLOCK`.
131
131
  * Presets `SET/UNSET`.
132
+ * Frost protection `ON/OFF`.
132
133
  * Holiday mode `ON/OFF`.
133
134
  * Schedules `ON/OFF`.
134
135
  * Scene `ON/OFF`.
@@ -144,6 +145,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
144
145
  * Water tank temperature.
145
146
  * Flow Temperature Zone 1, 2, Hot Water.
146
147
  * Return Temperature Zone 1, 2, Hot Water.
148
+ * Frost protection.
147
149
  * Holiday mode.
148
150
  * Shedules control.
149
151
  * Shedule active.
package/index.js CHANGED
@@ -194,13 +194,14 @@ class MelCloudPlatform {
194
194
 
195
195
  //start impulse generators\
196
196
  await configuredDevice.startStopImpulseGenerator(true, [{ name: 'checkState', sampling: deviceRefreshInterval }]);
197
- const timmers = accountType === 'melcloudhome' ? [{ name: 'connect', sampling: 3300000 }, { name: 'checkDevicesList', sampling: 3000 }] : [{ name: 'checkDevicesList', sampling: refreshInterval }];
198
- await melCloud.impulseGenerator.state(true, timmers, false);
199
-
200
- //stop impulse generator
201
- await impulseGenerator.state(false);
202
197
  }
203
198
  }
199
+
200
+ const timmers = accountType === 'melcloudhome' ? [{ name: 'connect', sampling: 3300000 }, { name: 'checkDevicesList', sampling: 3000 }] : [{ name: 'checkDevicesList', sampling: refreshInterval }];
201
+ await melCloud.impulseGenerator.state(true, timmers, false);
202
+
203
+ //stop impulse generator
204
+ await impulseGenerator.state(false);
204
205
  } catch (error) {
205
206
  if (logLevel.error) log.error(`${accountName}, Start impulse generator error, ${error.message ?? error}, trying again.`);
206
207
  }
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.3",
4
+ "version": "4.3.4-beta.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",
@@ -198,7 +198,7 @@ class MelCloudAta extends EventEmitter {
198
198
  const unitId = messageData?.id;
199
199
  switch (unitId) {
200
200
  case this.deviceId:
201
- if (this.logDebug) this.emit('debug', `Incoming message: ${stringifyMessage}`);
201
+ if (!this.logDebug) this.emit('debug', `Incoming message: ${stringifyMessage}`);
202
202
  const messageType = parsedMessage[0].messageType;
203
203
  const settings = this.functions.parseArrayNameValue(messageData.settings);
204
204
  switch (messageType) {