homebridge-melcloud-control 4.1.3-beta.17 → 4.1.3-beta.19
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 -9
- package/src/deviceatw.js +3 -3
- package/src/deviceerv.js +3 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "MELCloud Control",
|
|
3
3
|
"name": "homebridge-melcloud-control",
|
|
4
|
-
"version": "4.1.3-beta.
|
|
4
|
+
"version": "4.1.3-beta.19",
|
|
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
|
@@ -641,7 +641,7 @@ class DeviceAta extends EventEmitter {
|
|
|
641
641
|
this.frostProtectionControlService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName}Frost Protection`);
|
|
642
642
|
this.frostProtectionControlService.getCharacteristic(Characteristic.On)
|
|
643
643
|
.onGet(async () => {
|
|
644
|
-
const state = this.accessory.
|
|
644
|
+
const state = this.accessory.frostProtectionEnabled;
|
|
645
645
|
return state;
|
|
646
646
|
})
|
|
647
647
|
.onSet(async (state) => {
|
|
@@ -661,7 +661,7 @@ class DeviceAta extends EventEmitter {
|
|
|
661
661
|
this.frostProtectionControlSensorService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} Frost Protection Control`);
|
|
662
662
|
this.frostProtectionControlSensorService.getCharacteristic(Characteristic.ContactSensorState)
|
|
663
663
|
.onGet(async () => {
|
|
664
|
-
const state = this.accessory.
|
|
664
|
+
const state = this.accessory.frostProtectionEnabled;
|
|
665
665
|
return state;
|
|
666
666
|
})
|
|
667
667
|
accessory.addService(this.frostProtectionControlSensorService);
|
|
@@ -729,7 +729,7 @@ class DeviceAta extends EventEmitter {
|
|
|
729
729
|
if (this.holidayModeSupport && this.accessory.holidayModeEnabled !== null) {
|
|
730
730
|
//control
|
|
731
731
|
if (this.logDebug) this.emit('debug', `Prepare holiday mode control service`);
|
|
732
|
-
this.holidayModeControlService = new Service.Switch(`${serviceName} Holiday Mode`, `
|
|
732
|
+
this.holidayModeControlService = new Service.Switch(`${serviceName} Holiday Mode`, `holidayModeControlService${deviceId}`);
|
|
733
733
|
this.holidayModeControlService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
734
734
|
this.holidayModeControlService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} Holiday Mode`);
|
|
735
735
|
this.holidayModeControlService.getCharacteristic(Characteristic.On)
|
|
@@ -749,7 +749,7 @@ class DeviceAta extends EventEmitter {
|
|
|
749
749
|
accessory.addService(this.holidayModeControlService);
|
|
750
750
|
|
|
751
751
|
if (this.logDebug) this.emit('debug', `Prepare holiday mode control sensor service`);
|
|
752
|
-
this.holidayModeControlSensorService = new Service.ContactSensor(`${serviceName} Holiday Mode Control`, `
|
|
752
|
+
this.holidayModeControlSensorService = new Service.ContactSensor(`${serviceName} Holiday Mode Control`, `holidayModeControlSensorService${deviceId}`);
|
|
753
753
|
this.holidayModeControlSensorService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
754
754
|
this.holidayModeControlSensorService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} Holiday Mode Control`);
|
|
755
755
|
this.holidayModeControlSensorService.getCharacteristic(Characteristic.ContactSensorState)
|
|
@@ -761,7 +761,7 @@ class DeviceAta extends EventEmitter {
|
|
|
761
761
|
|
|
762
762
|
//sensors
|
|
763
763
|
if (this.logDebug) this.emit('debug', `Prepare holiday mode sensor service`);
|
|
764
|
-
this.holidayModeSensorService = new Service.ContactSensor(`${serviceName} Holiday Mode`, `
|
|
764
|
+
this.holidayModeSensorService = new Service.ContactSensor(`${serviceName} Holiday Mode`, `holidayModeSensorService${deviceId}`);
|
|
765
765
|
this.holidayModeSensorService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
766
766
|
this.holidayModeSensorService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} Holiday Mode`);
|
|
767
767
|
this.holidayModeSensorService.getCharacteristic(Characteristic.ContactSensorState)
|
|
@@ -844,7 +844,7 @@ class DeviceAta extends EventEmitter {
|
|
|
844
844
|
if (i === 0) {
|
|
845
845
|
if (this.logDebug) this.emit('debug', `Prepare schedule control service`);
|
|
846
846
|
const serviceNameSchedule = namePrefix ? `${accessoryName} Schedule Control` : `Schedule Control`;
|
|
847
|
-
this.schedulesControlService = new Service.Switch(serviceNameSchedule, `
|
|
847
|
+
this.schedulesControlService = new Service.Switch(serviceNameSchedule, `schedulesControlService${deviceId} ${i}`);
|
|
848
848
|
this.schedulesControlService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
849
849
|
this.schedulesControlService.setCharacteristic(Characteristic.ConfiguredName, serviceNameSchedule);
|
|
850
850
|
this.schedulesControlService.getCharacteristic(Characteristic.On)
|
|
@@ -864,7 +864,7 @@ class DeviceAta extends EventEmitter {
|
|
|
864
864
|
accessory.addService(this.schedulesControlService);
|
|
865
865
|
|
|
866
866
|
if (this.logDebug) this.emit('debug', `Prepare schedule control sensor service`);
|
|
867
|
-
this.schedulesControlSensorService = new Service.ContactSensor(serviceNameSchedule, `
|
|
867
|
+
this.schedulesControlSensorService = new Service.ContactSensor(serviceNameSchedule, `schedulesControlSensorService${deviceId}`);
|
|
868
868
|
this.schedulesControlSensorService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
869
869
|
this.schedulesControlSensorService.setCharacteristic(Characteristic.ConfiguredName, serviceNameSchedule);
|
|
870
870
|
this.schedulesControlSensorService.getCharacteristic(Characteristic.ContactSensorState)
|
|
@@ -879,7 +879,7 @@ class DeviceAta extends EventEmitter {
|
|
|
879
879
|
const serviceName = namePrefix ? `${accessoryName} ${name}` : name;
|
|
880
880
|
const serviceType = schedule.serviceType;
|
|
881
881
|
const characteristicType = schedule.characteristicType;
|
|
882
|
-
const scheduleService = new serviceType(serviceName, `
|
|
882
|
+
const scheduleService = new serviceType(serviceName, `scheduleService${deviceId} ${i}`);
|
|
883
883
|
scheduleService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
884
884
|
scheduleService.setCharacteristic(Characteristic.ConfiguredName, serviceName);
|
|
885
885
|
scheduleService.getCharacteristic(characteristicType)
|
|
@@ -1441,7 +1441,7 @@ class DeviceAta extends EventEmitter {
|
|
|
1441
1441
|
//overheat protection
|
|
1442
1442
|
if (this.overheatProtectionSupport && overheatProtectionEnabled !== null) {
|
|
1443
1443
|
this.overheatProtectionControlService?.updateCharacteristic(Characteristic.On, overheatProtectionEnabled);
|
|
1444
|
-
this.overheatProtectionControlSensorService
|
|
1444
|
+
this.overheatProtectionControlSensorService?.updateCharacteristic(Characteristic.ContactSensorState, overheatProtectionEnabled);
|
|
1445
1445
|
this.overheatProtectionSensorService?.updateCharacteristic(Characteristic.ContactSensorState, overheatProtectionActive);
|
|
1446
1446
|
}
|
|
1447
1447
|
|
package/src/deviceatw.js
CHANGED
|
@@ -1067,7 +1067,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
1067
1067
|
if (this.holidayModeSupport && this.accessory.holidayModeEnabled !== null) {
|
|
1068
1068
|
//control
|
|
1069
1069
|
if (this.logDebug) this.emit('debug', `Prepare holiday mode control service`);
|
|
1070
|
-
this.holidayModeControlService = new Service.Switch(`${serviceName} Holiday Mode`, `
|
|
1070
|
+
this.holidayModeControlService = new Service.Switch(`${serviceName} Holiday Mode`, `holidayModeControlService${deviceId}`);
|
|
1071
1071
|
this.holidayModeControlService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
1072
1072
|
this.holidayModeControlService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} Holiday Mode`);
|
|
1073
1073
|
this.holidayModeControlService.getCharacteristic(Characteristic.On)
|
|
@@ -1087,7 +1087,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
1087
1087
|
accessory.addService(this.holidayModeControlService);
|
|
1088
1088
|
|
|
1089
1089
|
if (this.logDebug) this.emit('debug', `Prepare holiday mode control sensor service`);
|
|
1090
|
-
this.holidayModeControlSensorService = new Service.ContactSensor(`${serviceName} Holiday Mode Control`, `
|
|
1090
|
+
this.holidayModeControlSensorService = new Service.ContactSensor(`${serviceName} Holiday Mode Control`, `holidayModeControlSensorService${deviceId}`);
|
|
1091
1091
|
this.holidayModeControlSensorService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
1092
1092
|
this.holidayModeControlSensorService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} Holiday Mode Control`);
|
|
1093
1093
|
this.holidayModeControlSensorService.getCharacteristic(Characteristic.ContactSensorState)
|
|
@@ -1099,7 +1099,7 @@ class DeviceAtw extends EventEmitter {
|
|
|
1099
1099
|
|
|
1100
1100
|
//sensors
|
|
1101
1101
|
if (this.logDebug) this.emit('debug', `Prepare holiday mode sensor service`);
|
|
1102
|
-
this.holidayModeSensorService = new Service.ContactSensor(`${serviceName} Holiday Mode`, `
|
|
1102
|
+
this.holidayModeSensorService = new Service.ContactSensor(`${serviceName} Holiday Mode`, `holidayModeSensorService${deviceId}`);
|
|
1103
1103
|
this.holidayModeSensorService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
1104
1104
|
this.holidayModeSensorService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} Holiday Mode`);
|
|
1105
1105
|
this.holidayModeSensorService.getCharacteristic(Characteristic.ContactSensorState)
|
package/src/deviceerv.js
CHANGED
|
@@ -685,7 +685,7 @@ class DeviceErv extends EventEmitter {
|
|
|
685
685
|
if (this.holidayModeSupport && this.accessory.holidayModeEnabled !== null) {
|
|
686
686
|
//control
|
|
687
687
|
if (this.logDebug) this.emit('debug', `Prepare holiday mode control service`);
|
|
688
|
-
this.holidayModeControlService = new Service.Switch(`${serviceName} Holiday Mode`, `
|
|
688
|
+
this.holidayModeControlService = new Service.Switch(`${serviceName} Holiday Mode`, `holidayModeControlService${deviceId}`);
|
|
689
689
|
this.holidayModeControlService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
690
690
|
this.holidayModeControlService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} Holiday Mode`);
|
|
691
691
|
this.holidayModeControlService.getCharacteristic(Characteristic.On)
|
|
@@ -705,7 +705,7 @@ class DeviceErv extends EventEmitter {
|
|
|
705
705
|
accessory.addService(this.holidayModeControlService);
|
|
706
706
|
|
|
707
707
|
if (this.logDebug) this.emit('debug', `Prepare holiday mode control sensor service`);
|
|
708
|
-
this.holidayModeControlSensorService = new Service.ContactSensor(`${serviceName} Holiday Mode Control`, `
|
|
708
|
+
this.holidayModeControlSensorService = new Service.ContactSensor(`${serviceName} Holiday Mode Control`, `holidayModeControlSensorService${deviceId}`);
|
|
709
709
|
this.holidayModeControlSensorService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
710
710
|
this.holidayModeControlSensorService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} Holiday Mode Control`);
|
|
711
711
|
this.holidayModeControlSensorService.getCharacteristic(Characteristic.ContactSensorState)
|
|
@@ -717,7 +717,7 @@ class DeviceErv extends EventEmitter {
|
|
|
717
717
|
|
|
718
718
|
//sensors
|
|
719
719
|
if (this.logDebug) this.emit('debug', `Prepare holiday mode sensor service`);
|
|
720
|
-
this.holidayModeSensorService = new Service.ContactSensor(`${serviceName} Holiday Mode`, `
|
|
720
|
+
this.holidayModeSensorService = new Service.ContactSensor(`${serviceName} Holiday Mode`, `holidayModeSensorService${deviceId}`);
|
|
721
721
|
this.holidayModeSensorService.addOptionalCharacteristic(Characteristic.ConfiguredName);
|
|
722
722
|
this.holidayModeSensorService.setCharacteristic(Characteristic.ConfiguredName, `${accessoryName} Holiday Mode`);
|
|
723
723
|
this.holidayModeSensorService.getCharacteristic(Characteristic.ContactSensorState)
|