-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSwitchBotAPI.d.ts
More file actions
44 lines (42 loc) · 919 Bytes
/
SwitchBotAPI.d.ts
File metadata and controls
44 lines (42 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
type SwitchBotDevice = {
deviceId: string;
deviceName: string;
deviceType: string;
enableCloudService: boolean;
hubDeviceId: string;
};
type SwitchBotDeviceStatus = {
power?: string;
humidity?: number;
temperature?: number;
nebulizationEfficiency?: number;
auto?: boolean;
childLock?: boolean;
sound?: boolean;
calibrate?: boolean;
group?: boolean;
moving?: boolean;
slidePosition?: number;
mode?: number;
speed?: number;
shaking?: boolean;
shakeCenter?: number;
shakeRange?: number;
moveDetected?: boolean;
brightness?: string | number;
openState?: string;
color?: string;
colorTemperature?: number;
lackWater?: boolean;
voltage?: number;
weight?: number;
electricityOfDay?: number;
electricCurrent?: number;
lockState?: string;
doorState?: string;
};
type SwitchBotDeviceCommand = {
command: string;
parameter: string;
commandType: string;
};