@switchbot/homebridge-switchbot 3.7.1-beta.9 → 3.8.0

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.
Files changed (195) hide show
  1. package/CHANGELOG.md +8 -2
  2. package/README.md +14 -0
  3. package/assets/security-privacy-bluetooth.png +0 -0
  4. package/config.schema.json +76 -1
  5. package/dist/device/blindtilt.d.ts +18 -8
  6. package/dist/device/blindtilt.d.ts.map +1 -1
  7. package/dist/device/blindtilt.js +108 -70
  8. package/dist/device/blindtilt.js.map +1 -1
  9. package/dist/device/bot.d.ts +9 -9
  10. package/dist/device/bot.d.ts.map +1 -1
  11. package/dist/device/bot.js +133 -160
  12. package/dist/device/bot.js.map +1 -1
  13. package/dist/device/ceilinglight.d.ts +13 -13
  14. package/dist/device/ceilinglight.d.ts.map +1 -1
  15. package/dist/device/ceilinglight.js +38 -73
  16. package/dist/device/ceilinglight.js.map +1 -1
  17. package/dist/device/colorbulb.d.ts +12 -12
  18. package/dist/device/colorbulb.d.ts.map +1 -1
  19. package/dist/device/colorbulb.js +41 -79
  20. package/dist/device/colorbulb.js.map +1 -1
  21. package/dist/device/contact.d.ts +5 -5
  22. package/dist/device/contact.d.ts.map +1 -1
  23. package/dist/device/contact.js +20 -42
  24. package/dist/device/contact.js.map +1 -1
  25. package/dist/device/curtain.d.ts +15 -5
  26. package/dist/device/curtain.d.ts.map +1 -1
  27. package/dist/device/curtain.js +127 -81
  28. package/dist/device/curtain.js.map +1 -1
  29. package/dist/device/device.d.ts +18 -18
  30. package/dist/device/device.d.ts.map +1 -1
  31. package/dist/device/device.js +33 -36
  32. package/dist/device/device.js.map +1 -1
  33. package/dist/device/fan.d.ts +8 -8
  34. package/dist/device/fan.d.ts.map +1 -1
  35. package/dist/device/fan.js +43 -75
  36. package/dist/device/fan.js.map +1 -1
  37. package/dist/device/hub.d.ts +5 -5
  38. package/dist/device/hub.d.ts.map +1 -1
  39. package/dist/device/hub.js +18 -39
  40. package/dist/device/hub.js.map +1 -1
  41. package/dist/device/humidifier.d.ts +5 -5
  42. package/dist/device/humidifier.d.ts.map +1 -1
  43. package/dist/device/humidifier.js +38 -78
  44. package/dist/device/humidifier.js.map +1 -1
  45. package/dist/device/iosensor.d.ts +5 -5
  46. package/dist/device/iosensor.d.ts.map +1 -1
  47. package/dist/device/iosensor.js +21 -40
  48. package/dist/device/iosensor.js.map +1 -1
  49. package/dist/device/lightstrip.d.ts +6 -6
  50. package/dist/device/lightstrip.d.ts.map +1 -1
  51. package/dist/device/lightstrip.js +34 -73
  52. package/dist/device/lightstrip.js.map +1 -1
  53. package/dist/device/lock.d.ts +9 -9
  54. package/dist/device/lock.d.ts.map +1 -1
  55. package/dist/device/lock.js +37 -52
  56. package/dist/device/lock.js.map +1 -1
  57. package/dist/device/meter.d.ts +5 -5
  58. package/dist/device/meter.d.ts.map +1 -1
  59. package/dist/device/meter.js +21 -39
  60. package/dist/device/meter.js.map +1 -1
  61. package/dist/device/meterplus.d.ts +5 -5
  62. package/dist/device/meterplus.d.ts.map +1 -1
  63. package/dist/device/meterplus.js +21 -38
  64. package/dist/device/meterplus.js.map +1 -1
  65. package/dist/device/motion.d.ts +5 -5
  66. package/dist/device/motion.d.ts.map +1 -1
  67. package/dist/device/motion.js +14 -32
  68. package/dist/device/motion.js.map +1 -1
  69. package/dist/device/plug.d.ts +12 -12
  70. package/dist/device/plug.d.ts.map +1 -1
  71. package/dist/device/plug.js +16 -25
  72. package/dist/device/plug.js.map +1 -1
  73. package/dist/device/robotvacuumcleaner.d.ts +11 -11
  74. package/dist/device/robotvacuumcleaner.d.ts.map +1 -1
  75. package/dist/device/robotvacuumcleaner.js +42 -56
  76. package/dist/device/robotvacuumcleaner.js.map +1 -1
  77. package/dist/device/waterdetector.d.ts +5 -5
  78. package/dist/device/waterdetector.d.ts.map +1 -1
  79. package/dist/device/waterdetector.js +47 -44
  80. package/dist/device/waterdetector.js.map +1 -1
  81. package/dist/homebridge-ui/server.js +2 -2
  82. package/dist/homebridge-ui/server.js.map +1 -1
  83. package/dist/index.d.ts.map +1 -1
  84. package/dist/index.js +0 -4
  85. package/dist/index.js.map +1 -1
  86. package/dist/irdevice/airconditioner.d.ts +8 -8
  87. package/dist/irdevice/airconditioner.d.ts.map +1 -1
  88. package/dist/irdevice/airconditioner.js +61 -105
  89. package/dist/irdevice/airconditioner.js.map +1 -1
  90. package/dist/irdevice/airpurifier.d.ts +10 -10
  91. package/dist/irdevice/airpurifier.d.ts.map +1 -1
  92. package/dist/irdevice/airpurifier.js +22 -42
  93. package/dist/irdevice/airpurifier.js.map +1 -1
  94. package/dist/irdevice/camera.d.ts +9 -9
  95. package/dist/irdevice/camera.d.ts.map +1 -1
  96. package/dist/irdevice/camera.js +15 -25
  97. package/dist/irdevice/camera.js.map +1 -1
  98. package/dist/irdevice/fan.d.ts +8 -8
  99. package/dist/irdevice/fan.d.ts.map +1 -1
  100. package/dist/irdevice/fan.js +21 -40
  101. package/dist/irdevice/fan.js.map +1 -1
  102. package/dist/irdevice/irdevice.d.ts +11 -11
  103. package/dist/irdevice/irdevice.d.ts.map +1 -1
  104. package/dist/irdevice/irdevice.js +14 -22
  105. package/dist/irdevice/irdevice.js.map +1 -1
  106. package/dist/irdevice/light.d.ts +9 -9
  107. package/dist/irdevice/light.d.ts.map +1 -1
  108. package/dist/irdevice/light.js +24 -47
  109. package/dist/irdevice/light.js.map +1 -1
  110. package/dist/irdevice/other.d.ts +9 -9
  111. package/dist/irdevice/other.d.ts.map +1 -1
  112. package/dist/irdevice/other.js +40 -83
  113. package/dist/irdevice/other.js.map +1 -1
  114. package/dist/irdevice/tv.d.ts +9 -9
  115. package/dist/irdevice/tv.d.ts.map +1 -1
  116. package/dist/irdevice/tv.js +29 -54
  117. package/dist/irdevice/tv.js.map +1 -1
  118. package/dist/irdevice/vacuumcleaner.d.ts +5 -5
  119. package/dist/irdevice/vacuumcleaner.d.ts.map +1 -1
  120. package/dist/irdevice/vacuumcleaner.js +11 -21
  121. package/dist/irdevice/vacuumcleaner.js.map +1 -1
  122. package/dist/irdevice/waterheater.d.ts +5 -5
  123. package/dist/irdevice/waterheater.d.ts.map +1 -1
  124. package/dist/irdevice/waterheater.js +11 -22
  125. package/dist/irdevice/waterheater.js.map +1 -1
  126. package/dist/platform.d.ts +20 -19
  127. package/dist/platform.d.ts.map +1 -1
  128. package/dist/platform.js +466 -710
  129. package/dist/platform.js.map +1 -1
  130. package/dist/settings.d.ts +5 -2
  131. package/dist/settings.d.ts.map +1 -1
  132. package/dist/settings.js.map +1 -1
  133. package/dist/types/bledevicestatus.d.ts +9 -9
  134. package/dist/types/bledevicestatus.d.ts.map +1 -1
  135. package/dist/types/devicelist.d.ts +6 -6
  136. package/dist/types/devicelist.d.ts.map +1 -1
  137. package/dist/types/deviceresponse.d.ts +4 -4
  138. package/dist/types/deviceresponse.d.ts.map +1 -1
  139. package/dist/types/devicestatus.d.ts +2 -2
  140. package/dist/types/devicestatus.d.ts.map +1 -1
  141. package/dist/types/devicewebhookstatus.d.ts +5 -5
  142. package/dist/types/devicewebhookstatus.d.ts.map +1 -1
  143. package/dist/types/irdevicelist.d.ts +4 -4
  144. package/dist/types/irdevicelist.d.ts.map +1 -1
  145. package/dist/types/pushbody.d.ts +2 -2
  146. package/dist/types/pushbody.d.ts.map +1 -1
  147. package/dist/utils.d.ts +4 -4
  148. package/dist/utils.d.ts.map +1 -1
  149. package/dist/utils.js +9 -13
  150. package/dist/utils.js.map +1 -1
  151. package/eslint.config.js +48 -93
  152. package/package.json +61 -54
  153. package/src/device/blindtilt.ts +509 -460
  154. package/src/device/bot.ts +696 -718
  155. package/src/device/ceilinglight.ts +331 -364
  156. package/src/device/colorbulb.ts +412 -448
  157. package/src/device/contact.ts +200 -221
  158. package/src/device/curtain.ts +506 -444
  159. package/src/device/device.ts +206 -208
  160. package/src/device/fan.ts +307 -340
  161. package/src/device/hub.ts +184 -209
  162. package/src/device/humidifier.ts +297 -342
  163. package/src/device/iosensor.ts +182 -204
  164. package/src/device/lightstrip.ts +362 -399
  165. package/src/device/lock.ts +262 -276
  166. package/src/device/meter.ts +183 -205
  167. package/src/device/meterplus.ts +183 -204
  168. package/src/device/motion.ts +169 -185
  169. package/src/device/plug.ts +174 -177
  170. package/src/device/robotvacuumcleaner.ts +256 -269
  171. package/src/device/waterdetector.ts +185 -185
  172. package/src/homebridge-ui/server.ts +16 -15
  173. package/src/index.ts +5 -6
  174. package/src/irdevice/airconditioner.ts +277 -326
  175. package/src/irdevice/airpurifier.ts +124 -143
  176. package/src/irdevice/camera.ts +58 -64
  177. package/src/irdevice/fan.ts +106 -123
  178. package/src/irdevice/irdevice.ts +116 -119
  179. package/src/irdevice/light.ts +119 -143
  180. package/src/irdevice/other.ts +417 -461
  181. package/src/irdevice/tv.ts +155 -177
  182. package/src/irdevice/vacuumcleaner.ts +54 -60
  183. package/src/irdevice/waterheater.ts +56 -63
  184. package/src/platform.ts +1462 -1678
  185. package/src/settings.ts +173 -170
  186. package/src/types/bledevicestatus.ts +252 -256
  187. package/src/types/devicelist.ts +79 -79
  188. package/src/types/deviceresponse.ts +12 -13
  189. package/src/types/devicestatus.ts +124 -124
  190. package/src/types/devicewebhookstatus.ts +126 -131
  191. package/src/types/irdevicelist.ts +10 -10
  192. package/src/types/pushbody.ts +5 -5
  193. package/src/utils.ts +64 -65
  194. package/tsconfig.json +10 -9
  195. package/.github/npm-version-script.cjs +0 -81
