@switchbot/homebridge-switchbot 3.7.1-beta.12 → 3.7.1-beta.13

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 (190) hide show
  1. package/dist/device/blindtilt.d.ts +8 -8
  2. package/dist/device/blindtilt.d.ts.map +1 -1
  3. package/dist/device/blindtilt.js +34 -66
  4. package/dist/device/blindtilt.js.map +1 -1
  5. package/dist/device/bot.d.ts +9 -9
  6. package/dist/device/bot.d.ts.map +1 -1
  7. package/dist/device/bot.js +61 -97
  8. package/dist/device/bot.js.map +1 -1
  9. package/dist/device/ceilinglight.d.ts +13 -13
  10. package/dist/device/ceilinglight.d.ts.map +1 -1
  11. package/dist/device/ceilinglight.js +38 -73
  12. package/dist/device/ceilinglight.js.map +1 -1
  13. package/dist/device/colorbulb.d.ts +12 -12
  14. package/dist/device/colorbulb.d.ts.map +1 -1
  15. package/dist/device/colorbulb.js +41 -79
  16. package/dist/device/colorbulb.js.map +1 -1
  17. package/dist/device/contact.d.ts +5 -5
  18. package/dist/device/contact.d.ts.map +1 -1
  19. package/dist/device/contact.js +20 -42
  20. package/dist/device/contact.js.map +1 -1
  21. package/dist/device/curtain.d.ts +5 -5
  22. package/dist/device/curtain.d.ts.map +1 -1
  23. package/dist/device/curtain.js +36 -71
  24. package/dist/device/curtain.js.map +1 -1
  25. package/dist/device/device.d.ts +18 -18
  26. package/dist/device/device.d.ts.map +1 -1
  27. package/dist/device/device.js +33 -36
  28. package/dist/device/device.js.map +1 -1
  29. package/dist/device/fan.d.ts +8 -8
  30. package/dist/device/fan.d.ts.map +1 -1
  31. package/dist/device/fan.js +43 -75
  32. package/dist/device/fan.js.map +1 -1
  33. package/dist/device/hub.d.ts +5 -5
  34. package/dist/device/hub.d.ts.map +1 -1
  35. package/dist/device/hub.js +18 -39
  36. package/dist/device/hub.js.map +1 -1
  37. package/dist/device/humidifier.d.ts +5 -5
  38. package/dist/device/humidifier.d.ts.map +1 -1
  39. package/dist/device/humidifier.js +38 -78
  40. package/dist/device/humidifier.js.map +1 -1
  41. package/dist/device/iosensor.d.ts +5 -5
  42. package/dist/device/iosensor.d.ts.map +1 -1
  43. package/dist/device/iosensor.js +21 -40
  44. package/dist/device/iosensor.js.map +1 -1
  45. package/dist/device/lightstrip.d.ts +6 -6
  46. package/dist/device/lightstrip.d.ts.map +1 -1
  47. package/dist/device/lightstrip.js +34 -73
  48. package/dist/device/lightstrip.js.map +1 -1
  49. package/dist/device/lock.d.ts +9 -9
  50. package/dist/device/lock.d.ts.map +1 -1
  51. package/dist/device/lock.js +37 -52
  52. package/dist/device/lock.js.map +1 -1
  53. package/dist/device/meter.d.ts +5 -5
  54. package/dist/device/meter.d.ts.map +1 -1
  55. package/dist/device/meter.js +21 -39
  56. package/dist/device/meter.js.map +1 -1
  57. package/dist/device/meterplus.d.ts +5 -5
  58. package/dist/device/meterplus.d.ts.map +1 -1
  59. package/dist/device/meterplus.js +21 -38
  60. package/dist/device/meterplus.js.map +1 -1
  61. package/dist/device/motion.d.ts +5 -5
  62. package/dist/device/motion.d.ts.map +1 -1
  63. package/dist/device/motion.js +14 -32
  64. package/dist/device/motion.js.map +1 -1
  65. package/dist/device/plug.d.ts +12 -12
  66. package/dist/device/plug.d.ts.map +1 -1
  67. package/dist/device/plug.js +16 -25
  68. package/dist/device/plug.js.map +1 -1
  69. package/dist/device/robotvacuumcleaner.d.ts +11 -11
  70. package/dist/device/robotvacuumcleaner.d.ts.map +1 -1
  71. package/dist/device/robotvacuumcleaner.js +42 -56
  72. package/dist/device/robotvacuumcleaner.js.map +1 -1
  73. package/dist/device/waterdetector.d.ts +5 -5
  74. package/dist/device/waterdetector.d.ts.map +1 -1
  75. package/dist/device/waterdetector.js +22 -37
  76. package/dist/device/waterdetector.js.map +1 -1
  77. package/dist/homebridge-ui/server.js +2 -2
  78. package/dist/homebridge-ui/server.js.map +1 -1
  79. package/dist/index.d.ts.map +1 -1
  80. package/dist/index.js +0 -4
  81. package/dist/index.js.map +1 -1
  82. package/dist/irdevice/airconditioner.d.ts +8 -8
  83. package/dist/irdevice/airconditioner.d.ts.map +1 -1
  84. package/dist/irdevice/airconditioner.js +64 -105
  85. package/dist/irdevice/airconditioner.js.map +1 -1
  86. package/dist/irdevice/airpurifier.d.ts +10 -10
  87. package/dist/irdevice/airpurifier.d.ts.map +1 -1
  88. package/dist/irdevice/airpurifier.js +22 -42
  89. package/dist/irdevice/airpurifier.js.map +1 -1
  90. package/dist/irdevice/camera.d.ts +9 -9
  91. package/dist/irdevice/camera.d.ts.map +1 -1
  92. package/dist/irdevice/camera.js +15 -25
  93. package/dist/irdevice/camera.js.map +1 -1
  94. package/dist/irdevice/fan.d.ts +8 -8
  95. package/dist/irdevice/fan.d.ts.map +1 -1
  96. package/dist/irdevice/fan.js +21 -40
  97. package/dist/irdevice/fan.js.map +1 -1
  98. package/dist/irdevice/irdevice.d.ts +11 -11
  99. package/dist/irdevice/irdevice.d.ts.map +1 -1
  100. package/dist/irdevice/irdevice.js +14 -22
  101. package/dist/irdevice/irdevice.js.map +1 -1
  102. package/dist/irdevice/light.d.ts +9 -9
  103. package/dist/irdevice/light.d.ts.map +1 -1
  104. package/dist/irdevice/light.js +24 -47
  105. package/dist/irdevice/light.js.map +1 -1
  106. package/dist/irdevice/other.d.ts +9 -9
  107. package/dist/irdevice/other.d.ts.map +1 -1
  108. package/dist/irdevice/other.js +40 -83
  109. package/dist/irdevice/other.js.map +1 -1
  110. package/dist/irdevice/tv.d.ts +9 -9
  111. package/dist/irdevice/tv.d.ts.map +1 -1
  112. package/dist/irdevice/tv.js +29 -54
  113. package/dist/irdevice/tv.js.map +1 -1
  114. package/dist/irdevice/vacuumcleaner.d.ts +5 -5
  115. package/dist/irdevice/vacuumcleaner.d.ts.map +1 -1
  116. package/dist/irdevice/vacuumcleaner.js +11 -21
  117. package/dist/irdevice/vacuumcleaner.js.map +1 -1
  118. package/dist/irdevice/waterheater.d.ts +5 -5
  119. package/dist/irdevice/waterheater.d.ts.map +1 -1
  120. package/dist/irdevice/waterheater.js +11 -22
  121. package/dist/irdevice/waterheater.js.map +1 -1
  122. package/dist/platform.d.ts +5 -6
  123. package/dist/platform.d.ts.map +1 -1
  124. package/dist/platform.js +141 -146
  125. package/dist/platform.js.map +1 -1
  126. package/dist/settings.d.ts +2 -2
  127. package/dist/settings.d.ts.map +1 -1
  128. package/dist/settings.js.map +1 -1
  129. package/dist/types/bledevicestatus.d.ts +9 -9
  130. package/dist/types/bledevicestatus.d.ts.map +1 -1
  131. package/dist/types/devicelist.d.ts +6 -6
  132. package/dist/types/devicelist.d.ts.map +1 -1
  133. package/dist/types/deviceresponse.d.ts +4 -4
  134. package/dist/types/deviceresponse.d.ts.map +1 -1
  135. package/dist/types/devicestatus.d.ts +2 -2
  136. package/dist/types/devicestatus.d.ts.map +1 -1
  137. package/dist/types/devicewebhookstatus.d.ts +5 -5
  138. package/dist/types/devicewebhookstatus.d.ts.map +1 -1
  139. package/dist/types/irdevicelist.d.ts +4 -4
  140. package/dist/types/irdevicelist.d.ts.map +1 -1
  141. package/dist/types/pushbody.d.ts +2 -2
  142. package/dist/types/pushbody.d.ts.map +1 -1
  143. package/dist/utils.d.ts +4 -4
  144. package/dist/utils.d.ts.map +1 -1
  145. package/dist/utils.js +9 -13
  146. package/dist/utils.js.map +1 -1
  147. package/eslint.config.js +48 -93
  148. package/package.json +54 -47
  149. package/src/device/blindtilt.ts +419 -456
  150. package/src/device/bot.ts +656 -693
  151. package/src/device/ceilinglight.ts +331 -364
  152. package/src/device/colorbulb.ts +412 -448
  153. package/src/device/contact.ts +200 -221
  154. package/src/device/curtain.ts +400 -435
  155. package/src/device/device.ts +206 -208
  156. package/src/device/fan.ts +307 -340
  157. package/src/device/hub.ts +184 -209
  158. package/src/device/humidifier.ts +297 -342
  159. package/src/device/iosensor.ts +182 -204
  160. package/src/device/lightstrip.ts +362 -399
  161. package/src/device/lock.ts +262 -276
  162. package/src/device/meter.ts +183 -205
  163. package/src/device/meterplus.ts +183 -204
  164. package/src/device/motion.ts +169 -185
  165. package/src/device/plug.ts +174 -177
  166. package/src/device/robotvacuumcleaner.ts +256 -269
  167. package/src/device/waterdetector.ts +169 -184
  168. package/src/homebridge-ui/server.ts +16 -15
  169. package/src/index.ts +5 -6
  170. package/src/irdevice/airconditioner.ts +280 -326
  171. package/src/irdevice/airpurifier.ts +124 -143
  172. package/src/irdevice/camera.ts +58 -64
  173. package/src/irdevice/fan.ts +106 -123
  174. package/src/irdevice/irdevice.ts +116 -119
  175. package/src/irdevice/light.ts +119 -143
  176. package/src/irdevice/other.ts +417 -461
  177. package/src/irdevice/tv.ts +155 -177
  178. package/src/irdevice/vacuumcleaner.ts +54 -60
  179. package/src/irdevice/waterheater.ts +56 -63
  180. package/src/platform.ts +1281 -1281
  181. package/src/settings.ts +170 -170
  182. package/src/types/bledevicestatus.ts +255 -255
  183. package/src/types/devicelist.ts +79 -79
  184. package/src/types/deviceresponse.ts +12 -13
  185. package/src/types/devicestatus.ts +124 -124
  186. package/src/types/devicewebhookstatus.ts +126 -127
  187. package/src/types/irdevicelist.ts +10 -10
  188. package/src/types/pushbody.ts +5 -5
  189. package/src/utils.ts +64 -65
  190. package/tsconfig.json +10 -9
