node-switchbot 3.6.3 → 3.6.5

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 (235) hide show
  1. package/CHANGELOG.md +780 -0
  2. package/dist/device.d.ts.map +1 -1
  3. package/dist/device.js +6 -1
  4. package/dist/device.js.map +1 -1
  5. package/dist/device.test.js +104 -1
  6. package/dist/device.test.js.map +1 -1
  7. package/docs/classes/Advertising.html +4 -4
  8. package/docs/classes/ErrorUtils.html +5 -5
  9. package/docs/classes/ParameterChecker.html +10 -10
  10. package/docs/classes/SwitchBotBLE.html +8 -8
  11. package/docs/classes/SwitchBotOpenAPI.html +7 -7
  12. package/docs/classes/SwitchbotDevice.html +12 -12
  13. package/docs/classes/ValidationUtils.html +8 -8
  14. package/docs/classes/WoAirPurifier.html +18 -18
  15. package/docs/classes/WoAirPurifierTable.html +18 -18
  16. package/docs/classes/WoBlindTilt.html +21 -21
  17. package/docs/classes/WoBulb.html +19 -19
  18. package/docs/classes/WoCeilingLight.html +22 -22
  19. package/docs/classes/WoContact.html +13 -13
  20. package/docs/classes/WoCurtain.html +18 -18
  21. package/docs/classes/WoHand.html +18 -18
  22. package/docs/classes/WoHub2.html +13 -13
  23. package/docs/classes/WoHub3.html +13 -13
  24. package/docs/classes/WoHumi.html +20 -20
  25. package/docs/classes/WoHumi2.html +20 -20
  26. package/docs/classes/WoIOSensorTH.html +13 -13
  27. package/docs/classes/WoKeypad.html +13 -13
  28. package/docs/classes/WoLeak.html +13 -13
  29. package/docs/classes/WoPlugMiniJP.html +18 -18
  30. package/docs/classes/WoPlugMiniUS.html +18 -18
  31. package/docs/classes/WoPresence.html +14 -14
  32. package/docs/classes/WoRelaySwitch1.html +15 -15
  33. package/docs/classes/WoRelaySwitch1PM.html +15 -15
  34. package/docs/classes/WoRemote.html +13 -13
  35. package/docs/classes/WoSensorTH.html +12 -12
  36. package/docs/classes/WoSensorTHPlus.html +12 -12
  37. package/docs/classes/WoSensorTHPro.html +12 -12
  38. package/docs/classes/WoSensorTHProCO2.html +12 -12
  39. package/docs/classes/WoSmartLock.html +23 -23
  40. package/docs/classes/WoSmartLockPro.html +23 -23
  41. package/docs/classes/WoSmartLockUltra.html +23 -23
  42. package/docs/classes/WoStrip.html +20 -20
  43. package/docs/enums/LogLevel.html +2 -2
  44. package/docs/enums/SwitchBotBLEModel.html +2 -2
  45. package/docs/enums/SwitchBotBLEModelFriendlyName.html +2 -2
  46. package/docs/enums/SwitchBotBLEModelName.html +2 -2
  47. package/docs/enums/SwitchBotModel.html +2 -2
  48. package/docs/functions/updateBaseURL.html +1 -1
  49. package/docs/interfaces/AdvertisementData.html +2 -2
  50. package/docs/interfaces/Chars.html +2 -2
  51. package/docs/interfaces/ColorLightServiceDataBase.html +2 -2
  52. package/docs/interfaces/ErrorObject.html +2 -2
  53. package/docs/interfaces/LockBaseServiceData.html +2 -2
  54. package/docs/interfaces/NobleTypes.html +2 -2
  55. package/docs/interfaces/Params.html +2 -2
  56. package/docs/interfaces/PlugMiniServiceDataBase.html +2 -2
  57. package/docs/interfaces/Rule.html +2 -2
  58. package/docs/interfaces/ServiceData.html +2 -2
  59. package/docs/interfaces/SwitchBotBLEDevice.html +2 -2
  60. package/docs/interfaces/SwitchBotScanner.html +3 -3
  61. package/docs/interfaces/TemperatureServiceDataBase.html +2 -2
  62. package/docs/interfaces/WebhookDetail.html +2 -2
  63. package/docs/interfaces/ad.html +2 -2
  64. package/docs/interfaces/body.html +2 -2
  65. package/docs/interfaces/bodyChange.html +2 -2
  66. package/docs/interfaces/deleteWebhookResponse.html +2 -2
  67. package/docs/interfaces/device.html +2 -2
  68. package/docs/interfaces/deviceList.html +2 -2
  69. package/docs/interfaces/deviceStatus.html +2 -2
  70. package/docs/interfaces/deviceStatusRequest.html +2 -2
  71. package/docs/interfaces/deviceWebhook.html +2 -2
  72. package/docs/interfaces/deviceWebhookContext.html +2 -2
  73. package/docs/interfaces/devices.html +2 -2
  74. package/docs/interfaces/infraredRemoteList.html +2 -2
  75. package/docs/interfaces/irdevice.html +2 -2
  76. package/docs/interfaces/pushRequest.html +2 -2
  77. package/docs/interfaces/pushResponse.html +2 -2
  78. package/docs/interfaces/pushResponseBody.html +2 -2
  79. package/docs/interfaces/queryWebhookResponse.html +2 -2
  80. package/docs/interfaces/setupWebhookResponse.html +2 -2
  81. package/docs/interfaces/updateWebhookResponse.html +2 -2
  82. package/docs/interfaces/webhookRequest.html +2 -2
  83. package/docs/types/BLEDeviceServiceData.html +1 -1
  84. package/docs/types/IndoorCam.html +1 -1
  85. package/docs/types/MacAddress.html +1 -1
  86. package/docs/types/airPurifier.html +1 -1
  87. package/docs/types/airPurifierPM25WebhookContext.html +1 -1
  88. package/docs/types/airPurifierServiceData.html +1 -1
  89. package/docs/types/airPurifierStatus.html +1 -1
  90. package/docs/types/airPurifierTable.html +1 -1
  91. package/docs/types/airPurifierTablePM25WebhookContext.html +1 -1
  92. package/docs/types/airPurifierTableServiceData.html +1 -1
  93. package/docs/types/airPurifierTableStatus.html +1 -1
  94. package/docs/types/airPurifierTableVOC.html +1 -1
  95. package/docs/types/airPurifierTableVOCStatus.html +1 -1
  96. package/docs/types/airPurifierTableVOCWebhookContext.html +1 -1
  97. package/docs/types/airPurifierTableWebhookContext.html +1 -1
  98. package/docs/types/airPurifierVOC.html +1 -1
  99. package/docs/types/airPurifierVOCStatus.html +1 -1
  100. package/docs/types/airPurifierVOCWebhookContext.html +1 -1
  101. package/docs/types/airPurifierWebhookContext.html +1 -1
  102. package/docs/types/batteryCirculatorFan.html +1 -1
  103. package/docs/types/batteryCirculatorFanServiceData.html +1 -1
  104. package/docs/types/batteryCirculatorFanStatus.html +1 -1
  105. package/docs/types/batteryCirculatorFanWebhookContext.html +1 -1
  106. package/docs/types/blindTilt.html +1 -1
  107. package/docs/types/blindTiltServiceData.html +1 -1
  108. package/docs/types/blindTiltStatus.html +1 -1
  109. package/docs/types/blindTiltWebhookContext.html +1 -1
  110. package/docs/types/bot.html +1 -1
  111. package/docs/types/botServiceData.html +1 -1
  112. package/docs/types/botStatus.html +1 -1
  113. package/docs/types/botWebhookContext.html +1 -1
  114. package/docs/types/ceilingLight.html +1 -1
  115. package/docs/types/ceilingLightPro.html +1 -1
  116. package/docs/types/ceilingLightProServiceData.html +1 -1
  117. package/docs/types/ceilingLightProStatus.html +1 -1
  118. package/docs/types/ceilingLightProWebhookContext.html +1 -1
  119. package/docs/types/ceilingLightServiceData.html +1 -1
  120. package/docs/types/ceilingLightStatus.html +1 -1
  121. package/docs/types/ceilingLightWebhookContext.html +1 -1
  122. package/docs/types/circulatorFanStatus.html +1 -1
  123. package/docs/types/circulatorFanWebhookContext.html +1 -1
  124. package/docs/types/colorBulb.html +1 -1
  125. package/docs/types/colorBulbServiceData.html +1 -1
  126. package/docs/types/colorBulbStatus.html +1 -1
  127. package/docs/types/colorBulbWebhookContext.html +1 -1
  128. package/docs/types/commandType.html +1 -1
  129. package/docs/types/contactSensor.html +1 -1
  130. package/docs/types/contactSensorServiceData.html +1 -1
  131. package/docs/types/contactSensorStatus.html +1 -1
  132. package/docs/types/contactSensorWebhookContext.html +1 -1
  133. package/docs/types/curtain.html +1 -1
  134. package/docs/types/curtain3.html +1 -1
  135. package/docs/types/curtain3ServiceData.html +1 -1
  136. package/docs/types/curtain3WebhookContext.html +1 -1
  137. package/docs/types/curtainServiceData.html +1 -1
  138. package/docs/types/curtainStatus.html +1 -1
  139. package/docs/types/curtainWebhookContext.html +1 -1
  140. package/docs/types/floorCleaningRobotS10.html +1 -1
  141. package/docs/types/floorCleaningRobotS10Status.html +1 -1
  142. package/docs/types/floorCleaningRobotS10WebhookContext.html +1 -1
  143. package/docs/types/hub2.html +1 -1
  144. package/docs/types/hub2ServiceData.html +1 -1
  145. package/docs/types/hub2Status.html +1 -1
  146. package/docs/types/hub2WebhookContext.html +1 -1
  147. package/docs/types/hub3ServiceData.html +1 -1
  148. package/docs/types/humidifier.html +1 -1
  149. package/docs/types/humidifier2ServiceData.html +1 -1
  150. package/docs/types/humidifier2Status.html +1 -1
  151. package/docs/types/humidifier2WebhookContext.html +1 -1
  152. package/docs/types/humidifierServiceData.html +1 -1
  153. package/docs/types/humidifierStatus.html +1 -1
  154. package/docs/types/humidifierWebhookContext.html +1 -1
  155. package/docs/types/indoorCameraWebhookContext.html +1 -1
  156. package/docs/types/keypad.html +1 -1
  157. package/docs/types/keypadDetectorServiceData.html +1 -1
  158. package/docs/types/keypadTouch.html +1 -1
  159. package/docs/types/keypadTouchWebhookContext.html +1 -1
  160. package/docs/types/keypadWebhookContext.html +1 -1
  161. package/docs/types/lock.html +1 -1
  162. package/docs/types/lockPro.html +1 -1
  163. package/docs/types/lockProServiceData.html +1 -1
  164. package/docs/types/lockProStatus.html +1 -1
  165. package/docs/types/lockProWebhookContext.html +1 -1
  166. package/docs/types/lockServiceData.html +1 -1
  167. package/docs/types/lockStatus.html +1 -1
  168. package/docs/types/lockWebhookContext.html +1 -1
  169. package/docs/types/meter.html +1 -1
  170. package/docs/types/meterPlus.html +1 -1
  171. package/docs/types/meterPlusServiceData.html +1 -1
  172. package/docs/types/meterPlusStatus.html +1 -1
  173. package/docs/types/meterPlusWebhookContext.html +1 -1
  174. package/docs/types/meterPro.html +1 -1
  175. package/docs/types/meterProCO2ServiceData.html +1 -1
  176. package/docs/types/meterProCO2Status.html +1 -1
  177. package/docs/types/meterProCO2WebhookContext.html +1 -1
  178. package/docs/types/meterProServiceData.html +1 -1
  179. package/docs/types/meterProStatus.html +1 -1
  180. package/docs/types/meterProWebhookContext.html +1 -1
  181. package/docs/types/meterServiceData.html +1 -1
  182. package/docs/types/meterStatus.html +1 -1
  183. package/docs/types/meterWebhookContext.html +1 -1
  184. package/docs/types/motionSensor.html +1 -1
  185. package/docs/types/motionSensorServiceData.html +1 -1
  186. package/docs/types/motionSensorStatus.html +1 -1
  187. package/docs/types/motionSensorWebhookContext.html +1 -1
  188. package/docs/types/onadvertisement.html +1 -1
  189. package/docs/types/ondiscover.html +1 -1
  190. package/docs/types/outdoorMeter.html +1 -1
  191. package/docs/types/outdoorMeterServiceData.html +1 -1
  192. package/docs/types/outdoorMeterStatus.html +1 -1
  193. package/docs/types/outdoorMeterWebhookContext.html +1 -1
  194. package/docs/types/panTiltCamWebhookContext.html +1 -1
  195. package/docs/types/pantiltCam.html +1 -1
  196. package/docs/types/pantiltCam2k.html +1 -1
  197. package/docs/types/plug.html +1 -1
  198. package/docs/types/plugMini.html +1 -1
  199. package/docs/types/plugMiniJPServiceData.html +1 -1
  200. package/docs/types/plugMiniJPWebhookContext.html +1 -1
  201. package/docs/types/plugMiniStatus.html +1 -1
  202. package/docs/types/plugMiniUSServiceData.html +1 -1
  203. package/docs/types/plugMiniUSWebhookContext.html +1 -1
  204. package/docs/types/plugStatus.html +1 -1
  205. package/docs/types/plugWebhookContext.html +1 -1
  206. package/docs/types/presenceSensor.html +1 -1
  207. package/docs/types/presenceSensorServiceData.html +1 -1
  208. package/docs/types/presenceSensorStatus.html +1 -1
  209. package/docs/types/presenceSensorWebhookContext.html +1 -1
  210. package/docs/types/relaySwitch1Context.html +1 -1
  211. package/docs/types/relaySwitch1PMContext.html +1 -1
  212. package/docs/types/relaySwitch1PMServiceData.html +1 -1
  213. package/docs/types/relaySwitch1PMStatus.html +1 -1
  214. package/docs/types/relaySwitch1ServiceData.html +1 -1
  215. package/docs/types/relaySwitch1Status.html +1 -1
  216. package/docs/types/remote.html +1 -1
  217. package/docs/types/remoteServiceData.html +1 -1
  218. package/docs/types/robotVacuumCleanerS1.html +1 -1
  219. package/docs/types/robotVacuumCleanerS1Plus.html +1 -1
  220. package/docs/types/robotVacuumCleanerS1PlusStatus.html +1 -1
  221. package/docs/types/robotVacuumCleanerS1PlusWebhookContext.html +1 -1
  222. package/docs/types/robotVacuumCleanerS1Status.html +1 -1
  223. package/docs/types/robotVacuumCleanerS1WebhookContext.html +1 -1
  224. package/docs/types/robotVacuumCleanerServiceData.html +1 -1
  225. package/docs/types/stripLight.html +1 -1
  226. package/docs/types/stripLightServiceData.html +1 -1
  227. package/docs/types/stripLightStatus.html +1 -1
  228. package/docs/types/stripLightWebhookContext.html +1 -1
  229. package/docs/types/waterLeakDetector.html +1 -1
  230. package/docs/types/waterLeakDetectorServiceData.html +1 -1
  231. package/docs/types/waterLeakDetectorStatus.html +1 -1
  232. package/docs/types/waterLeakDetectorWebhookContext.html +1 -1
  233. package/docs/variables/parameterChecker.html +1 -1
  234. package/docs/variables/urls.html +1 -1
  235. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import { Buffer } from 'node:buffer';