package/src/settings.ts CHANGED
@@ -2,268 +2,271 @@
2
2
  *
3
3
  * settings.ts: @switchbot/homebridge-switchbot platform class.
4
4
  */
5
- import type { IClientOptions } from 'async-mqtt';
6
- import type { PlatformConfig } from 'homebridge';
7
- import type { device } from './types/devicelist';
8
- import type { irdevice } from './types/irdevicelist';
9
- import type { SwitchBotBLEModel, SwitchBotBLEModelName, SwitchBotBLEModelFriendlyName } from 'node-switchbot';
5
+ import type { IClientOptions } from 'async-mqtt'
6
+ import type { PlatformConfig } from 'homebridge'
7
+ import type { SwitchBotBLEModel, SwitchBotBLEModelFriendlyName, SwitchBotBLEModelName } from 'node-switchbot'
8
+
9
+ import type { device } from './types/devicelist'
10
+ import type { irdevice } from './types/irdevicelist'
10
11
  /**
11
12
  * This is the name of the platform that users will use to register the plugin in the Homebridge config.json
12
13
  */
13
- export const PLATFORM_NAME = 'SwitchBot';
14
+ export const PLATFORM_NAME = 'SwitchBot'
14
15
 
15
16
  /**
16
17
  * This must match the name of your plugin as defined the package.json
17
18
  */
