homebridge-melcloud-control 2.3.0-beta.6 → 2.3.0-beta.8

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/index.js CHANGED
@@ -210,6 +210,8 @@ class MelCloudPlatform {
210
210
  };
211
211
 
212
212
  module.exports = (api) => {
213
+ const { Service, Characteristic, Units, Formats, Perms } = api.hap;
214
+ //custom characteristics
213
215
  class CustomTargetHeaterCoolerState extends Characteristic {
214
216
  constructor() {
215
217
  super('Mode', '00000033-0000-1000-8000-0026BB765291');
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.6",
4
+ "version": "2.3.0-beta.8",
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
@@ -632,7 +632,7 @@ class DeviceAta extends EventEmitter {
632
632
  case 0: //Heater Cooler
633
633
  const debug = this.enableDebugMode ? this.emit('debug', `Prepare heather/cooler service`) : false;
634
634
  this.melCloudService = accessory.addService(Service.HeaterCooler, serviceName, `HeaterCooler ${deviceId}`);
635
- this.melCloudService.removeCharacteristic(Characteristic.CustomTargetHeaterCoolerState);
635
+ this.melCloudService.removeCharacteristic(Characteristic.TargetHeaterCoolerState);
636
636
  this.melCloudService.addCharacteristic(Characteristic.CustomTargetHeaterCoolerState);
637
637
  this.melCloudService.getCharacteristic(Characteristic.Active)
638
638
  .onGet(async () => {