homebridge-melcloud-control 3.3.10 → 3.3.11-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/deviceata.js +9 -6
- package/src/melcloudata.js +2 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "3.3.
|
|
4
|
+
"version": "3.3.11-beta.0",
|
|
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
|
@@ -234,6 +234,7 @@ class DeviceAta extends EventEmitter {
|
|
|
234
234
|
const setTemperature = deviceData.Device.SetTemperature;
|
|
235
235
|
const defaultHeatingSetTemperature = deviceData.Device.DefaultHeatingSetTemperature;
|
|
236
236
|
const defaultCoolingSetTemperature = deviceData.Device.DefaultCoolingSetTemperature;
|
|
237
|
+
const actualFanSpeed = deviceData.Device.ActualFanSpeed;
|
|
237
238
|
const fanSpeed = deviceData.Device.FanSpeed;
|
|
238
239
|
const operationMode = deviceData.Device.OperationMode;
|
|
239
240
|
const vaneHorizontalDirection = deviceData.Device.VaneHorizontalDirection;
|
|
@@ -267,6 +268,7 @@ class DeviceAta extends EventEmitter {
|
|
|
267
268
|
this.accessory.outdoorTemperature = outdoorTemperature;
|
|
268
269
|
this.accessory.defaultHeatingSetTemperature = defaultHeatingSetTemperature;
|
|
269
270
|
this.accessory.defaultCoolingSetTemperature = defaultCoolingSetTemperature;
|
|
271
|
+
this.accessory.actualFanSpeed = actualFanSpeed;
|
|
270
272
|
this.accessory.fanSpeed = fanSpeed;
|
|
271
273
|
this.accessory.swingMode = swingFunction && vaneHorizontalDirection === 12 && vaneVerticalDirection === 7 ? 1 : 0;
|
|
272
274
|
this.accessory.lockPhysicalControl = prohibitSetTemperature && prohibitOperationMode && prohibitPower ? 1 : 0;
|
|
@@ -630,15 +632,16 @@ class DeviceAta extends EventEmitter {
|
|
|
630
632
|
this.emit('message', `Power: ${power ? 'ON' : 'OFF'}`);
|
|
631
633
|
this.emit('message', `Target operation mode: ${CONSTANTS.AirConditioner.DriveMode[operationMode]}`);
|
|
632
634
|
this.emit('message', `Current operation mode: ${this.displayMode === 1 ? CONSTANTS.AirConditioner.CurrentOperationModeHeatherCooler[this.accessory.currentOperationMode] : CONSTANTS.AirConditioner.CurrentOperationModeThermostat[this.accessory.currentOperationMode]}`);
|
|
633
|
-
this.emit('message', `Room temperature: ${roomTemperature}${this.accessory.temperatureUnit}`);
|
|
634
|
-
const info = hasOutdoorTemperature && deviceData.Device.OutdoorTemperature !== null ? this.emit('message', `Outdoor temperature: ${outdoorTemperature}${this.accessory.temperatureUnit}`) : false;
|
|
635
635
|
const info0 = operationMode !== 8 ? this.emit('message', `Target temperature: ${setTemperature}${this.accessory.temperatureUnit}`) : false;
|
|
636
636
|
const info1 = operationMode === 8 && modelSupportsHeat ? this.emit('message', `Heating threshold temperature: ${defaultHeatingSetTemperature}${this.accessory.temperatureUnit}`) : false;
|
|
637
637
|
const info2 = operationMode === 8 && modelSupportsCool ? this.emit('message', `Cooling threshold temperature: ${defaultCoolingSetTemperature}${this.accessory.temperatureUnit}`) : false;
|
|
638
|
-
|
|
639
|
-
const
|
|
640
|
-
const
|
|
641
|
-
const
|
|
638
|
+
this.emit('message', `Current temperature: ${roomTemperature}${this.accessory.temperatureUnit}`);
|
|
639
|
+
const info = hasOutdoorTemperature && deviceData.Device.OutdoorTemperature !== null ? this.emit('message', `Outdoor temperature: ${outdoorTemperature}${this.accessory.temperatureUnit}`) : false;
|
|
640
|
+
const info3 = modelSupportsFanSpeed ? this.emit('message', `Current fan speed: ${CONSTANTS.AirConditioner.FanSpeed[actualFanSpeed]}`) : false;
|
|
641
|
+
const info4 = modelSupportsFanSpeed ? this.emit('message', `Target fan speed: ${CONSTANTS.AirConditioner.FanSpeed[fanSpeed]}`) : false;
|
|
642
|
+
const info5 = vaneHorizontalDirection !== null ? this.emit('message', `Vane horizontal: ${CONSTANTS.AirConditioner.HorizontalVane[vaneHorizontalDirection]}`) : false;
|
|
643
|
+
const info6 = vaneVerticalDirection !== null ? this.emit('message', `Vane vertical: ${CONSTANTS.AirConditioner.VerticalVane[vaneVerticalDirection]}`) : false;
|
|
644
|
+
const info7 = swingFunction ? this.emit('message', `Air direction: ${CONSTANTS.AirConditioner.AirDirection[this.accessory.swingMode ? 7 : 0]}`) : false;
|
|
642
645
|
this.emit('message', `Temperature display unit: ${this.accessory.temperatureUnit}`);
|
|
643
646
|
this.emit('message', `Lock physical controls: ${this.accessory.lockPhysicalControl ? 'LOCKED' : 'UNLOCKED'}`);
|
|
644
647
|
};
|
package/src/melcloudata.js
CHANGED
|
@@ -101,6 +101,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
101
101
|
const canCool = device.CanCool;
|
|
102
102
|
const canHeat = device.CanHeat;
|
|
103
103
|
const canDry = device.CanDry;
|
|
104
|
+
const canAuto = device.CanAuto;
|
|
104
105
|
const hasAutomaticFanSpeed = device.HasAutomaticFanSpeed;
|
|
105
106
|
const airDirectionFunction = device.AirDirectionFunction;
|
|
106
107
|
const swingFunction = device.SwingFunction;
|
|
@@ -310,6 +311,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
310
311
|
const deviceState = {
|
|
311
312
|
RoomTemperature: roomTemperature,
|
|
312
313
|
SetTemperature: setTemperature,
|
|
314
|
+
ActualFanSpeed: actualFanSpeed,
|
|
313
315
|
FanSpeed: fanSpeed,
|
|
314
316
|
OperationMode: operationMode,
|
|
315
317
|
VaneHorizontalDirection: vaneHorizontalDirection,
|