package/src/settings.ts CHANGED
@@ -2,268 +2,268 @@
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
157
  };
158
158
 
159
159
  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;
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
169
169
  };
170
170
 
171
171
  interface contact {
172
- hide_lightsensor?: boolean;
173
- set_minLux?: number;
174
- set_maxLux?: number;
175
- hide_motionsensor?: boolean;
172
+ hide_lightsensor?: boolean
173
+ set_minLux?: number
174
+ set_maxLux?: number
175
+ hide_motionsensor?: boolean
176
176
  };
177
177
 
178
178
  interface motion {
179
- hide_lightsensor?: boolean;
180
- set_minLux?: number;
181
- set_maxLux?: number;
179
+ hide_lightsensor?: boolean
180
+ set_minLux?: number
181
+ set_maxLux?: number
182
182
  };
183
183
 
184
184
  interface waterdetector {
185
- hide_leak?: boolean;
185
+ hide_leak?: boolean
186
186
  };
187
187
 
188
188
  interface colorbulb {
189
- set_minStep?: number;
190
- adaptiveLightingShift?: number;
189
+ set_minStep?: number
190
+ adaptiveLightingShift?: number
191
191
  };
192
192
 
193
193
  interface striplight {
194
- set_minStep?: number;
195
- adaptiveLightingShift?: number;
194
+ set_minStep?: number
195
+ adaptiveLightingShift?: number
196
196
  };