18
- export const PLUGIN_NAME = '@switchbot/homebridge-switchbot';
19
+ export const PLUGIN_NAME = '@switchbot/homebridge-switchbot'
19
20
 
20
21
  /**
21
22
  * This is the main url used to access SwitchBot API
22
23
  */
23
- export const Devices = 'https://api.switch-bot.com/v1.1/devices';
24
+ export const Devices = 'https://api.switch-bot.com/v1.1/devices'
24
25
 
25
26
  /**
26
27
  * This is the updateWebhook url used to access SwitchBot API
27
28
  */
28
- export const setupWebhook = 'https://api.switch-bot.com/v1.1/webhook/setupWebhook';
29
+ export const setupWebhook = 'https://api.switch-bot.com/v1.1/webhook/setupWebhook'
29
30
 
30
31
  /**
31
32
  * This is the updateWebhook url used to access SwitchBot API
32
33
  */
33
- export const queryWebhook = 'https://api.switch-bot.com/v1.1/webhook/queryWebhook';
34
+ export const queryWebhook = 'https://api.switch-bot.com/v1.1/webhook/queryWebhook'
34
35
 
35
36
  /**
36
37
  * This is the updateWebhook url used to access SwitchBot API
37
38
  */
38
- export const updateWebhook = 'https://api.switch-bot.com/v1.1/webhook/updateWebhook';
39
+ export const updateWebhook = 'https://api.switch-bot.com/v1.1/webhook/updateWebhook'
39
40
 
