@switchbot/homebridge-switchbot 3.8.3-beta.2 → 3.8.3-beta.21
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/.github/workflows/beta-release.yml +2 -1
- package/CHANGELOG.md +8 -0
- package/dist/device/blindtilt.d.ts +1 -4
- package/dist/device/blindtilt.d.ts.map +1 -1
- package/dist/device/blindtilt.js +18 -19
- package/dist/device/blindtilt.js.map +1 -1
- package/dist/device/bot.d.ts +1 -4
- package/dist/device/bot.d.ts.map +1 -1
- package/dist/device/bot.js +15 -16
- package/dist/device/bot.js.map +1 -1
- package/dist/device/ceilinglight.d.ts +1 -4
- package/dist/device/ceilinglight.d.ts.map +1 -1
- package/dist/device/ceilinglight.js +35 -39
- package/dist/device/ceilinglight.js.map +1 -1
- package/dist/device/colorbulb.d.ts +1 -4
- package/dist/device/colorbulb.d.ts.map +1 -1
- package/dist/device/colorbulb.js +35 -39
- package/dist/device/colorbulb.js.map +1 -1
- package/dist/device/contact.d.ts +1 -4
- package/dist/device/contact.d.ts.map +1 -1
- package/dist/device/contact.js +7 -7
- package/dist/device/contact.js.map +1 -1
- package/dist/device/curtain.d.ts +1 -4
- package/dist/device/curtain.d.ts.map +1 -1
- package/dist/device/curtain.js +16 -17
- package/dist/device/curtain.js.map +1 -1
- package/dist/device/device.d.ts +6 -6
- package/dist/device/device.d.ts.map +1 -1
- package/dist/device/device.js +30 -14
- package/dist/device/device.js.map +1 -1
- package/dist/device/fan.d.ts +1 -4
- package/dist/device/fan.d.ts.map +1 -1
- package/dist/device/fan.js +28 -31
- package/dist/device/fan.js.map +1 -1
- package/dist/device/hub.d.ts +1 -4
- package/dist/device/hub.d.ts.map +1 -1
- package/dist/device/hub.js +7 -7
- package/dist/device/hub.js.map +1 -1
- package/dist/device/humidifier.d.ts +1 -4
- package/dist/device/humidifier.d.ts.map +1 -1
- package/dist/device/humidifier.js +28 -31
- package/dist/device/humidifier.js.map +1 -1
- package/dist/device/iosensor.d.ts +1 -4
- package/dist/device/iosensor.d.ts.map +1 -1
- package/dist/device/iosensor.js +7 -7
- package/dist/device/iosensor.js.map +1 -1
- package/dist/device/lightstrip.d.ts +1 -4
- package/dist/device/lightstrip.d.ts.map +1 -1
- package/dist/device/lightstrip.js +28 -31
- package/dist/device/lightstrip.js.map +1 -1
- package/dist/device/lock.d.ts +1 -4
- package/dist/device/lock.d.ts.map +1 -1
- package/dist/device/lock.js +15 -16
- package/dist/device/lock.js.map +1 -1
- package/dist/device/meter.d.ts +1 -4
- package/dist/device/meter.d.ts.map +1 -1
- package/dist/device/meter.js +7 -7
- package/dist/device/meter.js.map +1 -1
- package/dist/device/meterplus.d.ts +1 -4
- package/dist/device/meterplus.d.ts.map +1 -1
- package/dist/device/meterplus.js +7 -7
- package/dist/device/meterplus.js.map +1 -1
- package/dist/device/motion.d.ts +1 -4
- package/dist/device/motion.d.ts.map +1 -1
- package/dist/device/motion.js +7 -7
- package/dist/device/motion.js.map +1 -1
- package/dist/device/plug.d.ts +1 -4
- package/dist/device/plug.d.ts.map +1 -1
- package/dist/device/plug.js +14 -15
- package/dist/device/plug.js.map +1 -1
- package/dist/device/robotvacuumcleaner.d.ts +1 -4
- package/dist/device/robotvacuumcleaner.d.ts.map +1 -1
- package/dist/device/robotvacuumcleaner.js +21 -23
- package/dist/device/robotvacuumcleaner.js.map +1 -1
- package/dist/device/waterdetector.d.ts +1 -4
- package/dist/device/waterdetector.d.ts.map +1 -1
- package/dist/device/waterdetector.js +7 -7
- package/dist/device/waterdetector.js.map +1 -1
- package/dist/irdevice/airconditioner.d.ts +1 -1
- package/dist/irdevice/airconditioner.d.ts.map +1 -1
- package/dist/irdevice/airconditioner.js +11 -12
- package/dist/irdevice/airconditioner.js.map +1 -1
- package/dist/irdevice/airpurifier.d.ts +1 -1
- package/dist/irdevice/airpurifier.d.ts.map +1 -1
- package/dist/irdevice/airpurifier.js +11 -12
- package/dist/irdevice/airpurifier.js.map +1 -1
- package/dist/irdevice/camera.d.ts +1 -1
- package/dist/irdevice/camera.d.ts.map +1 -1
- package/dist/irdevice/camera.js +9 -10
- package/dist/irdevice/camera.js.map +1 -1
- package/dist/irdevice/fan.d.ts +1 -1
- package/dist/irdevice/fan.d.ts.map +1 -1
- package/dist/irdevice/fan.js +15 -16
- package/dist/irdevice/fan.js.map +1 -1
- package/dist/irdevice/irdevice.d.ts +6 -6
- package/dist/irdevice/irdevice.d.ts.map +1 -1
- package/dist/irdevice/irdevice.js +7 -13
- package/dist/irdevice/irdevice.js.map +1 -1
- package/dist/irdevice/light.d.ts +1 -1
- package/dist/irdevice/light.d.ts.map +1 -1
- package/dist/irdevice/light.js +9 -10
- package/dist/irdevice/light.js.map +1 -1
- package/dist/irdevice/other.d.ts +1 -1
- package/dist/irdevice/other.d.ts.map +1 -1
- package/dist/irdevice/other.js +9 -10
- package/dist/irdevice/other.js.map +1 -1
- package/dist/irdevice/tv.d.ts +1 -1
- package/dist/irdevice/tv.d.ts.map +1 -1
- package/dist/irdevice/tv.js +27 -28
- package/dist/irdevice/tv.js.map +1 -1
- package/dist/irdevice/vacuumcleaner.d.ts +1 -1
- package/dist/irdevice/vacuumcleaner.d.ts.map +1 -1
- package/dist/irdevice/vacuumcleaner.js +9 -10
- package/dist/irdevice/vacuumcleaner.js.map +1 -1
- package/dist/irdevice/waterheater.d.ts +1 -1
- package/dist/irdevice/waterheater.d.ts.map +1 -1
- package/dist/irdevice/waterheater.js +9 -10
- package/dist/irdevice/waterheater.js.map +1 -1
- package/dist/platform.d.ts +5 -14
- package/dist/platform.d.ts.map +1 -1
- package/dist/platform.js +53 -161
- package/dist/platform.js.map +1 -1
- package/dist/settings.d.ts +1 -3
- package/dist/settings.d.ts.map +1 -1
- package/dist/settings.js.map +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js.map +1 -1
- package/package.json +9 -10
- package/src/device/blindtilt.ts +20 -24
- package/src/device/bot.ts +16 -20
- package/src/device/ceilinglight.ts +36 -43
- package/src/device/colorbulb.ts +36 -43
- package/src/device/contact.ts +8 -11
- package/src/device/curtain.ts +18 -22
- package/src/device/device.ts +29 -18
- package/src/device/fan.ts +29 -35
- package/src/device/hub.ts +8 -11
- package/src/device/humidifier.ts +29 -35
- package/src/device/iosensor.ts +8 -11
- package/src/device/lightstrip.ts +29 -35
- package/src/device/lock.ts +16 -20
- package/src/device/meter.ts +8 -11
- package/src/device/meterplus.ts +8 -11
- package/src/device/motion.ts +8 -11
- package/src/device/plug.ts +15 -19
- package/src/device/robotvacuumcleaner.ts +22 -31
- package/src/device/waterdetector.ts +8 -11
- package/src/irdevice/airconditioner.ts +12 -14
- package/src/irdevice/airpurifier.ts +12 -13
- package/src/irdevice/camera.ts +10 -11
- package/src/irdevice/fan.ts +16 -17
- package/src/irdevice/irdevice.ts +9 -17
- package/src/irdevice/light.ts +10 -11
- package/src/irdevice/other.ts +10 -11
- package/src/irdevice/tv.ts +28 -29
- package/src/irdevice/vacuumcleaner.ts +10 -11
- package/src/irdevice/waterheater.ts +10 -11
- package/src/platform.ts +55 -161
- package/src/settings.ts +1 -4
- package/src/utils.ts +2 -1
- package/dist/types/bledevicestatus.d.ts +0 -281
- package/dist/types/bledevicestatus.d.ts.map +0 -1
- package/dist/types/bledevicestatus.js +0 -2
- package/dist/types/bledevicestatus.js.map +0 -1
- package/dist/types/devicelist.d.ts +0 -89
- package/dist/types/devicelist.d.ts.map +0 -1
- package/dist/types/devicelist.js +0 -6
- package/dist/types/devicelist.js.map +0 -1
- package/dist/types/deviceresponse.d.ts +0 -13
- package/dist/types/deviceresponse.d.ts.map +0 -1
- package/dist/types/deviceresponse.js +0 -2
- package/dist/types/deviceresponse.js.map +0 -1
- package/dist/types/devicestatus.d.ts +0 -149
- package/dist/types/devicestatus.d.ts.map +0 -1
- package/dist/types/devicestatus.js +0 -3
- package/dist/types/devicestatus.js.map +0 -1
- package/dist/types/devicewebhookstatus.d.ts +0 -156
- package/dist/types/devicewebhookstatus.d.ts.map +0 -1
- package/dist/types/devicewebhookstatus.js +0 -2
- package/dist/types/devicewebhookstatus.js.map +0 -1
- package/dist/types/irdevicelist.d.ts +0 -10
- package/dist/types/irdevicelist.d.ts.map +0 -1
- package/dist/types/irdevicelist.js +0 -2
- package/dist/types/irdevicelist.js.map +0 -1
- package/dist/types/pushbody.d.ts +0 -6
- package/dist/types/pushbody.d.ts.map +0 -1
- package/dist/types/pushbody.js +0 -2
- package/dist/types/pushbody.js.map +0 -1
- package/src/types/bledevicestatus.ts +0 -303
- package/src/types/devicelist.ts +0 -124
- package/src/types/deviceresponse.ts +0 -14
- package/src/types/devicestatus.ts +0 -178
- package/src/types/devicewebhookstatus.ts +0 -191
- package/src/types/irdevicelist.ts +0 -15
- package/src/types/pushbody.ts +0 -9
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import type { device } from './devicelist'
|
|
2
|
-
|
|
3
|
-
/* Copyright(C) 2017-2024, donavanbecker (https://github.com/donavanbecker). All rights reserved.
|
|
4
|
-
*
|
|
5
|
-
* devicestatus.ts: @switchbot/homebridge-switchbot platform class.
|
|
6
|
-
*/
|
|
7
|
-
export interface deviceStatusRequest {
|
|
8
|
-
statusCode: number
|
|
9
|
-
message: string
|
|
10
|
-
body: deviceStatus
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface deviceStatus extends device {
|
|
14
|
-
// properties on all devices
|
|
15
|
-
deviceId: string
|
|
16
|
-
deviceType: string
|
|
17
|
-
hubDeviceId: string
|
|
18
|
-
version: number
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export type botStatus = deviceStatus & {
|
|
22
|
-
power: string
|
|
23
|
-
battery: number
|
|
24
|
-
mode: 'pressMode' | 'switchMode' | 'customizeMode'
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export type curtainStatus = deviceStatus & {
|
|
28
|
-
calibrate: boolean
|
|
29
|
-
group: boolean
|
|
30
|
-
moving: boolean
|
|
31
|
-
battery: number
|
|
32
|
-
slidePosition: number
|
|
33
|
-
lightLevel?: 'bright' | 'dim'
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export type meterStatus = deviceStatus & {
|
|
37
|
-
temperature: number
|
|
38
|
-
battery: number
|
|
39
|
-
humidity: number
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export type meterPlusStatus = deviceStatus & {
|
|
43
|
-
temperature: number
|
|
44
|
-
battery: number
|
|
45
|
-
humidity: number
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export type outdoorMeterStatus = deviceStatus & {
|
|
49
|
-
battery: number
|
|
50
|
-
temperature: number
|
|
51
|
-
humidity: number
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export type lockStatus = deviceStatus & {
|
|
55
|
-
lockState: string
|
|
56
|
-
doorState: string
|
|
57
|
-
moveDetected: boolean
|
|
58
|
-
battery: number
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export type lockProStatus = deviceStatus & {
|
|
62
|
-
lockState: string
|
|
63
|
-
doorState: string
|
|
64
|
-
moveDetected: boolean
|
|
65
|
-
battery: number
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export type motionSensorStatus = deviceStatus & {
|
|
69
|
-
battery: number
|
|
70
|
-
moveDetected: boolean
|
|
71
|
-
brightness: 'bright' | 'dim'
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export type contactSensorStatus = deviceStatus & {
|
|
75
|
-
battery: number
|
|
76
|
-
moveDetected: boolean
|
|
77
|
-
openState: 'open' | 'close' | 'timeOutNotClose'
|
|
78
|
-
brightness: 'bright' | 'dim'
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export type waterLeakDetectorStatus = deviceStatus & {
|
|
82
|
-
battery: number
|
|
83
|
-
status: 0 /* dry */ | 1 /* leak detected */
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export type ceilingLightStatus = deviceStatus & {
|
|
87
|
-
power: boolean
|
|
88
|
-
brightness: number
|
|
89
|
-
colorTemperature: number
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export type ceilingLightProStatus = deviceStatus & {
|
|
93
|
-
power: boolean
|
|
94
|
-
brightness: number
|
|
95
|
-
colorTemperature: number
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export type plugStatus = deviceStatus & {
|
|
99
|
-
power: string
|
|
100
|
-
version: string
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export type plugMiniStatus = deviceStatus & {
|
|
104
|
-
voltage: Float64Array
|
|
105
|
-
weight: Float64Array
|
|
106
|
-
electricityOfDay: number
|
|
107
|
-
electricCurrent: Float64Array
|
|
108
|
-
power: string
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export type stripLightStatus = deviceStatus & {
|
|
112
|
-
power: string
|
|
113
|
-
brightness: number
|
|
114
|
-
color: string
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export type colorBulbStatus = deviceStatus & {
|
|
118
|
-
power: string
|
|
119
|
-
brightness: number
|
|
120
|
-
color: string
|
|
121
|
-
colorTemperature: number
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export type robotVacuumCleanerS1Status = deviceStatus & {
|
|
125
|
-
workingStatus: string
|
|
126
|
-
onlineStatus: string
|
|
127
|
-
battery: number
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export type robotVacuumCleanerS1PlusStatus = deviceStatus & {
|
|
131
|
-
workingStatus: string
|
|
132
|
-
onlineStatus: string
|
|
133
|
-
battery: number
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export type floorCleaningRobotS10Status = deviceStatus & {
|
|
137
|
-
workingStatus: string
|
|
138
|
-
onlineStatus: string
|
|
139
|
-
battery: number
|
|
140
|
-
waterBaseBattery: number
|
|
141
|
-
taskType: string
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
export type humidifierStatus = deviceStatus & {
|
|
145
|
-
power: string
|
|
146
|
-
humidity: number
|
|
147
|
-
temperature: number
|
|
148
|
-
nebulizationEfficiency: number
|
|
149
|
-
auto: boolean
|
|
150
|
-
childLock: boolean
|
|
151
|
-
sound: boolean
|
|
152
|
-
lackWater: boolean
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
export type blindTiltStatus = deviceStatus & {
|
|
156
|
-
calibrate: boolean
|
|
157
|
-
battery: number
|
|
158
|
-
direction: string
|
|
159
|
-
slidePosition: string
|
|
160
|
-
lightLevel?: 'bright' | 'dim'
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
export type hub2Status = deviceStatus & {
|
|
164
|
-
temperature: number
|
|
165
|
-
lightLevel: number
|
|
166
|
-
humidity: number
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
export type batteryCirculatorFanStatus = deviceStatus & {
|
|
170
|
-
mode: 'direct' | 'natural' | 'sleep' | 'baby'
|
|
171
|
-
battery: number
|
|
172
|
-
power: string
|
|
173
|
-
nightStatus: number
|
|
174
|
-
oscillation: string
|
|
175
|
-
verticalOscillation: string
|
|
176
|
-
chargingStatus: string
|
|
177
|
-
fanSpeed: number
|
|
178
|
-
}
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
/* Copyright(C) 2017-2024, donavanbecker (https://github.com/donavanbecker). All rights reserved.
|
|
2
|
-
*
|
|
3
|
-
* devicestatus.ts: @switchbot/homebridge-switchbot platform class.
|
|
4
|
-
*/
|
|
5
|
-
interface deviceWebhook {
|
|
6
|
-
eventType: string
|
|
7
|
-
eventVersion: string
|
|
8
|
-
context: deviceWebhookContext
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { deviceWebhook }
|
|
12
|
-
|
|
13
|
-
export interface deviceWebhookContext {
|
|
14
|
-
// properties on all devices
|
|
15
|
-
deviceMac: string
|
|
16
|
-
deviceType: string
|
|
17
|
-
timeOfSample: number
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export type botWebhookContext = deviceWebhookContext & {
|
|
21
|
-
power: string // "on"or"off"
|
|
22
|
-
battery: number
|
|
23
|
-
deviceMode: 'pressMode' | 'switchMode' | 'customizeMode'
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export type curtainWebhookContext = deviceWebhookContext & {
|
|
27
|
-
calibrate: boolean
|
|
28
|
-
group: boolean
|
|
29
|
-
slidePosition: number // 0~100
|
|
30
|
-
battery: number
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export type curtain3WebhookContext = deviceWebhookContext & {
|
|
34
|
-
calibrate: boolean
|
|
35
|
-
group: boolean
|
|
36
|
-
slidePosition: number // 0~100
|
|
37
|
-
battery: number
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export type motionSensorWebhookContext = deviceWebhookContext & {
|
|
41
|
-
detectionState: 'NOT_DETECTED' | 'DETECTED'
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export type contactSensorWebhookContext = deviceWebhookContext & {
|
|
45
|
-
detectionState: 'NOT_DETECTED' | 'DETECTED'
|
|
46
|
-
doorMode: 'IN_DOOR' | 'OUT_DOOR'
|
|
47
|
-
brightness: 'dim' | 'bright'
|
|
48
|
-
openState: 'open' | 'close' | 'timeOutNotClose'
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export type waterLeakDetectorWebhookContext = deviceWebhookContext & {
|
|
52
|
-
detectionState: 0 | 1
|
|
53
|
-
battery: number // 0~100
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export type meterWebhookContext = deviceWebhookContext & {
|
|
57
|
-
temperature: number
|
|
58
|
-
scale: 'CELSIUS' | 'FAHRENHEIT'
|
|
59
|
-
humidity: number
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export type meterPlusWebhookContext = deviceWebhookContext & {
|
|
63
|
-
temperature: number
|
|
64
|
-
scale: 'CELSIUS' | 'FAHRENHEIT'
|
|
65
|
-
humidity: number
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export type outdoorMeterWebhookContext = deviceWebhookContext & {
|
|
69
|
-
temperature: number
|
|
70
|
-
scale: 'CELSIUS' | 'FAHRENHEIT'
|
|
71
|
-
humidity: number
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export type lockWebhookContext = deviceWebhookContext & {
|
|
75
|
-
lockState: 'UNLOCKED' | 'LOCKED' | 'JAMMED'
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export type lockProWebhookContext = deviceWebhookContext & {
|
|
79
|
-
lockState: 'UNLOCKED' | 'LOCKED' | 'JAMMED'
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export type indoorCameraWebhookContext = deviceWebhookContext & {
|
|
83
|
-
detectionState: 'DETECTED'
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export type panTiltCamWebhookContext = deviceWebhookContext & {
|
|
87
|
-
detectionState: 'DETECTED'
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export type colorBulbWebhookContext = deviceWebhookContext & {
|
|
91
|
-
powerState: 'ON' | 'OFF'
|
|
92
|
-
brightness: number
|
|
93
|
-
color: string // RGB 255:255:255
|
|
94
|
-
colorTemperature: number // 2700~6500
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export type stripLightWebhookContext = deviceWebhookContext & {
|
|
98
|
-
powerState: 'ON' | 'OFF'
|
|
99
|
-
brightness: number
|
|
100
|
-
color: string // RGB 255:255:255
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export type plugWebhookContext = deviceWebhookContext & {
|
|
104
|
-
powerState: 'ON' | 'OFF'
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export type plugMiniUSWebhookContext = deviceWebhookContext & {
|
|
108
|
-
powerState: 'ON' | 'OFF'
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export type plugMiniJPWebhookContext = deviceWebhookContext & {
|
|
112
|
-
powerState: 'ON' | 'OFF'
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export type robotVacuumCleanerS1WebhookContext = deviceWebhookContext & {
|
|
116
|
-
workingStatus: 'Standby' | 'Clearing' | 'Paused' | 'GotoChargeBase' | 'Charging' | 'ChargeDone' | 'Dormant' | 'InTrouble' | 'InRemoteControl' | 'InDustCollecting'
|
|
117
|
-
onlineStatus: 'online' | 'offline'
|
|
118
|
-
battery: number // 0~100
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export type robotVacuumCleanerS1PlusWebhookContext = deviceWebhookContext & {
|
|
122
|
-
workingStatus: 'Standby' | 'Clearing' | 'Paused' | 'GotoChargeBase' | 'Charging' | 'ChargeDone' | 'Dormant' | 'InTrouble' | 'InRemoteControl' | 'InDustCollecting'
|
|
123
|
-
onlineStatus: 'online' | 'offline'
|
|
124
|
-
battery: number // 0~100
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export type floorCleaningRobotS10WebhookContext = deviceWebhookContext & {
|
|
128
|
-
workingStatus: 'Standby' | 'Clearing' | 'Paused' | 'GotoChargeBase' | 'Charging' | 'ChargeDone' | 'Dormant' | 'InTrouble' | 'InRemoteControl' | 'InDustCollecting'
|
|
129
|
-
onlineStatus: 'online' | 'offline'
|
|
130
|
-
battery: number // 0~100
|
|
131
|
-
waterBaseBattery: number // 0~100
|
|
132
|
-
taskType: 'standBy' | 'explore' | 'cleanAll' | 'cleanArea' | 'cleanRoom' | 'fillWater' | 'deepWashing' | 'backToCharge' | 'markingWaterBase' | 'drying' | 'collectDust' | 'remoteControl' | 'cleanWithExplorer' | 'fillWaterForHumi' | 'markingHumi'
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
export type ceilingLightWebhookContext = deviceWebhookContext & {
|
|
136
|
-
powerState: 'ON' | 'OFF'
|
|
137
|
-
brightness: number
|
|
138
|
-
colorTemperature: number // 2700~6500
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
export type ceilingLightProWebhookContext = deviceWebhookContext & {
|
|
142
|
-
powerState: 'ON' | 'OFF'
|
|
143
|
-
brightness: number
|
|
144
|
-
colorTemperature: number // 2700~6500
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export type keypadWebhookContext = deviceWebhookContext & {
|
|
148
|
-
eventName: 'createKey' | 'deleteKey'
|
|
149
|
-
commandId: string
|
|
150
|
-
result: 'success' | 'failed' | 'timeout'
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export type keypadTouchWebhookContext = deviceWebhookContext & {
|
|
154
|
-
eventName: 'createKey' | 'deleteKey'
|
|
155
|
-
commandId: string
|
|
156
|
-
result: 'success' | 'failed' | 'timeout'
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export type hub2WebhookContext = deviceWebhookContext & {
|
|
160
|
-
temperature: number
|
|
161
|
-
humidity: number
|
|
162
|
-
lightLevel: number
|
|
163
|
-
scale: 'CELSIUS' | 'FAHRENHEIT'
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export type batteryCirculatorFanWebhookContext = deviceWebhookContext & {
|
|
167
|
-
mode: 'direct' | 'natural' | 'sleep' | 'baby'
|
|
168
|
-
version: string
|
|
169
|
-
battery: number
|
|
170
|
-
powerState: 'ON' | 'OFF'
|
|
171
|
-
nightStatus: 'off' | 1 | 2
|
|
172
|
-
oscillation: 'on' | 'off'
|
|
173
|
-
verticalOscillation: 'on' | 'off'
|
|
174
|
-
chargingStatus: 'charging' | 'uncharged'
|
|
175
|
-
fanSpeed: number // 1~100
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
export type blindTiltWebhookContext = deviceWebhookContext & {
|
|
179
|
-
version: string
|
|
180
|
-
calibrate: boolean
|
|
181
|
-
group: boolean
|
|
182
|
-
direction: string
|
|
183
|
-
slidePosition: number // 0~100
|
|
184
|
-
battery: number
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
export type humidifierWebhookContext = deviceWebhookContext & {
|
|
188
|
-
temperature: number
|
|
189
|
-
humidity: number
|
|
190
|
-
scale: 'CELSIUS' | 'FAHRENHEIT'
|
|
191
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/* Copyright(C) 2017-2024, donavanbecker (https://github.com/donavanbecker). All rights reserved.
|
|
2
|
-
*
|
|
3
|
-
* irdevicelist.ts: @switchbot/homebridge-switchbot platform class.
|
|
4
|
-
*/
|
|
5
|
-
// a list of virtual infrared remote devices that are linked to SwitchBot Hubs.
|
|
6
|
-
export interface infraredRemoteList {
|
|
7
|
-
device: irdevice[]
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface irdevice {
|
|
11
|
-
deviceId?: string
|
|
12
|
-
deviceName: string
|
|
13
|
-
remoteType: string
|
|
14
|
-
hubDeviceId: string
|
|
15
|
-
}
|
package/src/types/pushbody.ts
DELETED