homebridge-tsvesync 1.0.72 → 1.0.75
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/accessories/air-purifier.accessory.d.ts +38 -5
- package/dist/accessories/air-purifier.accessory.d.ts.map +1 -1
- package/dist/accessories/air-purifier.accessory.js +421 -132
- package/dist/accessories/air-purifier.accessory.js.map +1 -1
- package/dist/platform.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/accessories/air-purifier.accessory.ts +505 -118
- package/src/platform.ts +1 -1
|
@@ -5,12 +5,42 @@ import { DeviceCapabilities, VeSyncAirPurifier } from '../types/device.types';
|
|
|
5
5
|
export declare class AirPurifierAccessory extends BaseAccessory {
|
|
6
6
|
private readonly capabilities;
|
|
7
7
|
protected readonly device: VeSyncAirPurifier;
|
|
8
|
-
private
|
|
8
|
+
private isAirBypassDevice;
|
|
9
|
+
private isAirBaseV2Device;
|
|
10
|
+
private isAir131Device;
|
|
11
|
+
private airQualityService?;
|
|
12
|
+
private lastSetSpeed;
|
|
13
|
+
private lastSetPercentage;
|
|
14
|
+
private skipNextUpdate;
|
|
9
15
|
constructor(platform: TSVESyncPlatform, accessory: PlatformAccessory, device: VeSyncAirPurifier);
|
|
16
|
+
/**
|
|
17
|
+
* Feature detection system
|
|
18
|
+
*/
|
|
19
|
+
private hasFeature;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a feature is supported in the current device mode
|
|
22
|
+
*/
|
|
23
|
+
private isFeatureSupportedInCurrentMode;
|
|
24
|
+
/**
|
|
25
|
+
* Get the maximum fan speed for the device
|
|
26
|
+
*/
|
|
27
|
+
private getMaxFanSpeed;
|
|
28
|
+
/**
|
|
29
|
+
* Convert device speed to percentage
|
|
30
|
+
*/
|
|
31
|
+
private speedToPercentage;
|
|
32
|
+
/**
|
|
33
|
+
* Convert percentage to device speed
|
|
34
|
+
*/
|
|
35
|
+
private percentageToSpeed;
|
|
10
36
|
/**
|
|
11
37
|
* Set up the air purifier service
|
|
12
38
|
*/
|
|
13
39
|
protected setupService(): void;
|
|
40
|
+
/**
|
|
41
|
+
* Get current state (INACTIVE = 0, IDLE = 1, PURIFYING_AIR = 2)
|
|
42
|
+
*/
|
|
43
|
+
private getCurrentState;
|
|
14
44
|
/**
|
|
15
45
|
* Get device capabilities
|
|
16
46
|
*/
|
|
@@ -20,7 +50,7 @@ export declare class AirPurifierAccessory extends BaseAccessory {
|
|
|
20
50
|
*/
|
|
21
51
|
protected updateDeviceSpecificStates(details: any): Promise<void>;
|
|
22
52
|
/**
|
|
23
|
-
* Get target state (
|
|
53
|
+
* Get target state (MANUAL = 0, AUTO = 1)
|
|
24
54
|
*/
|
|
25
55
|
private getTargetState;
|
|
26
56
|
/**
|
|
@@ -28,11 +58,14 @@ export declare class AirPurifierAccessory extends BaseAccessory {
|
|
|
28
58
|
*/
|
|
29
59
|
private setTargetState;
|
|
30
60
|
/**
|
|
31
|
-
*
|
|
61
|
+
* Get rotation speed
|
|
32
62
|
*/
|
|
33
|
-
private
|
|
63
|
+
private getRotationSpeed;
|
|
64
|
+
/**
|
|
65
|
+
* Set rotation speed
|
|
66
|
+
*/
|
|
67
|
+
private setRotationSpeed;
|
|
34
68
|
private getActive;
|
|
35
69
|
private setActive;
|
|
36
|
-
private getRotationSpeed;
|
|
37
70
|
}
|
|
38
71
|
//# sourceMappingURL=air-purifier.accessory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"air-purifier.accessory.d.ts","sourceRoot":"","sources":["../../src/accessories/air-purifier.accessory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"air-purifier.accessory.d.ts","sourceRoot":"","sources":["../../src/accessories/air-purifier.accessory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,iBAAiB,EAAW,MAAM,YAAY,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE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