@switchbot/homebridge-switchbot 2.0.0-beta.2 → 2.0.0-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/CHANGELOG.md +8 -1
- package/README.md +1 -2
- package/config.schema.json +75 -20
- package/dist/device/bot.d.ts +32 -28
- package/dist/device/bot.d.ts.map +1 -1
- package/dist/device/bot.js +646 -648
- package/dist/device/bot.js.map +1 -1
- package/dist/device/colorbulb.d.ts +34 -19
- package/dist/device/colorbulb.d.ts.map +1 -1
- package/dist/device/colorbulb.js +429 -304
- package/dist/device/colorbulb.js.map +1 -1
- package/dist/device/contact.d.ts +16 -7
- package/dist/device/contact.d.ts.map +1 -1
- package/dist/device/contact.js +288 -230
- package/dist/device/contact.js.map +1 -1
- package/dist/device/curtain.d.ts +21 -16
- package/dist/device/curtain.d.ts.map +1 -1
- package/dist/device/curtain.js +519 -489
- package/dist/device/curtain.js.map +1 -1
- package/dist/device/humidifier.d.ts +22 -18
- package/dist/device/humidifier.d.ts.map +1 -1
- package/dist/device/humidifier.js +415 -360
- package/dist/device/humidifier.js.map +1 -1
- package/dist/device/lock.d.ts +22 -8
- package/dist/device/lock.d.ts.map +1 -1
- package/dist/device/lock.js +253 -147
- package/dist/device/lock.js.map +1 -1
- package/dist/device/meter.d.ts +21 -16
- package/dist/device/meter.d.ts.map +1 -1
- package/dist/device/meter.js +325 -255
- package/dist/device/meter.js.map +1 -1
- package/dist/device/meterplus.d.ts +23 -12
- package/dist/device/meterplus.d.ts.map +1 -1
- package/dist/device/meterplus.js +346 -208
- package/dist/device/meterplus.js.map +1 -1
- package/dist/device/motion.d.ts +17 -8
- package/dist/device/motion.d.ts.map +1 -1
- package/dist/device/motion.js +261 -209
- package/dist/device/motion.js.map +1 -1
- package/dist/device/plug.d.ts +24 -16
- package/dist/device/plug.d.ts.map +1 -1
- package/dist/device/plug.js +267 -242
- package/dist/device/plug.js.map +1 -1
- package/dist/device/striplight.d.ts +51 -16
- package/dist/device/striplight.d.ts.map +1 -1
- package/dist/device/striplight.js +527 -185
- package/dist/device/striplight.js.map +1 -1
- package/dist/irdevice/airconditioner.d.ts +7 -12
- package/dist/irdevice/airconditioner.d.ts.map +1 -1
- package/dist/irdevice/airconditioner.js +261 -230
- package/dist/irdevice/airconditioner.js.map +1 -1
- package/dist/irdevice/airpurifier.d.ts +3 -3
- package/dist/irdevice/airpurifier.d.ts.map +1 -1
- package/dist/irdevice/airpurifier.js +137 -104
- package/dist/irdevice/airpurifier.js.map +1 -1
- package/dist/irdevice/camera.d.ts +9 -8
- package/dist/irdevice/camera.d.ts.map +1 -1
- package/dist/irdevice/camera.js +116 -86
- package/dist/irdevice/camera.js.map +1 -1
- package/dist/irdevice/fan.d.ts +8 -7
- package/dist/irdevice/fan.d.ts.map +1 -1
- package/dist/irdevice/fan.js +143 -109
- package/dist/irdevice/fan.js.map +1 -1
- package/dist/irdevice/light.d.ts +9 -8
- package/dist/irdevice/light.d.ts.map +1 -1
- package/dist/irdevice/light.js +120 -103
- package/dist/irdevice/light.js.map +1 -1
- package/dist/irdevice/other.d.ts +9 -8
- package/dist/irdevice/other.d.ts.map +1 -1
- package/dist/irdevice/other.js +128 -98
- package/dist/irdevice/other.js.map +1 -1
- package/dist/irdevice/tv.d.ts +10 -9
- package/dist/irdevice/tv.d.ts.map +1 -1
- package/dist/irdevice/tv.js +126 -93
- package/dist/irdevice/tv.js.map +1 -1
- package/dist/irdevice/vacuumcleaner.d.ts +7 -10
- package/dist/irdevice/vacuumcleaner.d.ts.map +1 -1
- package/dist/irdevice/vacuumcleaner.js +115 -89
- package/dist/irdevice/vacuumcleaner.js.map +1 -1
- package/dist/irdevice/waterheater.d.ts +6 -9
- package/dist/irdevice/waterheater.d.ts.map +1 -1
- package/dist/irdevice/waterheater.js +115 -89
- package/dist/irdevice/waterheater.js.map +1 -1
- package/dist/platform.d.ts +5 -5
- package/dist/platform.d.ts.map +1 -1
- package/dist/platform.js +227 -199
- package/dist/platform.js.map +1 -1
- package/dist/settings.d.ts +15 -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 +641 -657
- package/src/device/colorbulb.ts +440 -339
- package/src/device/contact.ts +289 -233
- package/src/device/curtain.ts +523 -503
- package/src/device/humidifier.ts +421 -396
- package/src/device/lock.ts +257 -147
- package/src/device/meter.ts +335 -268
- package/src/device/meterplus.ts +354 -213
- package/src/device/motion.ts +264 -213
- package/src/device/plug.ts +270 -251
- package/src/device/striplight.ts +552 -207
- package/src/irdevice/airconditioner.ts +263 -241
- package/src/irdevice/airpurifier.ts +132 -103
- package/src/irdevice/camera.ts +112 -85
- package/src/irdevice/fan.ts +138 -106
- package/src/irdevice/light.ts +116 -103
- package/src/irdevice/other.ts +124 -97
- package/src/irdevice/tv.ts +123 -93
- package/src/irdevice/vacuumcleaner.ts +112 -89
- package/src/irdevice/waterheater.ts +111 -89
- package/src/platform.ts +216 -214
- package/src/settings.ts +15 -11
package/src/settings.ts
CHANGED
|
@@ -44,9 +44,19 @@ export interface devicesConfig extends device {
|
|
|
44
44
|
configDeviceType: string;
|
|
45
45
|
configDeviceName?: string;
|
|
46
46
|
deviceId: string;
|
|
47
|
-
|
|
47
|
+
external?: boolean;
|
|
48
48
|
refreshRate?: number;
|
|
49
49
|
firmware?: string;
|
|
50
|
+
logging?: string;
|
|
51
|
+
connectionType?: string;
|
|
52
|
+
customBLEaddress?: string;
|
|
53
|
+
scanDuration?: number;
|
|
54
|
+
hide_device?: boolean;
|
|
55
|
+
offline?: boolean;
|
|
56
|
+
mqttURL?: string;
|
|
57
|
+
mqttOptions?: IClientOptions;
|
|
58
|
+
mqttPubOptions?: IClientOptions;
|
|
59
|
+
history?: boolean;
|
|
50
60
|
bot?: bot;
|
|
51
61
|
meter?: meter;
|
|
52
62
|
humidifier?: humidifier;
|
|
@@ -56,15 +66,6 @@ export interface devicesConfig extends device {
|
|
|
56
66
|
colorbulb?: colorbulb;
|
|
57
67
|
plug?: Record<any, any>;
|
|
58
68
|
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
69
|
}
|
|
69
70
|
|
|
70
71
|
export type meter = {
|
|
@@ -123,7 +124,11 @@ export type lock = {
|
|
|
123
124
|
export interface irDevicesConfig extends irdevice {
|
|
124
125
|
configRemoteType?: string;
|
|
125
126
|
deviceId: string;
|
|
127
|
+
external?: boolean;
|
|
128
|
+
firmware?: string;
|
|
126
129
|
logging?: string;
|
|
130
|
+
connectionType?: string;
|
|
131
|
+
hide_device?: boolean;
|
|
127
132
|
irfan?: irfan;
|
|
128
133
|
irair?: irair;
|
|
129
134
|
irpur?: Record<any, any>;
|
|
@@ -133,7 +138,6 @@ export interface irDevicesConfig extends irdevice {
|
|
|
133
138
|
irwh?: Record<any, any>;
|
|
134
139
|
irtv?: irtv;
|
|
135
140
|
other?: other;
|
|
136
|
-
hide_device?: boolean;
|
|
137
141
|
}
|
|
138
142
|
|
|
139
143
|
export type irfan = {
|