@switchbot/homebridge-switchbot 2.5.0-beta.3 → 2.5.0-beta.4
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/config.schema.json +47 -0
- package/dist/device/blindtilt.d.ts +39 -7
- package/dist/device/blindtilt.d.ts.map +1 -1
- package/dist/device/blindtilt.js +333 -159
- package/dist/device/blindtilt.js.map +1 -1
- package/dist/settings.d.ts +6 -0
- package/dist/settings.d.ts.map +1 -1
- package/dist/settings.js.map +1 -1
- package/package.json +1 -1
- package/src/device/blindtilt.ts +367 -155
- package/src/settings.ts +12 -5
package/src/settings.ts
CHANGED
|
@@ -65,6 +65,7 @@ export interface devicesConfig extends device {
|
|
|
65
65
|
meter?: meter;
|
|
66
66
|
humidifier?: humidifier;
|
|
67
67
|
curtain?: curtain;
|
|
68
|
+
blindTilt?: blindTilt;
|
|
68
69
|
contact?: contact;
|
|
69
70
|
motion?: motion;
|
|
70
71
|
colorbulb?: colorbulb;
|
|
@@ -105,6 +106,11 @@ export type curtain = {
|
|
|
105
106
|
setOpenMode?: string;
|
|
106
107
|
};
|
|
107
108
|
|
|
109
|
+
export type blindTilt = {
|
|
110
|
+
mappingMode?: string;
|
|
111
|
+
updateRate?: number;
|
|
112
|
+
};
|
|
113
|
+
|
|
108
114
|
export type contact = {
|
|
109
115
|
hide_lightsensor?: boolean;
|
|
110
116
|
set_minLux?: number;
|
|
@@ -259,13 +265,14 @@ deviceName?: string; //device name. (Used by the following deviceTypes: Robot Va
|
|
|
259
265
|
nebulizationEfficiency?: number; //atomization efficiency percentage. (Used by the following deviceTypes: Humidifier)
|
|
260
266
|
auto?: boolean; //determines if a Humidifier is in Auto Mode or not. (Used by the following deviceTypes: Humidifier)
|
|
261
267
|
childLock?: boolean; //determines if a Humidifier's safety lock is on or not. (Used by the following deviceTypes: Humidifier)
|
|
262
|
-
sound?: boolean
|
|
263
|
-
lackWater?: boolean
|
|
264
|
-
version?: number
|
|
265
|
-
direction?: string
|
|
268
|
+
sound?: boolean;//determines if a Humidifier is muted or not. (Used by the following deviceTypes: Humidifier)
|
|
269
|
+
lackWater?: boolean;//determines if the water tank is empty or not. (Used by the following deviceTypes: Humidifier)
|
|
270
|
+
version?: number;//the version of the device. (Used by the following deviceTypes: Blind Tilt)
|
|
271
|
+
direction?: string;//the opening direction of a Blind Tilt device. (Used by the following deviceTypes: Blind Tilt)
|
|
272
|
+
runStatus?: string;//'static' when not moving. (Used by the following deviceTypes: Blind Tilt)
|
|
266
273
|
mode?: number; //available for devices. the fan mode. (Used by the following deviceTypes: Smart Fan)
|
|
267
274
|
speed?: number;//the fan speed. (Used by the following deviceTypes: Smart Fan)
|
|
268
|
-
shaking?: boolean
|
|
275
|
+
shaking?: boolean;//determines if the fan is swinging or not. (Used by the following deviceTypes: Smart Fan)
|
|
269
276
|
shakeCenter?: string;//the fan's swing direciton. (Used by the following deviceTypes: Smart Fan)
|
|
270
277
|
shakeRange?: string;//the fan's swing range, 0~120°. (Used by the following deviceTypes: Smart Fan)
|
|
271
278
|
};
|