40
41
  /**
41
42
  * This is the deleteWebhook url used to access SwitchBot API
42
43
  */
43
- export const deleteWebhook = 'https://api.switch-bot.com/v1.1/webhook/deleteWebhook';
44
-
44
+ export const deleteWebhook = 'https://api.switch-bot.com/v1.1/webhook/deleteWebhook'
45
45
 
46
- //Config
46
+ // Config
47
47
  export interface SwitchBotPlatformConfig extends PlatformConfig {
48
- credentials?: credentials;
49
- options?: options;
48
+ credentials?: credentials
49
+ options?: options
50
50
  }
51
51
  interface credentials {
52
- token?: any;
53
- secret?: any;
54
- notice?: any;
55
- openToken?: any;
52
+ token?: any
53
+ secret?: any
54
+ notice?: any
55
+ openToken?: any
56
56
  }
57
57
 
58
- interface options {
59
- devices?: devicesConfig[];
60
- irdevices?: irDevicesConfig[];
61
- allowInvalidCharacters?: boolean;
62
- mqttURL?: string;
63
- mqttOptions?: IClientOptions;
64
- mqttPubOptions?: IClientOptions;
65
- BLE?: boolean;
66
- webhookURL?: string;
67
- maxRetries?: number;
68
- delayBetweenRetries?: number;
69
- refreshRate?: number;
70
- updateRate?: number;
71
- pushRate?: number;
72
- logging?: string;
58
+ export interface options {
59
+ devices?: devicesConfig[]
60
+ irdevices?: irDevicesConfig[]
61
+ allowInvalidCharacters?: boolean
62
+ mqttURL?: string
63
+ mqttOptions?: IClientOptions
64
+ mqttPubOptions?: IClientOptions
65
+ BLE?: boolean
66
+ webhookURL?: string
67
+ maxRetries?: number
68
+ delayBetweenRetries?: number
69
+ refreshRate?: number
70
+ updateRate?: number
71
+ pushRate?: number
72
+ logging?: string
73
73
  };
74
74
 
75
75
  export interface devicesConfig extends device {
76
- bleMac?: string;
77
- model: string;
78
- bleModel: SwitchBotBLEModel;
79
- bleModelName: SwitchBotBLEModelName;
80
- bleModelFriednlyName: SwitchBotBLEModelFriendlyName;
81
- configDeviceType: string;
82
- configDeviceName?: string;
83
- deviceId: string;
84
- external?: boolean;
85
- refreshRate?: number;
86
- updateRate?: number;
87
- pushRate?: number;
88
- firmware?: string;
89
- logging?: string;
90
- connectionType?: string;
91
- customBLEaddress?: string;
92
- scanDuration?: number;
93
- hide_device?: boolean;
94
- offline?: boolean;
95
- maxRetry?: number;
96
- maxRetries?: number;
97
- delayBetweenRetries?: number;
98
- disableCaching?: boolean;
99
- mqttURL?: string;
100
- mqttOptions?: IClientOptions;
101
- mqttPubOptions?: IClientOptions;
102
- history?: boolean;
103
- webhook?: boolean;
104
- bot?: bot;
105
- meter?: meter;
106
- iosensor?: iosensor;
107
- humidifier?: humidifier;
108
- curtain?: curtain;
109
- blindTilt?: blindTilt;
110
- contact?: contact;
111
- motion?: motion;
112
- waterdetector?: waterdetector;
113
- colorbulb?: colorbulb;
114
- striplight?: striplight;
115
- ceilinglight?: ceilinglight;
116
- plug?: plug;
117
- lock?: lock;
118
- hub?: hub;
76
+ bleMac?: string
77
+ model: string
78
+ bleModel: SwitchBotBLEModel
79
+ bleModelName: SwitchBotBLEModelName
80
+ bleModelFriednlyName: SwitchBotBLEModelFriendlyName
81
+ configDeviceType: string
82
+ configDeviceName?: string
83
+ deviceId: string
84
+ external?: boolean
85
+ refreshRate?: number
86
+ updateRate?: number
87
+ pushRate?: number
88
+ firmware?: string
89
+ logging?: string
90
+ connectionType?: string
91
+ customBLEaddress?: string
92
+ scanDuration?: number
93
+ hide_device?: boolean
94
+ offline?: boolean
95
+ maxRetry?: number
96
+ maxRetries?: number
97
+ delayBetweenRetries?: number
98
+ disableCaching?: boolean
99
+ mqttURL?: string
100
+ mqttOptions?: IClientOptions
101
+ mqttPubOptions?: IClientOptions
102
+ history?: boolean
103
+ webhook?: boolean
104
+ bot?: bot
105
+ meter?: meter
106
+ iosensor?: iosensor
107
+ humidifier?: humidifier
108
+ curtain?: curtain
109
+ blindTilt?: blindTilt
110
+ contact?: contact
111
+ motion?: motion
112
+ waterdetector?: waterdetector
113
+ colorbulb?: colorbulb
114
+ striplight?: striplight
115
+ ceilinglight?: ceilinglight
116
+ plug?: plug
117
+ lock?: lock
118
+ hub?: hub
119
119
  }
120
120
 
121
121
  interface meter {
122
- hide_temperature?: boolean;
123
- convertUnitTo?: string;
124
- hide_humidity?: boolean;
122
+ hide_temperature?: boolean
123
+ convertUnitTo?: string
124
+ hide_humidity?: boolean
125
125
  };
126
126
 
127
127
  interface iosensor {
128
- hide_temperature?: boolean;
129
- convertUnitTo?: string;
130
- hide_humidity?: boolean;
128
+ hide_temperature?: boolean
129
+ convertUnitTo?: string
130
+ hide_humidity?: boolean
131
131
  };
132
132
 
133
133
  interface bot {
134
- mode?: string;
135
- deviceType?: string;
136
- doublePress?: number;
137
- pushRatePress?: number;
138
- allowPush?: boolean;
139
- multiPress?: boolean;
134
+ mode?: string
135
+ deviceType?: string
136
+ doublePress?: number
137
+ pushRatePress?: number
138
+ allowPush?: boolean
139
+ multiPress?: boolean
140
140
  };
141
141
 
142
142
  interface humidifier {
143
- hide_temperature?: boolean;
144
- set_minStep?: number;
143
+ hide_temperature?: boolean
144
+ set_minStep?: number
145
145
  };
146
146
 
147
147
  interface curtain {
148
- disable_group?: boolean;
149
- hide_lightsensor?: boolean;
150
- set_minLux?: number;
151
- set_maxLux?: number;
152
- set_max?: number;
153
- set_min?: number;
154
- set_minStep?: number;
155
- setCloseMode?: string;
156
- setOpenMode?: string;
148
+ disable_group?: boolean
149
+ hide_lightsensor?: boolean
150
+ set_minLux?: number
151
+ set_maxLux?: number
152
+ set_max?: number
153
+ set_min?: number
154
+ set_minStep?: number
155
+ setCloseMode?: string
156
+ setOpenMode?: string
157
+ silentModeSwitch?: boolean
157
158
  };
158
159
 
159
160
  interface blindTilt {
160
- mode?: string;
161
- hide_lightsensor?: boolean;
162
- set_minLux?: number;
163
- set_maxLux?: number;
164
- set_max?: number;
165
- set_min?: number;
166
- set_minStep?: number;
167
- setCloseMode?: string;
168
- setOpenMode?: string;
161
+ mode?: string
162
+ hide_lightsensor?: boolean
163
+ set_minLux?: number
164
+ set_maxLux?: number
165
+ set_max?: number
166
+ set_min?: number
167
+ set_minStep?: number
168
+ setCloseMode?: string
169
+ setOpenMode?: string
170
+ silentModeSwitch?: boolean
169
171
  };
170
172
 
171
173
  interface contact {
172
- hide_lightsensor?: boolean;
173
- set_minLux?: number;
174
- set_maxLux?: number;
175
- hide_motionsensor?: boolean;
174
+ hide_lightsensor?: boolean
175
+ set_minLux?: number
176
+ set_maxLux?: number
177
+ hide_motionsensor?: boolean
176
178
  };
177
179
 
178
180
  interface motion {
179
- hide_lightsensor?: boolean;
180
- set_minLux?: number;
181
- set_maxLux?: number;
181
+ hide_lightsensor?: boolean
182
+ set_minLux?: number
183
+ set_maxLux?: number
182
184
  };
183
185
 
184
186
  interface waterdetector {
185
- hide_leak?: boolean;
187
+ hide_leak?: boolean
188
+ dry?: boolean
186
189
  };
187
190
 
188
191
  interface colorbulb {
189
- set_minStep?: number;
190
- adaptiveLightingShift?: number;
192
+ set_minStep?: number
193
+ adaptiveLightingShift?: number
191
194
  };
192
195
 
193
196
  interface striplight {
194
- set_minStep?: number;
195
- adaptiveLightingShift?: number;
197
+ set_minStep?: number
198
+ adaptiveLightingShift?: number
196
199
  };
197
200
 
198
201
  interface ceilinglight {
199
- set_minStep?: number;
200
- adaptiveLightingShift?: number;
202
+ set_minStep?: number
203
+ adaptiveLightingShift?: number
201
204
  };
202
205
 
203
- type plug = object;
206
+ type plug = object
204
207
 
205
208
  interface lock {
206
- hide_contactsensor?: boolean;
207
- activate_latchbutton?: boolean;
209
+ hide_contactsensor?: boolean
210
+ activate_latchbutton?: boolean
208
211
  };
209
212
 
210
213
  interface hub {
211
- hide_temperature?: boolean;
212
- convertUnitTo?: string;
213
- hide_humidity?: boolean;
214
- hide_lightsensor?: boolean;
214
+ hide_temperature?: boolean
215
+ convertUnitTo?: string
216
+ hide_humidity?: boolean
217
+ hide_lightsensor?: boolean
215
218
  };
216
219
 
217
220
  export interface irDevicesConfig extends irdevice {
218
- configDeviceName?: string;
219
- configRemoteType?: string;
220
- connectionType?: string;
221
- hide_device?: boolean;
222
- external?: boolean;
223
- firmware?: string;
224
- deviceId: string;
225
- logging?: string;
226
- customOn?: string;
227
- customOff?: string;
228
- customize?: boolean;
229
- commandType?: string;
230
- disablePushOn?: boolean;
231
- disablePushOff?: boolean;
232
- disablePushDetail?: boolean;
233
- irfan?: irfan;
234
- irair?: irair;
235
- irpur?: Record<any, any>;
236
- ircam?: Record<any, any>;
237
- irlight?: irlight;
238
- irvc?: Record<any, any>;
239
- irwh?: Record<any, any>;
240
- irtv?: Record<any, any>;
241
- other?: other;
221
+ configDeviceName?: string
222
+ configRemoteType?: string
223
+ connectionType?: string
224
+ hide_device?: boolean
225
+ external?: boolean
226
+ firmware?: string
227
+ deviceId: string
228
+ logging?: string
229
+ customOn?: string
230
+ customOff?: string
231
+ customize?: boolean
232
+ commandType?: string
233
+ disablePushOn?: boolean
234
+ disablePushOff?: boolean
235
+ disablePushDetail?: boolean
236
+ irfan?: irfan
237
+ irair?: irair
238
+ irpur?: Record<any, any>
239
+ ircam?: Record<any, any>
240
+ irlight?: irlight
241
+ irvc?: Record<any, any>
242
+ irwh?: Record<any, any>
243
+ irtv?: Record<any, any>
244
+ other?: other
242
245
  }
243
246
 
244
247
  interface irfan {
245
- swing_mode?: boolean;
246
- rotation_speed?: boolean;
247
- set_minStep?: number;
248
- set_max?: number;
249
- set_min?: number;
248
+ swing_mode?: boolean
249
+ rotation_speed?: boolean
250
+ set_minStep?: number
251
+ set_max?: number
252
+ set_min?: number
250
253
  };
251
254
 
252
255
  interface irlight {
253
- stateless?: boolean;
256
+ stateless?: boolean
254
257
  };
255
258
 
256
259
  interface irair {
257
- hide_automode?: boolean;
258
- set_max_heat?: number;
259
- set_min_heat?: number;
260
- set_max_cool?: number;
261
- set_min_cool?: number;
262
- meterType?: string;
263
- meterId?: string;
264
- meterUuid?: string;
260
+ hide_automode?: boolean
261
+ set_max_heat?: number
262
+ set_min_heat?: number
263
+ set_max_cool?: number
264
+ set_min_cool?: number
265
+ meterType?: string
266
+ meterId?: string
267
+ meterUuid?: string
265
268
  };
266
269
 
267
270
  interface other {
268
- deviceType?: string;
271
+ deviceType?: string
269
272
  };