homebridge-melcloud-control 4.1.3-beta.18 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.1.3-beta.18",
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.holidayModeEnabled;
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.holidayModeEnabled;
664
+ const state = this.accessory.frostProtectionEnabled;
665
665
  return state;
666
666
  })
667
667
  accessory.addService(this.frostProtectionControlSensorService);
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`, `Holiday Mode Control ${deviceId}`);
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`, `Holiday Mode Control Sensor ${deviceId}`);
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`, `Holiday Mode Sensor ${deviceId}`);
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`, `Holiday Mode Control ${deviceId}`);
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`, `Holiday Mode Control Sensor ${deviceId}`);
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`, `Holiday Mode Sensor ${deviceId}`);
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)