homebridge-melcloud-control 2.3.0-beta.25 → 2.3.0-beta.26

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/CHANGELOG.md CHANGED
@@ -26,7 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
26
26
  ## Changes
27
27
 
28
28
  - removed from config.json `ataDisableAutoMode`, `ataDisableHeatMode`, `ataAutoHeatMode`
29
- - added to config.json `ataHeatDryFanMode`, `ataAutoDryFanMode`
29
+ - added to config.json `ataHeatDryFanMode`, `ataCoolDryFanMode`, `ataAutoDryFanMode`
30
30
  - added [#132](https://github.com/grzegorz914/homebridge-melcloud-control/issues/132)
31
31
  - cleanup
32
32
  - config schema updated
package/README.md CHANGED
@@ -48,7 +48,7 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
48
48
  * Swing mode `AUTO/SWING`.
49
49
  * Physical lock controls `LOCK/UNLOCK`.
50
50
  * Temperature display unit `°F/°C`.
51
- * Assign operating mode for `HEAT/AUTO`.
51
+ * Assign operating mode for `HEAT/COOL/AUTO`.
52
52
  * Thermostat:
53
53
  * Power `ON/OFF`.
54
54
  * Operating mode `POWER OFF/HEAT/COOL/AUTO`.
@@ -177,10 +177,11 @@ Homebridge plugin for Air Conditioner, Heat Pump and Energy Recovery Ventilation
177
177
  | `passwd` | Here set the MELCloud password. |
178
178
  | `language` | Here select the MELCloud language. |
179
179
  | `ataDisplayMode` | Here select main control mode `Heater/Cooler`, `Thermostat`. |
180
- | `ataTemperatureSensor` | This enable extra `Room` temperature sensors to use with automations in HomeKit app. |
181
- | `ataTemperatureSensorOutdoor` | This enable extra `Outdoor` temperature sensors to use with automations in HomeKit app. |
182
180
  | `ataHeatDryFanMode` | Here select operation mode for `Heat`, if selected `Heat` and the mode is not supported by device then will be disabled, in other cases will use selected mode. |
181
+ | `ataCoolDryFanMode` | Here select operation mode for `Cool`, if selected `Cool` and the mode is not supported by device then will be disabled, in other cases will use selected mode. |
183
182
  | `ataAutoDryFanMode` | Here select operation mode for `Auto`, if selected `Auto` and the mode is not supported by device then will be disabled, in other cases will use selected mode. |
183
+ | `ataTemperatureSensor` | This enable extra `Room` temperature sensors to use with automations in HomeKit app. |
184
+ | `ataTemperatureSensorOutdoor` | This enable extra `Outdoor` temperature sensors to use with automations in HomeKit app. |
184
185
  | `ataPresets` | This enable extra buttons for configured presets and display it in HomeKit app. |
185
186
  | `ataButtons.name` | Here set `Button Name` which You want expose to the `Homebridge/HomeKit`. |
186
187
  | `ataButtons.mode` | Here select button mode, VH - Vane Horizontal, VV - Vane Horizontal. |
@@ -1430,6 +1430,7 @@
1430
1430
  "items": [
1431
1431
  "accounts[].ataDisplayMode",
1432
1432
  "accounts[].ataHeatDryFanMode",
1433
+ "accounts[].ataCoolDryFanMode",
1433
1434
  "accounts[].ataAutoDryFanMode",
1434
1435
  "accounts[].ataPresets",
1435
1436
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "2.3.0-beta.25",
4
+ "version": "2.3.0-beta.26",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
package/src/deviceata.js CHANGED
@@ -72,6 +72,7 @@ class DeviceAta extends EventEmitter {
72
72
  this.fanSpeed = 0;
73
73
  this.swingMode = 0;
74
74
  this.lockPhysicalControls = 0;
75
+ this.useFahrenheit = 0;
75
76
 
76
77
  this.operationModeSetPropsMinValue = 0;
77
78
  this.operationModeSetPropsMaxValue = 3;
@@ -277,7 +278,6 @@ class DeviceAta extends EventEmitter {
277
278
  break;
278
279
  case false:
279
280
  this.currentOperationMode = 0;
280
- this.targetOperationMode = 0;
281
281
  break;
282
282
  };
283
283
  this.operationModeSetPropsMinValue = modelSupportsAuto && modelSupportsHeat ? 0 : !modelSupportsAuto && modelSupportsHeat ? 1 : modelSupportsAuto && !modelSupportsHeat ? 0 : 2;
@@ -326,52 +326,59 @@ class DeviceAta extends EventEmitter {
326
326
  .updateCharacteristic(Characteristic.HeatingThresholdTemperature, setTemperature)
327
327
  .updateCharacteristic(Characteristic.CoolingThresholdTemperature, setTemperature)
328
328
  .updateCharacteristic(Characteristic.LockPhysicalControls, this.lockPhysicalControls)
329
- .updateCharacteristic(Characteristic.TemperatureDisplayUnits, useFahrenheit);
329
+ .updateCharacteristic(Characteristic.TemperatureDisplayUnits, this.useFahrenheit);
330
330
  const updateRS = modelSupportsFanSpeed ? this.melCloudService.updateCharacteristic(Characteristic.RotationSpeed, this.fanSpeed) : false;
331
331
  const updateSM = swingFunction ? this.melCloudService.updateCharacteristic(Characteristic.SwingMode, this.swingMode) : false;
332
332
  };
333
333
  break;
334
334
  case 1: //Thermostat
335
- switch (power && !inStandbyMode) {
335
+ switch (power) {
336
336
  case true:
337
- switch (operationMode) {
338
- case 1: //HEAT
339
- this.currentOperationMode = 1; //OFF, HEAT, COOL
340
- this.targetOperationMode = 1; //OFF, HEAT, COOL, AUTO
341
- break;
342
- case 2: //DRY
343
- this.currentOperationMode = 2;
344
- this.targetOperationMode = 2;
345
- break;
346
- case 3: //COOL
347
- this.currentOperationMode = 2;
348
- this.targetOperationMode = 2;
349
- break;
350
- case 7: //FAN
351
- this.currentOperationMode = 2;
352
- this.targetOperationMode = 2;
353
- break;
354
- case 8: //AUTO
355
- this.currentOperationMode = setTemperature < roomTemperature ? 2 : 1;
356
- this.targetOperationMode = 3;
357
- break;
358
- case 9: //ISEE HEAT
359
- this.currentOperationMode = 1
360
- this.targetOperationMode = 1;
361
- break;
362
- case 10: //ISEE DRY
363
- this.currentOperationMode = 2;
364
- this.targetOperationMode = 2;
365
- break;
366
- case 11: //ISEE COOL;
367
- this.currentOperationMode = 2;
368
- this.targetOperationMode = 2;
337
+ switch (!inStandbyMode) {
338
+ case true:
339
+ switch (operationMode) {
340
+ case 1: //HEAT
341
+ this.currentOperationMode = 1; //OFF, HEAT, COOL
342
+ this.targetOperationMode = 1; //OFF, HEAT, COOL, AUTO
343
+ break;
344
+ case 2: //DRY
345
+ this.currentOperationMode = 2;
346
+ this.targetOperationMode = 2;
347
+ break;
348
+ case 3: //COOL
349
+ this.currentOperationMode = 2;
350
+ this.targetOperationMode = 2;
351
+ break;
352
+ case 7: //FAN
353
+ this.currentOperationMode = 2;
354
+ this.targetOperationMode = 2;
355
+ break;
356
+ case 8: //AUTO
357
+ this.currentOperationMode = setTemperature < roomTemperature ? 2 : 1;
358
+ this.targetOperationMode = 3;
359
+ break;
360
+ case 9: //ISEE HEAT
361
+ this.currentOperationMode = 1
362
+ this.targetOperationMode = 1;
363
+ break;
364
+ case 10: //ISEE DRY
365
+ this.currentOperationMode = 2;
366
+ this.targetOperationMode = 2;
367
+ break;
368
+ case 11: //ISEE COOL;
369
+ this.currentOperationMode = 2;
370
+ this.targetOperationMode = 2;
371
+ break;
372
+ default:
373
+ this.emit('warn', `Unknown operating mode: ${operationMode}`);
374
+ break;
375
+ };
369
376
  break;
370
- default:
371
- this.emit('warn', `Unknown operating mode: ${operationMode}`);
377
+ case false:
378
+ this.currentOperationMode = 0;
379
+ this.targetOperationMode = 0;
372
380
  break;
373
381
  };
374
- break;
375
382
  case false:
376
383
  this.currentOperationMode = 0;
377
384
  this.targetOperationMode = 0;
@@ -388,7 +395,7 @@ class DeviceAta extends EventEmitter {
388
395
  .updateCharacteristic(Characteristic.TargetHeatingCoolingState, this.targetOperationMode)
389
396
  .updateCharacteristic(Characteristic.CurrentTemperature, roomTemperature)
390
397
  .updateCharacteristic(Characteristic.TargetTemperature, setTemperature)
391
- .updateCharacteristic(Characteristic.TemperatureDisplayUnits, useFahrenheit);
398
+ .updateCharacteristic(Characteristic.TemperatureDisplayUnits, this.useFahrenheit);
392
399
  };
393
400
  break;
394
401
  };