197
197
 
198
198
  interface ceilinglight {
199
- set_minStep?: number;
200
- adaptiveLightingShift?: number;
199
+ set_minStep?: number
200
+ adaptiveLightingShift?: number
201
201
  };
202
202
 
203
- type plug = object;
203
+ type plug = object
204
204
 
205
205
  interface lock {
206
- hide_contactsensor?: boolean;
207
- activate_latchbutton?: boolean;
206
+ hide_contactsensor?: boolean
207
+ activate_latchbutton?: boolean
208
208
  };
209
209
 
210
210
  interface hub {
211
- hide_temperature?: boolean;
212
- convertUnitTo?: string;
213
- hide_humidity?: boolean;
214
- hide_lightsensor?: boolean;
211
+ hide_temperature?: boolean
212
+ convertUnitTo?: string
213
+ hide_humidity?: boolean
214
+ hide_lightsensor?: boolean
215
215
  };
216
216
 
217
217
  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;
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
242
242
  }
243
243
 
244
244
  interface irfan {
245
- swing_mode?: boolean;
246
- rotation_speed?: boolean;
247
- set_minStep?: number;
248
- set_max?: number;
249
- set_min?: number;
245
+ swing_mode?: boolean
246
+ rotation_speed?: boolean
247
+ set_minStep?: number
248
+ set_max?: number
249
+ set_min?: number
250
250
  };
251
251
 
252
252
  interface irlight {
253
- stateless?: boolean;
253
+ stateless?: boolean
254
254
  };
255
255
 
256
256
  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;
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
265
265
  };
266
266
 
267
267
  interface other {
268
- deviceType?: string;
268
+ deviceType?: string
269
269
  };