@switchbot/homebridge-switchbot 2.0.0-beta.3 → 2.0.0-beta.31
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/CHANGELOG.md +8 -1
- package/README.md +1 -2
- package/config.schema.json +75 -20
- package/dist/device/bot.d.ts +34 -28
- package/dist/device/bot.d.ts.map +1 -1
- package/dist/device/bot.js +655 -649
- package/dist/device/bot.js.map +1 -1
- package/dist/device/colorbulb.d.ts +36 -19
- package/dist/device/colorbulb.d.ts.map +1 -1
- package/dist/device/colorbulb.js +483 -309
- package/dist/device/colorbulb.js.map +1 -1
- package/dist/device/contact.d.ts +18 -8
- package/dist/device/contact.d.ts.map +1 -1
- package/dist/device/contact.js +303 -237
- package/dist/device/contact.js.map +1 -1
- package/dist/device/curtain.d.ts +23 -16
- package/dist/device/curtain.d.ts.map +1 -1
- package/dist/device/curtain.js +541 -498
- package/dist/device/curtain.js.map +1 -1
- package/dist/device/humidifier.d.ts +24 -18
- package/dist/device/humidifier.d.ts.map +1 -1
- package/dist/device/humidifier.js +450 -369
- package/dist/device/humidifier.js.map +1 -1
- package/dist/device/lock.d.ts +27 -8
- package/dist/device/lock.d.ts.map +1 -1
- package/dist/device/lock.js +302 -148
- package/dist/device/lock.js.map +1 -1
- package/dist/device/meter.d.ts +22 -16
- package/dist/device/meter.d.ts.map +1 -1
- package/dist/device/meter.js +340 -262
- package/dist/device/meter.js.map +1 -1
- package/dist/device/meterplus.d.ts +24 -12
- package/dist/device/meterplus.d.ts.map +1 -1
- package/dist/device/meterplus.js +359 -213
- package/dist/device/meterplus.js.map +1 -1
- package/dist/device/motion.d.ts +18 -8
- package/dist/device/motion.d.ts.map +1 -1
- package/dist/device/motion.js +276 -216
- package/dist/device/motion.js.map +1 -1
- package/dist/device/plug.d.ts +27 -17
- package/dist/device/plug.d.ts.map +1 -1
- package/dist/device/plug.js +292 -251
- package/dist/device/plug.js.map +1 -1
- package/dist/device/striplight.d.ts +43 -19
- package/dist/device/striplight.d.ts.map +1 -1
- package/dist/device/striplight.js +503 -262
- package/dist/device/striplight.js.map +1 -1
- package/dist/irdevice/airconditioner.d.ts +9 -12
- package/dist/irdevice/airconditioner.d.ts.map +1 -1
- package/dist/irdevice/airconditioner.js +275 -230
- package/dist/irdevice/airconditioner.js.map +1 -1
- package/dist/irdevice/airpurifier.d.ts +5 -3
- package/dist/irdevice/airpurifier.d.ts.map +1 -1
- package/dist/irdevice/airpurifier.js +151 -104
- package/dist/irdevice/airpurifier.js.map +1 -1
- package/dist/irdevice/camera.d.ts +11 -8
- package/dist/irdevice/camera.d.ts.map +1 -1
- package/dist/irdevice/camera.js +130 -86
- package/dist/irdevice/camera.js.map +1 -1
- package/dist/irdevice/fan.d.ts +10 -7
- package/dist/irdevice/fan.d.ts.map +1 -1
- package/dist/irdevice/fan.js +157 -109
- package/dist/irdevice/fan.js.map +1 -1
- package/dist/irdevice/light.d.ts +11 -8
- package/dist/irdevice/light.d.ts.map +1 -1
- package/dist/irdevice/light.js +134 -103
- package/dist/irdevice/light.js.map +1 -1
- package/dist/irdevice/other.d.ts +11 -8
- package/dist/irdevice/other.d.ts.map +1 -1
- package/dist/irdevice/other.js +142 -98
- package/dist/irdevice/other.js.map +1 -1
- package/dist/irdevice/tv.d.ts +12 -9
- package/dist/irdevice/tv.d.ts.map +1 -1
- package/dist/irdevice/tv.js +140 -93
- package/dist/irdevice/tv.js.map +1 -1
- package/dist/irdevice/vacuumcleaner.d.ts +9 -10
- package/dist/irdevice/vacuumcleaner.d.ts.map +1 -1
- package/dist/irdevice/vacuumcleaner.js +129 -89
- package/dist/irdevice/vacuumcleaner.js.map +1 -1
- package/dist/irdevice/waterheater.d.ts +8 -9
- package/dist/irdevice/waterheater.d.ts.map +1 -1
- package/dist/irdevice/waterheater.js +129 -89
- package/dist/irdevice/waterheater.js.map +1 -1
- package/dist/platform.d.ts +14 -12
- package/dist/platform.d.ts.map +1 -1
- package/dist/platform.js +456 -434
- package/dist/platform.js.map +1 -1
- package/dist/settings.d.ts +16 -11
- package/dist/settings.d.ts.map +1 -1
- package/dist/settings.js.map +1 -1
- package/package.json +12 -10
- package/src/device/bot.ts +654 -660
- package/src/device/colorbulb.ts +487 -344
- package/src/device/contact.ts +306 -241
- package/src/device/curtain.ts +546 -512
- package/src/device/humidifier.ts +453 -403
- package/src/device/lock.ts +311 -149
- package/src/device/meter.ts +351 -275
- package/src/device/meterplus.ts +369 -219
- package/src/device/motion.ts +282 -222
- package/src/device/plug.ts +296 -260
- package/src/device/striplight.ts +519 -289
- package/src/irdevice/airconditioner.ts +279 -241
- package/src/irdevice/airpurifier.ts +148 -103
- package/src/irdevice/camera.ts +128 -85
- package/src/irdevice/fan.ts +154 -106
- package/src/irdevice/light.ts +132 -103
- package/src/irdevice/other.ts +140 -97
- package/src/irdevice/tv.ts +139 -93
- package/src/irdevice/vacuumcleaner.ts +128 -89
- package/src/irdevice/waterheater.ts +127 -89
- package/src/platform.ts +447 -457
- package/src/settings.ts +16 -11
package/src/settings.ts
CHANGED
|
@@ -29,6 +29,7 @@ export interface SwitchBotPlatformConfig extends PlatformConfig {
|
|
|
29
29
|
export type credentials = {
|
|
30
30
|
token?: any;
|
|
31
31
|
secret?: any;
|
|
32
|
+
notice?: any;
|
|
32
33
|
openToken?: any;
|
|
33
34
|
};
|
|
34
35
|
|
|
@@ -44,9 +45,19 @@ export interface devicesConfig extends device {
|
|
|
44
45
|
configDeviceType: string;
|
|
45
46
|
configDeviceName?: string;
|
|
46
47
|
deviceId: string;
|
|
47
|
-
|
|
48
|
+
external?: boolean;
|
|
48
49
|
refreshRate?: number;
|
|
49
50
|
firmware?: string;
|
|
51
|
+
logging?: string;
|
|
52
|
+
connectionType?: string;
|
|
53
|
+
customBLEaddress?: string;
|
|
54
|
+
scanDuration?: number;
|
|
55
|
+
hide_device?: boolean;
|
|
56
|
+
offline?: boolean;
|
|
57
|
+
mqttURL?: string;
|
|
58
|
+
mqttOptions?: IClientOptions;
|
|
59
|
+
mqttPubOptions?: IClientOptions;
|
|
60
|
+
history?: boolean;
|
|
50
61
|
bot?: bot;
|
|
51
62
|
meter?: meter;
|
|
52
63
|
humidifier?: humidifier;
|
|
@@ -56,15 +67,6 @@ export interface devicesConfig extends device {
|
|
|
56
67
|
colorbulb?: colorbulb;
|
|
57
68
|
plug?: Record<any, any>;
|
|
58
69
|
lock?: lock;
|
|
59
|
-
ble?: boolean;
|
|
60
|
-
customBLEaddress?: string;
|
|
61
|
-
scanDuration?: number;
|
|
62
|
-
hide_device?: boolean;
|
|
63
|
-
offline?: boolean;
|
|
64
|
-
mqttURL?: string;
|
|
65
|
-
mqttOptions?: IClientOptions;
|
|
66
|
-
mqttPubOptions?: IClientOptions;
|
|
67
|
-
history?: boolean;
|
|
68
70
|
}
|
|
69
71
|
|
|
70
72
|
export type meter = {
|
|
@@ -123,7 +125,11 @@ export type lock = {
|
|
|
123
125
|
export interface irDevicesConfig extends irdevice {
|
|
124
126
|
configRemoteType?: string;
|
|
125
127
|
deviceId: string;
|
|
128
|
+
external?: boolean;
|
|
129
|
+
firmware?: string;
|
|
126
130
|
logging?: string;
|
|
131
|
+
connectionType?: string;
|
|
132
|
+
hide_device?: boolean;
|
|
127
133
|
irfan?: irfan;
|
|
128
134
|
irair?: irair;
|
|
129
135
|
irpur?: Record<any, any>;
|
|
@@ -133,7 +139,6 @@ export interface irDevicesConfig extends irdevice {
|
|
|
133
139
|
irwh?: Record<any, any>;
|
|
134
140
|
irtv?: irtv;
|
|
135
141
|
other?: other;
|
|
136
|
-
hide_device?: boolean;
|
|
137
142
|
}
|
|
138
143
|
|
|
139
144
|
export type irfan = {
|