homebridge-winix-purifiers 1.4.0 → 1.4.2

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/dist/accessory.js CHANGED
@@ -21,13 +21,13 @@ class WinixPurifierAccessory {
21
21
  this.airQuality = this.registerService(new this.hap.Service.AirQualitySensor(`${deviceName} Air Quality`));
22
22
  }
23
23
  if (config.exposePlasmawave) {
24
- this.plasmawave = this.registerService(new this.hap.Service.Switch(`${deviceName} Plasmawave`));
24
+ this.plasmawave = this.registerService(new this.hap.Service.Switch(`${deviceName} Plasmawave`, 'plasmawave'));
25
25
  }
26
26
  if (config.exposeAmbientLight) {
27
27
  this.ambientLight = this.registerService(new this.hap.Service.LightSensor(`${deviceName} Ambient Light`));
28
28
  }
29
29
  if (config.exposeAutoSwitch) {
30
- this.autoSwitch = this.registerService(new this.hap.Service.Switch(`${deviceName} Auto Mode`));
30
+ this.autoSwitch = this.registerService(new this.hap.Service.Switch(`${deviceName} Auto Mode`, 'auto'));
31
31
  }
32
32
  // Assign characteristics
33
33
  this.purifier.getCharacteristic(this.hap.Characteristic.Active)
@@ -172,7 +172,7 @@ class WinixPurifierAccessory {
172
172
  this.sendHomekitUpdate();
173
173
  }, 2000);
174
174
  }
175
- async getRotationSpeed(force = true) {
175
+ async getRotationSpeed(force = false) {
176
176
  if (!force && this.shouldUseCachedValue(this.latestStatus.airflow)) {
177
177
  this.log.debug('getRotationSpeed() (cached)', this.latestStatus.airflow);
178
178
  return this.toRotationSpeed(this.latestStatus.airflow);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "private": false,
3
3
  "displayName": "Winix Air Purifiers",
4
4
  "name": "homebridge-winix-purifiers",
5
- "version": "1.4.0",
5
+ "version": "1.4.2",
6
6
  "description": "Homebridge plugin for Winix air purifiers",
7
7
  "license": "Apache-2.0",
8
8
  "repository": {