homebridge-melcloud-control 4.0.0-beta.564 → 4.0.0-beta.566
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 +2 -2
- package/src/deviceatw.js +2 -2
- package/src/deviceerv.js +2 -2
- package/src/melcloudata.js +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.0.0-beta.
|
|
4
|
+
"version": "4.0.0-beta.566",
|
|
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
|
@@ -262,7 +262,7 @@ class DeviceAta extends EventEmitter {
|
|
|
262
262
|
|
|
263
263
|
//information service
|
|
264
264
|
if (this.logDebug) this.emit('debug', `Prepare information service`);
|
|
265
|
-
accessory.getService(Service.AccessoryInformation)
|
|
265
|
+
this.informationService = accessory.getService(Service.AccessoryInformation)
|
|
266
266
|
.setCharacteristic(Characteristic.Manufacturer, this.manufacturer)
|
|
267
267
|
.setCharacteristic(Characteristic.Model, this.model)
|
|
268
268
|
.setCharacteristic(Characteristic.SerialNumber, this.serialNumber)
|
|
@@ -949,7 +949,7 @@ class DeviceAta extends EventEmitter {
|
|
|
949
949
|
this.serialNumber = serialNumber.toString();
|
|
950
950
|
this.firmwareRevision = firmwareAppVersion.toString();
|
|
951
951
|
|
|
952
|
-
this.informationService?.setCharacteristic(Characteristic.FirmwareRevision, this.
|
|
952
|
+
this.informationService?.setCharacteristic(Characteristic.FirmwareRevision, this.firmwareRevision);
|
|
953
953
|
})
|
|
954
954
|
.on('deviceState', async (deviceData) => {
|
|
955
955
|
this.deviceData = deviceData;
|
package/src/deviceatw.js
CHANGED
|
@@ -283,7 +283,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
283
283
|
|
|
284
284
|
//information service
|
|
285
285
|
if (this.logDebug) this.emit('debug', `Prepare information service`);
|
|
286
|
-
accessory.getService(Service.AccessoryInformation)
|
|
286
|
+
this.informationService = accessory.getService(Service.AccessoryInformation)
|
|
287
287
|
.setCharacteristic(Characteristic.Manufacturer, this.manufacturer)
|
|
288
288
|
.setCharacteristic(Characteristic.Model, this.model)
|
|
289
289
|
.setCharacteristic(Characteristic.SerialNumber, this.serialNumber)
|
|
@@ -1324,7 +1324,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
1324
1324
|
this.serialNumber = serialNumber.toString();
|
|
1325
1325
|
this.firmwareRevision = firmwareAppVersion.toString();
|
|
1326
1326
|
|
|
1327
|
-
this.informationService?.setCharacteristic(Characteristic.FirmwareRevision, this.
|
|
1327
|
+
this.informationService?.setCharacteristic(Characteristic.FirmwareRevision, this.firmwareRevision);
|
|
1328
1328
|
})
|
|
1329
1329
|
.on('deviceState', async (deviceData) => {
|
|
1330
1330
|
this.deviceData = deviceData;
|
package/src/deviceerv.js
CHANGED
|
@@ -251,7 +251,7 @@ class DeviceErv extends EventEmitter {
|
|
|
251
251
|
|
|
252
252
|
//information service
|
|
253
253
|
if (this.logDebug) this.emit('debug', `Prepare information service`);
|
|
254
|
-
accessory.getService(Service.AccessoryInformation)
|
|
254
|
+
this.informationService = accessory.getService(Service.AccessoryInformation)
|
|
255
255
|
.setCharacteristic(Characteristic.Manufacturer, this.manufacturer)
|
|
256
256
|
.setCharacteristic(Characteristic.Model, this.model)
|
|
257
257
|
.setCharacteristic(Characteristic.SerialNumber, this.serialNumber)
|
|
@@ -869,7 +869,7 @@ class DeviceErv extends EventEmitter {
|
|
|
869
869
|
this.serialNumber = serialNumber.toString();
|
|
870
870
|
this.firmwareRevision = firmwareAppVersion.toString();
|
|
871
871
|
|
|
872
|
-
this.informationService?.setCharacteristic(Characteristic.FirmwareRevision, this.
|
|
872
|
+
this.informationService?.setCharacteristic(Characteristic.FirmwareRevision, this.firmwareRevision);
|
|
873
873
|
})
|
|
874
874
|
.on('deviceState', async (deviceData) => {
|
|
875
875
|
this.deviceData = deviceData;
|
package/src/melcloudata.js
CHANGED
|
@@ -252,7 +252,7 @@ class MelCloudAta extends EventEmitter {
|
|
|
252
252
|
VaneVerticalDirection: AirConditioner.VaneVerticalDirectionMapEnumToString[deviceData.Device.VaneVerticalDirection]
|
|
253
253
|
}
|
|
254
254
|
};
|
|
255
|
-
if (
|
|
255
|
+
if (this.logDebug) this.emit('debug', `Send Data: ${JSON.stringify(settings.data, null, 2)}`);
|
|
256
256
|
|
|
257
257
|
const path = ApiUrlsHome.SetAta.replace('deviceid', deviceData.DeviceID);
|
|
258
258
|
await axiosInstancePut(path, settings);
|