2
2
  import { describe, expect, it } from 'vitest';
3
- import { ErrorUtils, LogLevel, ValidationUtils } from './device.js';
3
+ import { Advertising, ErrorUtils, LogLevel, ValidationUtils, WoAirPurifier } from './device.js';
4
4
  describe('validationUtils', () => {
5
5
  describe('validatePercentage', () => {
6
6
  it('should accept valid percentages', () => {
@@ -149,4 +149,107 @@ describe('logLevel', () => {
149
149
  expect(LogLevel.INFO).toBe('info');
150
150
  });
151
151
  });
152
+ describe('advertising', () => {
153
+ describe('parse', () => {
154
+ it('should parse Air Purifier with minimal serviceData', async () => {
155
+ // Air Purifier devices have minimal serviceData (only model byte)
156
+ // but all actual data in manufacturerData
157
+ const peripheral = {
158
+ id: '3c84277658fe',
159
+ address: '3c:84:27:76:8c:fe',
160
+ rssi: -65,
161
+ advertisement: {
162
+ serviceData: [
163
+ {
164
+ uuid: 'cba20d00224d11e69fb80002a5d5c51b',
165
+ data: Buffer.from('+'), // Only model byte for Air Purifier
166
+ },
167
+ ],
168
+ manufacturerData: Buffer.from([
169
+ 0x59, 0x00, 0x12, 0x34, 0x56, 0x78, // Header
170
+ 0x01, // sequenceNumber
171
+ 0x80 | 0x02, // isOn=true, mode=2
172
+ 0x04 | 0x00, // isAqiValid=true, childLock=false
173
+ 0x50, // speed=80
174
+ 0x02, // aqiLevelRaw=1 (good)
175
+ 0x00, 0x64, // workTime=100
176
+ 0x00, // errCode=0
177
+ ]),
178
+ },
179
+ };
180
+ const emitLog = () => { };
181
+ const result = await Advertising.parse(peripheral, emitLog);
182
+ expect(result).not.toBeNull();
183
+ expect(result?.serviceData.model).toBe('+');
184
+ expect(result?.serviceData.modelName).toBe('WoAirPurifier');
185
+ // Type-safe property access
186
+ if (result && 'isOn' in result.serviceData) {
187
+ expect(result.serviceData.isOn).toBe(true);
188
+ expect(result.serviceData.speed).toBe(80);
189
+ expect(result.serviceData.aqi_level).toBe('good');
190
+ }
191
+ });
192
+ it('should return null when serviceData is missing', async () => {
193
+ const peripheral = {
194
+ id: 'test',
195
+ address: 'aa:bb:cc:dd:ee:ff',
196
+ rssi: -50,
197
+ advertisement: {
198
+ serviceData: [],
199
+ },
200
+ };
201
+ const emitLog = () => { };
202
+ const result = await Advertising.parse(peripheral, emitLog);
203
+ expect(result).toBeNull();
204
+ });
205
+ it('should return null when neither serviceData nor manufacturerData has sufficient data', async () => {
206
+ const peripheral = {
207
+ id: 'test',
208
+ address: 'aa:bb:cc:dd:ee:ff',
209
+ rssi: -50,
210
+ advertisement: {
211
+ serviceData: [
212
+ {
213
+ uuid: 'test',
214
+ data: Buffer.from('X'), // Only 1 byte
215
+ },
216
+ ],
217
+ manufacturerData: Buffer.from([0x01]), // Only 1 byte
218
+ },
219
+ };
220
+ const emitLog = () => { };
221
+ const result = await Advertising.parse(peripheral, emitLog);
222
+ expect(result).toBeNull();
223
+ });
224
+ });
225
+ describe('parseServiceData', () => {
226
+ it('should parse Air Purifier service data correctly', () => {
227
+ const serviceData = Buffer.from('+');
228
+ const manufacturerData = Buffer.from([
229
+ 0x59, 0x00, 0x12, 0x34, 0x56, 0x78,
230
+ 0x01, // sequenceNumber
231
+ 0x80 | 0x01, // isOn=true, mode=1 (manual levels)
232
+ 0x04 | 0x02, // isAqiValid=true, childLock=true
233
+ 0x42, // speed=66 (level_2)
234
+ 0x04, // aqiLevelRaw=2 (fair)
235
+ 0x01, 0x00, // workTime=256
236
+ 0x01, // errCode=1
237
+ ]);
238
+ const emitLog = () => { };
239
+ const result = WoAirPurifier.parseServiceData(serviceData, manufacturerData, emitLog);
240
+ expect(result).not.toBeNull();
241
+ expect(result?.model).toBe('+');
242
+ expect(result?.modelName).toBe('WoAirPurifier');
243
+ expect(result?.isOn).toBe(true);
244
+ expect(result?.mode).toBe('level_2');
245
+ expect(result?.speed).toBe(66);
246
+ expect(result?.aqi_level).toBe('fair');
247
+ expect(result?.isAqiValid).toBe(true);
248
+ expect(result?.child_lock).toBe(true);
249
+ expect(result?.filter_element_working_time).toBe(256);
250
+ expect(result?.err_code).toBe(1);
251
+ expect(result?.sequence_number).toBe(1);
252
+ });
253
+ });
254
+ });
152
255
  //# sourceMappingURL=device.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"device.test.js","sourceRoot":"","sources":["../src/device.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAE7C,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAEnE,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;QAClC,EAAE,CAAC,iCAAiC,EAAE,GAAG,EAAE;YACzC,MAAM,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,EAAE,CAAA;YACjE,MAAM,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,EAAE,CAAA;YAClE,MAAM,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,EAAE,CAAA;QACrE,CAAC,CAAC,CAAA;QAEF,EAAE,CAAC,mCAAm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switchbot</title><meta name="description" content="Documentation for node-switchbot"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">node-switchbot</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">Advertising</a></li></ul><h1>Class Advertising</h1></div><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><p>Represents the advertising data parser for SwitchBot devices.</p>
2
- </div><div class="tsd-comment tsd-typography"></div></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/04b493f7840876d2c966bacaaa479c771442eb42/src/device.ts#L969">src/device.ts:969</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h5 class="tsd-index-heading uppercase">Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
2
+ </div><div class="tsd-comment tsd-typography"></div></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/06709876ab1bb4adc244507863f1b25b786b87f2/src/device.ts#L969">src/device.ts:969</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h5 class="tsd-index-heading uppercase">Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
3
3
  </div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="#parse" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>parse</span></a>
4
4
  <a href="#parseservicedata" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>parse<wbr/>Service<wbr/>Data</span></a>
5
- </div></section></div></details></section></section><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Constructors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h2>Constructors</h2></summary><section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="constructor"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="constructoradvertising"><span class="tsd-signature-keyword">new</span> <span class="tsd-kind-constructor-signature">Advertising</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="" class="tsd-signature-type tsd-kind-class">Advertising</a><a href="#constructoradvertising" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><h4 class="tsd-returns-title">Returns <a href="" class="tsd-signature-type tsd-kind-class">Advertising</a></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/04b493f7840876d2c966bacaaa479c771442eb42/src/device.ts#L970">src/device.ts:970</a></li></ul></aside></div></li></ul></section></section></details><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h2>Methods</h2></summary><section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="parse"><code class="tsd-tag">Static</code><span>parse</span><a href="#parse" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="parse-1"><span class="tsd-kind-call-signature">parse</span><span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">peripheral</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Peripheral</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">emitLog</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">level</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="../interfaces/ad.html" class="tsd-signature-type tsd-kind-interface">ad</a><span class="tsd-signature-symbol">&gt;</span><a href="#parse-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Parses the advertisement data coming from SwitchBot device.</p>
5
+ </div></section></div></details></section></section><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Constructors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h2>Constructors</h2></summary><section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="constructor"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="constructoradvertising"><span class="tsd-signature-keyword">new</span> <span class="tsd-kind-constructor-signature">Advertising</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="" class="tsd-signature-type tsd-kind-class">Advertising</a><a href="#constructoradvertising" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><h4 class="tsd-returns-title">Returns <a href="" class="tsd-signature-type tsd-kind-class">Advertising</a></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/06709876ab1bb4adc244507863f1b25b786b87f2/src/device.ts#L970">src/device.ts:970</a></li></ul></aside></div></li></ul></section></section></details><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h2>Methods</h2></summary><section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="parse"><code class="tsd-tag">Static</code><span>parse</span><a href="#parse" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="parse-1"><span class="tsd-kind-call-signature">parse</span><span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">peripheral</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Peripheral</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">emitLog</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">level</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="../interfaces/ad.html" class="tsd-signature-type tsd-kind-interface">ad</a><span class="tsd-signature-symbol">&gt;</span><a href="#parse-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Parses the advertisement data coming from SwitchBot device.</p>
6
6
  <p>This function processes advertising packets received from SwitchBot devices
7
7
  and extracts relevant information based on the device type.</p>
8
8
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">peripheral</span>: <span class="tsd-signature-type">Peripheral</span></span><div class="tsd-comment tsd-typography"><p>The peripheral device object from noble.</p>
@@ -10,7 +10,7 @@ and extracts relevant information based on the device type.</p>
10
10
  </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="../interfaces/ad.html" class="tsd-signature-type tsd-kind-interface">ad</a><span class="tsd-signature-symbol">&gt;</span></h4><ul>
11
11
  <li>An object containing parsed data specific to the SwitchBot device type, or <code>null</code> if the device is not recognized.</li>
12
12
  </ul>
13
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/04b493f7840876d2c966bacaaa479c771442eb42/src/device.ts#L982">src/device.ts:982</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="parseservicedata"><code class="tsd-tag">Static</code><span>parse<wbr/>Service<wbr/>Data</span><a href="#parseservicedata" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="parseservicedata-1"><span class="tsd-kind-call-signature">parseServiceData</span><span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">model</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">serviceData</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">manufacturerData</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">emitLog</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">level</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><a href="#parseservicedata-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Parses the service data based on the device model.</p>
13
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/06709876ab1bb4adc244507863f1b25b786b87f2/src/device.ts#L982">src/device.ts:982</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="parseservicedata"><code class="tsd-tag">Static</code><span>parse<wbr/>Service<wbr/>Data</span><a href="#parseservicedata" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="parseservicedata-1"><span class="tsd-kind-call-signature">parseServiceData</span><span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">model</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">serviceData</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">manufacturerData</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">emitLog</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">level</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><a href="#parseservicedata-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Parses the service data based on the device model.</p>
14
14
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">model</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>The device model.</p>
15
15
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">serviceData</span>: <span class="tsd-signature-type">Buffer</span></span><div class="tsd-comment tsd-typography"><p>The service data buffer.</p>
16
16
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">manufacturerData</span>: <span class="tsd-signature-type">Buffer</span></span><div class="tsd-comment tsd-typography"><p>The manufacturer data buffer.</p>
@@ -18,4 +18,4 @@ and extracts relevant information based on the device type.</p>
18
18
  </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h4><ul>
19
19
  <li>The parsed service data.</li>
20
20
  </ul>
21
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/04b493f7840876d2c966bacaaa479c771442eb42/src/device.ts#L1042">src/device.ts:1042</a></li></ul></aside></div></li></ul></section></section></details></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>On This Page</h3></summary><div class="tsd-accordion-details"><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Constructors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Constructors</summary><div><a href="#constructor"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a></div></details><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Methods</summary><div><a href="#parse"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>parse</span></a><a href="#parseservicedata"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>parse<wbr/>Service<wbr/>Data</span></a></div></details></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">node-switchbot</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
21
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/06709876ab1bb4adc244507863f1b25b786b87f2/src/device.ts#L1048">src/device.ts:1048</a></li></ul></aside></div></li></ul></section></section></details></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>On This Page</h3></summary><div class="tsd-accordion-details"><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Constructors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Constructors</summary><div><a href="#constructor"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a></div></details><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Methods</summary><div><a href="#parse"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>parse</span></a><a href="#parseservicedata"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>parse<wbr/>Service<wbr/>Data</span></a></div></details></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">node-switchbot</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>ErrorUtils | node-switchbot</title><meta name="description" content="Documentation for node-switchbot"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">node-switchbot</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">ErrorUtils</a></li></ul><h1>Class ErrorUtils</h1></div><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><p>Enhanced error handling utilities.</p>
2
- </div><div class="tsd-comment tsd-typography"></div></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/04b493f7840876d2c966bacaaa479c771442eb42/src/device.ts#L506">src/device.ts:506</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h5 class="tsd-index-heading uppercase">Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
2
+ </div><div class="tsd-comment tsd-typography"></div></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/06709876ab1bb4adc244507863f1b25b786b87f2/src/device.ts#L506">src/device.ts:506</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h5 class="tsd-index-heading uppercase">Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
3
3
  </div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="#createcommanderror" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr/>Command<wbr/>Error</span></a>
4
4
  <a href="#createconnectionerror" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr/>Connection<wbr/>Error</span></a>
5
5
  <a href="#createtimeouterror" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr/>Timeout<wbr/>Error</span></a>
@@ -9,17 +9,17 @@
9
9
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">deviceId</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>The device ID</p>
10
10
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">cause</span>: <span class="tsd-signature-type">Error</span></span><div class="tsd-comment tsd-typography"><p>The underlying cause</p>
11
11
  </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Error</span></h4><p>A descriptive command error</p>
12
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/04b493f7840876d2c966bacaaa479c771442eb42/src/device.ts#L535">src/device.ts:535</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="createconnectionerror"><code class="tsd-tag">Static</code><span>create<wbr/>Connection<wbr/>Error</span><a href="#createconnectionerror" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="createconnectionerror-1"><span class="tsd-kind-call-signature">createConnectionError</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">deviceId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">cause</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Error</span><a href="#createconnectionerror-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Creates a connection error with context.</p>
12
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/06709876ab1bb4adc244507863f1b25b786b87f2/src/device.ts#L535">src/device.ts:535</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="createconnectionerror"><code class="tsd-tag">Static</code><span>create<wbr/>Connection<wbr/>Error</span><a href="#createconnectionerror" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="createconnectionerror-1"><span class="tsd-kind-call-signature">createConnectionError</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">deviceId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">cause</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Error</span><a href="#createconnectionerror-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Creates a connection error with context.</p>
13
13
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">deviceId</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>The device ID that failed to connect</p>
14
14
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">cause</span>: <span class="tsd-signature-type">Error</span></span><div class="tsd-comment tsd-typography"><p>The underlying cause of the connection failure</p>
15
15
  </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Error</span></h4><p>A descriptive connection error</p>
16
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/04b493f7840876d2c966bacaaa479c771442eb42/src/device.ts#L523">src/device.ts:523</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="createtimeouterror"><code class="tsd-tag">Static</code><span>create<wbr/>Timeout<wbr/>Error</span><a href="#createtimeouterror" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="createtimeouterror-1"><span class="tsd-kind-call-signature">createTimeoutError</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">operation</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">timeoutMs</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Error</span><a href="#createtimeouterror-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Creates a timeout error with context.</p>
16
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/06709876ab1bb4adc244507863f1b25b786b87f2/src/device.ts#L523">src/device.ts:523</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="createtimeouterror"><code class="tsd-tag">Static</code><span>create<wbr/>Timeout<wbr/>Error</span><a href="#createtimeouterror" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="createtimeouterror-1"><span class="tsd-kind-call-signature">createTimeoutError</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">operation</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">timeoutMs</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Error</span><a href="#createtimeouterror-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Creates a timeout error with context.</p>
17
17
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">operation</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>The operation that timed out</p>
18
18
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">timeoutMs</span>: <span class="tsd-signature-type">number</span></span><div class="tsd-comment tsd-typography"><p>The timeout duration in milliseconds</p>
19
19
  </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Error</span></h4><p>A descriptive timeout error</p>
20
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/04b493f7840876d2c966bacaaa479c771442eb42/src/device.ts#L513">src/device.ts:513</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="withtimeout"><code class="tsd-tag">Static</code><span>with<wbr/>Timeout</span><a href="#withtimeout" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="withtimeout-1"><span class="tsd-kind-call-signature">withTimeout</span><span class="tsd-signature-symbol">&lt;</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#withtimeoutt">T</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">operation</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#withtimeoutt">T</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">timeoutMs</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">operationName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#withtimeoutt">T</a><span class="tsd-signature-symbol">&gt;</span><a href="#withtimeout-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Wraps an async operation with timeout and enhanced error handling.</p>
20
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/06709876ab1bb4adc244507863f1b25b786b87f2/src/device.ts#L513">src/device.ts:513</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="withtimeout"><code class="tsd-tag">Static</code><span>with<wbr/>Timeout</span><a href="#withtimeout" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="withtimeout-1"><span class="tsd-kind-call-signature">withTimeout</span><span class="tsd-signature-symbol">&lt;</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#withtimeoutt">T</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">operation</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#withtimeoutt">T</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">timeoutMs</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">operationName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#withtimeoutt">T</a><span class="tsd-signature-symbol">&gt;</span><a href="#withtimeout-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Wraps an async operation with timeout and enhanced error handling.</p>
21
21
  </div><section class="tsd-panel"><h4>Type Parameters</h4><ul class="tsd-type-parameter-list"><li><span id="withtimeoutt"><span class="tsd-kind-type-parameter">T</span></span></li></ul></section><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">operation</span>: <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#withtimeoutt">T</a><span class="tsd-signature-symbol">&gt;</span></span><div class="tsd-comment tsd-typography"><p>The async operation to wrap</p>
22
22
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">timeoutMs</span>: <span class="tsd-signature-type">number</span></span><div class="tsd-comment tsd-typography"><p>Timeout in milliseconds</p>
23
23
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">operationName</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>Name of the operation for error messages</p>
24
24
  </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#withtimeoutt">T</a><span class="tsd-signature-symbol">&gt;</span></h4><p>Promise that resolves with the operation result or rejects with timeout</p>
25
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/04b493f7840876d2c966bacaaa479c771442eb42/src/device.ts#L547">src/device.ts:547</a></li></ul></aside></div></li></ul></section></section></details></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>On This Page</h3></summary><div class="tsd-accordion-details"><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Constructors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Constructors</summary><div><a href="#constructor"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a></div></details><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Methods</summary><div><a href="#createcommanderror"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr/>Command<wbr/>Error</span></a><a href="#createconnectionerror"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr/>Connection<wbr/>Error</span></a><a href="#createtimeouterror"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr/>Timeout<wbr/>Error</span></a><a href="#withtimeout"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Timeout</span></a></div></details></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">node-switchbot</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
25
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/06709876ab1bb4adc244507863f1b25b786b87f2/src/device.ts#L547">src/device.ts:547</a></li></ul></aside></div></li></ul></section></section></details></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>On This Page</h3></summary><div class="tsd-accordion-details"><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Constructors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Constructors</summary><div><a href="#constructor"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a></div></details><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Methods</summary><div><a href="#createcommanderror"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr/>Command<wbr/>Error</span></a><a href="#createconnectionerror"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr/>Connection<wbr/>Error</span></a><a href="#createtimeouterror"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr/>Timeout<wbr/>Error</span></a><a href="#withtimeout"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>with<wbr/>Timeout</span></a></div></details></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">node-switchbot</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>