node-switchbot 2.5.0-beta.8 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (406) hide show
  1. package/.github/workflows/beta-release.yml +25 -2
  2. package/.github/workflows/release.yml +13 -0
  3. package/BLE.md +1144 -0
  4. package/CHANGELOG.md +14 -0
  5. package/OpenAPI.md +185 -0
  6. package/README.md +20 -1189
  7. package/branding/Node_x_SwitchBot.svg +9 -0
  8. package/branding/icon.png +0 -0
  9. package/branding/switchbot.png +0 -0
  10. package/dist/advertising.d.ts +3 -3
  11. package/dist/advertising.d.ts.map +1 -1
  12. package/dist/advertising.js +26 -26
  13. package/dist/advertising.js.map +1 -1
  14. package/dist/device/woblindtilt.d.ts +19 -50
  15. package/dist/device/woblindtilt.d.ts.map +1 -1
  16. package/dist/device/woblindtilt.js +41 -100
  17. package/dist/device/woblindtilt.js.map +1 -1
  18. package/dist/device/wobulb.d.ts +41 -15
  19. package/dist/device/wobulb.d.ts.map +1 -1
  20. package/dist/device/wobulb.js +72 -128
  21. package/dist/device/wobulb.js.map +1 -1
  22. package/dist/device/woceilinglight.d.ts +47 -21
  23. package/dist/device/woceilinglight.d.ts.map +1 -1
  24. package/dist/device/woceilinglight.js +96 -171
  25. package/dist/device/woceilinglight.js.map +1 -1
  26. package/dist/device/wocontact.d.ts +11 -1
  27. package/dist/device/wocontact.d.ts.map +1 -1
  28. package/dist/device/wocontact.js +23 -22
  29. package/dist/device/wocontact.js.map +1 -1
  30. package/dist/device/wocurtain.d.ts +39 -1
  31. package/dist/device/wocurtain.d.ts.map +1 -1
  32. package/dist/device/wocurtain.js +69 -103
  33. package/dist/device/wocurtain.js.map +1 -1
  34. package/dist/device/wohand.d.ts +37 -2
  35. package/dist/device/wohand.d.ts.map +1 -1
  36. package/dist/device/wohand.js +55 -89
  37. package/dist/device/wohand.js.map +1 -1
  38. package/dist/device/wohub2.d.ts +11 -1
  39. package/dist/device/wohub2.d.ts.map +1 -1
  40. package/dist/device/wohub2.js +21 -29
  41. package/dist/device/wohub2.js.map +1 -1
  42. package/dist/device/wohumi.d.ts +37 -2
  43. package/dist/device/wohumi.d.ts.map +1 -1
  44. package/dist/device/wohumi.js +52 -83
  45. package/dist/device/wohumi.js.map +1 -1
  46. package/dist/device/woiosensorth.d.ts +12 -1
  47. package/dist/device/woiosensorth.d.ts.map +1 -1
  48. package/dist/device/woiosensorth.js +25 -29
  49. package/dist/device/woiosensorth.js.map +1 -1
  50. package/dist/device/woplugmini.d.ts +45 -12
  51. package/dist/device/woplugmini.d.ts.map +1 -1
  52. package/dist/device/woplugmini.js +71 -77
  53. package/dist/device/woplugmini.js.map +1 -1
  54. package/dist/device/wopresence.d.ts +11 -1
  55. package/dist/device/wopresence.d.ts.map +1 -1
  56. package/dist/device/wopresence.js +21 -27
  57. package/dist/device/wopresence.js.map +1 -1
  58. package/dist/device/wosensorth.d.ts +18 -2
  59. package/dist/device/wosensorth.d.ts.map +1 -1
  60. package/dist/device/wosensorth.js +34 -50
  61. package/dist/device/wosensorth.js.map +1 -1
  62. package/dist/device/wosmartlock.d.ts +63 -13
  63. package/dist/device/wosmartlock.d.ts.map +1 -1
  64. package/dist/device/wosmartlock.js +114 -195
  65. package/dist/device/wosmartlock.js.map +1 -1
  66. package/dist/device/wosmartlockpro.d.ts +16 -12
  67. package/dist/device/wosmartlockpro.d.ts.map +1 -1
  68. package/dist/device/wosmartlockpro.js +34 -29
  69. package/dist/device/wosmartlockpro.js.map +1 -1
  70. package/dist/device/wostrip.d.ts +4 -3
  71. package/dist/device/wostrip.d.ts.map +1 -1
  72. package/dist/device/wostrip.js +5 -4
  73. package/dist/device/wostrip.js.map +1 -1
  74. package/dist/device.d.ts +13 -5
  75. package/dist/device.d.ts.map +1 -1
  76. package/dist/device.js +13 -2
  77. package/dist/device.js.map +1 -1
  78. package/dist/index.d.ts +9 -1
  79. package/dist/index.d.ts.map +1 -1
  80. package/dist/index.js +9 -1
  81. package/dist/index.js.map +1 -1
  82. package/dist/parameter-checker.d.ts +10 -13
  83. package/dist/parameter-checker.d.ts.map +1 -1
  84. package/dist/parameter-checker.js +16 -1
  85. package/dist/parameter-checker.js.map +1 -1
  86. package/dist/settings.d.ts +41 -0
  87. package/dist/settings.d.ts.map +1 -1
  88. package/dist/settings.js +43 -0
  89. package/dist/settings.js.map +1 -1
  90. package/dist/{switchbot.d.ts → switchbot-ble.d.ts} +13 -8
  91. package/dist/switchbot-ble.d.ts.map +1 -0
  92. package/dist/switchbot-ble.js +427 -0
  93. package/dist/switchbot-ble.js.map +1 -0
  94. package/dist/switchbot-openapi.d.ts +131 -0
  95. package/dist/switchbot-openapi.d.ts.map +1 -0
  96. package/dist/switchbot-openapi.js +311 -0
  97. package/dist/switchbot-openapi.js.map +1 -0
  98. package/dist/test/advertising.test.d.ts +2 -0
  99. package/dist/test/advertising.test.d.ts.map +1 -0
  100. package/dist/test/advertising.test.js +99 -0
  101. package/dist/test/advertising.test.js.map +1 -0
  102. package/dist/test/device.test.d.ts +2 -0
  103. package/dist/test/device.test.d.ts.map +1 -0
  104. package/dist/test/device.test.js +38 -0
  105. package/dist/test/device.test.js.map +1 -0
  106. package/dist/test/index.test.d.ts +2 -0
  107. package/dist/test/index.test.d.ts.map +1 -0
  108. package/dist/test/index.test.js +35 -0
  109. package/dist/test/index.test.js.map +1 -0
  110. package/dist/test/parameter-checker.test.d.ts +2 -0
  111. package/dist/test/parameter-checker.test.d.ts.map +1 -0
  112. package/dist/test/parameter-checker.test.js +108 -0
  113. package/dist/test/parameter-checker.test.js.map +1 -0
  114. package/dist/test/settings.test.d.ts +2 -0
  115. package/dist/test/settings.test.d.ts.map +1 -0
  116. package/dist/test/settings.test.js +49 -0
  117. package/dist/test/settings.test.js.map +1 -0
  118. package/dist/test/switchbot-openapi.test.d.ts +2 -0
  119. package/dist/test/switchbot-openapi.test.d.ts.map +1 -0
  120. package/dist/test/switchbot-openapi.test.js +96 -0
  121. package/dist/test/switchbot-openapi.test.js.map +1 -0
  122. package/dist/test/switchbot.test.d.ts +2 -0
  123. package/dist/test/switchbot.test.d.ts.map +1 -0
  124. package/dist/test/switchbot.test.js +106 -0
  125. package/dist/test/switchbot.test.js.map +1 -0
  126. package/dist/test/woblindtilt.test.d.ts.map +1 -0
  127. package/dist/test/woblindtilt.test.js +76 -0
  128. package/dist/test/woblindtilt.test.js.map +1 -0
  129. package/dist/{device → test}/wobulb.test.d.ts.map +1 -1
  130. package/dist/test/wobulb.test.js +95 -0
  131. package/dist/test/wobulb.test.js.map +1 -0
  132. package/dist/test/woceilinglight.test.d.ts.map +1 -0
  133. package/dist/test/woceilinglight.test.js +81 -0
  134. package/dist/test/woceilinglight.test.js.map +1 -0
  135. package/dist/test/wocontact.test.d.ts.map +1 -0
  136. package/dist/test/wocontact.test.js +65 -0
  137. package/dist/test/wocontact.test.js.map +1 -0
  138. package/dist/test/wocurtain.test.d.ts.map +1 -0
  139. package/dist/test/wocurtain.test.js +75 -0
  140. package/dist/test/wocurtain.test.js.map +1 -0
  141. package/dist/{device → test}/wohand.test.d.ts.map +1 -1
  142. package/dist/test/wohand.test.js +56 -0
  143. package/dist/test/wohand.test.js.map +1 -0
  144. package/dist/test/wohub2.test.d.ts +2 -0
  145. package/dist/test/wohub2.test.d.ts.map +1 -0
  146. package/dist/test/wohub2.test.js +80 -0
  147. package/dist/test/wohub2.test.js.map +1 -0
  148. package/dist/{device → test}/wohumi.test.d.ts.map +1 -1
  149. package/dist/test/wohumi.test.js +82 -0
  150. package/dist/test/wohumi.test.js.map +1 -0
  151. package/dist/test/woiosensorth.test.d.ts.map +1 -0
  152. package/dist/test/woiosensorth.test.js +40 -0
  153. package/dist/test/woiosensorth.test.js.map +1 -0
  154. package/dist/test/woplugmini.test.d.ts.map +1 -0
  155. package/dist/test/woplugmini.test.js +114 -0
  156. package/dist/test/woplugmini.test.js.map +1 -0
  157. package/dist/test/wopresence.test.d.ts.map +1 -0
  158. package/dist/test/wopresence.test.js +68 -0
  159. package/dist/test/wopresence.test.js.map +1 -0
  160. package/dist/test/wosensorth.test.d.ts.map +1 -0
  161. package/dist/test/wosensorth.test.js +51 -0
  162. package/dist/test/wosensorth.test.js.map +1 -0
  163. package/dist/test/wosmartlock.test.d.ts.map +1 -0
  164. package/dist/test/wosmartlock.test.js +151 -0
  165. package/dist/test/wosmartlock.test.js.map +1 -0
  166. package/dist/test/wosmartlockpro.test.d.ts.map +1 -0
  167. package/dist/test/wosmartlockpro.test.js +151 -0
  168. package/dist/test/wosmartlockpro.test.js.map +1 -0
  169. package/dist/{device → test}/wostrip.test.d.ts.map +1 -1
  170. package/dist/test/wostrip.test.js +102 -0
  171. package/dist/test/wostrip.test.js.map +1 -0
  172. package/dist/types/bledevicestatus.d.ts +4 -12
  173. package/dist/types/bledevicestatus.d.ts.map +1 -1
  174. package/dist/types/devicelist.d.ts.map +1 -1
  175. package/dist/types/devicelist.js +0 -4
  176. package/dist/types/devicelist.js.map +1 -1
  177. package/dist/types/devicepush.d.ts +13 -0
  178. package/dist/types/devicepush.d.ts.map +1 -0
  179. package/dist/types/devicepush.js +2 -0
  180. package/dist/types/devicepush.js.map +1 -0
  181. package/dist/types/deviceresponse.d.ts +2 -3
  182. package/dist/types/deviceresponse.d.ts.map +1 -1
  183. package/dist/types/devicestatus.d.ts.map +1 -1
  184. package/dist/types/devicewebhookstatus.d.ts +32 -0
  185. package/dist/types/devicewebhookstatus.d.ts.map +1 -1
  186. package/dist/types/irdevicelist.d.ts.map +1 -1
  187. package/dist/types/types.d.ts +23 -0
  188. package/dist/types/types.d.ts.map +1 -1
  189. package/dist/types/types.js +14 -0
  190. package/dist/types/types.js.map +1 -1
  191. package/docs/assets/highlight.css +12 -47
  192. package/docs/assets/main.js +1 -1
  193. package/docs/assets/navigation.js +1 -1
  194. package/docs/assets/search.js +1 -1
  195. package/docs/classes/SwitchBotBLE.html +64 -0
  196. package/docs/classes/SwitchBotOpenAPI.html +47 -0
  197. package/docs/classes/SwitchbotDevice.html +32 -33
  198. package/docs/enums/LogLevel.html +10 -0
  199. package/docs/enums/SwitchBotBLEModel.html +2 -2
  200. package/docs/enums/SwitchBotBLEModelFriendlyName.html +2 -2
  201. package/docs/enums/SwitchBotBLEModelName.html +2 -2
  202. package/docs/enums/SwitchBotModel.html +2 -2
  203. package/docs/hierarchy.html +1 -0
  204. package/docs/index.html +16 -993
  205. package/docs/interfaces/Ad-1.html +5 -0
  206. package/docs/interfaces/AdvertisementData.html +3 -0
  207. package/docs/interfaces/Chars.html +4 -0
  208. package/docs/interfaces/ErrorObject.html +3 -0
  209. package/docs/interfaces/Params.html +6 -0
  210. package/docs/interfaces/ServiceData.html +2 -0
  211. package/docs/interfaces/SwitchBotBLEDevice.html +21 -0
  212. package/docs/interfaces/WebhookDetail.html +6 -0
  213. package/docs/interfaces/ad.html +5 -0
  214. package/docs/interfaces/body.html +3 -0
  215. package/docs/interfaces/bodyChange.html +4 -0
  216. package/docs/interfaces/deleteWebhookResponse.html +4 -0
  217. package/docs/interfaces/device.html +7 -0
  218. package/docs/interfaces/deviceList.html +2 -0
  219. package/docs/interfaces/deviceStatus.html +7 -0
  220. package/docs/interfaces/deviceStatusRequest.html +4 -0
  221. package/docs/interfaces/deviceWebhook.html +4 -0
  222. package/docs/interfaces/deviceWebhookContext.html +4 -0
  223. package/docs/interfaces/devices.html +4 -0
  224. package/docs/interfaces/infraredRemoteList.html +2 -0
  225. package/docs/interfaces/irdevice.html +5 -0
  226. package/docs/interfaces/pushResponse.html +4 -0
  227. package/docs/interfaces/queryWebhookResponse.html +4 -0
  228. package/docs/interfaces/setupWebhookResponse.html +4 -0
  229. package/docs/interfaces/switchbot.html +3 -0
  230. package/docs/interfaces/updateWebhookResponse.html +4 -0
  231. package/docs/interfaces/webhookRequest.html +4 -0
  232. package/docs/media/BLE.md +1109 -0
  233. package/docs/media/OpenAPI.md +185 -0
  234. package/docs/modules.html +136 -3
  235. package/docs/types/MacAddress.html +1 -0
  236. package/docs/types/batteryCirculatorFan.html +1 -0
  237. package/docs/types/batteryCirculatorFanServiceData.html +1 -0
  238. package/docs/types/batteryCirculatorFanStatus.html +1 -0
  239. package/docs/types/batteryCirculatorFanWebhookContext.html +1 -0
  240. package/docs/types/blindTilt.html +1 -0
  241. package/docs/types/blindTiltServiceData.html +1 -0
  242. package/docs/types/blindTiltStatus.html +1 -0
  243. package/docs/types/blindTiltWebhookContext.html +1 -0
  244. package/docs/types/bot.html +1 -0
  245. package/docs/types/botServiceData.html +1 -0
  246. package/docs/types/botStatus.html +1 -0
  247. package/docs/types/botWebhookContext.html +1 -0
  248. package/docs/types/ceilingLight.html +1 -0
  249. package/docs/types/ceilingLightPro.html +1 -0
  250. package/docs/types/ceilingLightProServiceData.html +1 -0
  251. package/docs/types/ceilingLightProStatus.html +1 -0
  252. package/docs/types/ceilingLightProWebhookContext.html +1 -0
  253. package/docs/types/ceilingLightServiceData.html +1 -0
  254. package/docs/types/ceilingLightStatus.html +1 -0
  255. package/docs/types/ceilingLightWebhookContext.html +1 -0
  256. package/docs/types/colorBulb.html +1 -0
  257. package/docs/types/colorBulbServiceData.html +1 -0
  258. package/docs/types/colorBulbStatus.html +1 -0
  259. package/docs/types/colorBulbWebhookContext.html +1 -0
  260. package/docs/types/contactSensor.html +1 -0
  261. package/docs/types/contactSensorServiceData.html +1 -0
  262. package/docs/types/contactSensorStatus.html +1 -0
  263. package/docs/types/contactSensorWebhookContext.html +1 -0
  264. package/docs/types/curtain.html +1 -0
  265. package/docs/types/curtain3.html +1 -0
  266. package/docs/types/curtain3ServiceData.html +1 -0
  267. package/docs/types/curtain3WebhookContext.html +1 -0
  268. package/docs/types/curtainServiceData.html +1 -0
  269. package/docs/types/curtainStatus.html +1 -0
  270. package/docs/types/curtainWebhookContext.html +1 -0
  271. package/docs/types/floorCleaningRobotS10.html +1 -0
  272. package/docs/types/floorCleaningRobotS10Status.html +1 -0
  273. package/docs/types/floorCleaningRobotS10WebhookContext.html +1 -0
  274. package/docs/types/hub2.html +1 -0
  275. package/docs/types/hub2ServiceData.html +1 -0
  276. package/docs/types/hub2Status.html +1 -0
  277. package/docs/types/hub2WebhookContext.html +1 -0
  278. package/docs/types/humidifier.html +1 -0
  279. package/docs/types/humidifierServiceData.html +1 -0
  280. package/docs/types/humidifierStatus.html +1 -0
  281. package/docs/types/humidifierWebhookContext.html +1 -0
  282. package/docs/types/indoorCam.html +1 -0
  283. package/docs/types/indoorCameraWebhookContext.html +1 -0
  284. package/docs/types/keypad.html +1 -0
  285. package/docs/types/keypadTouch.html +1 -0
  286. package/docs/types/keypadTouchWebhookContext.html +1 -0
  287. package/docs/types/keypadWebhookContext.html +1 -0
  288. package/docs/types/lock.html +1 -0
  289. package/docs/types/lockPro.html +1 -0
  290. package/docs/types/lockProServiceData.html +1 -0
  291. package/docs/types/lockProStatus.html +1 -0
  292. package/docs/types/lockProWebhookContext.html +1 -0
  293. package/docs/types/lockServiceData.html +1 -0
  294. package/docs/types/lockStatus.html +1 -0
  295. package/docs/types/lockWebhookContext.html +1 -0
  296. package/docs/types/meter.html +1 -0
  297. package/docs/types/meterPlus.html +1 -0
  298. package/docs/types/meterPlusServiceData.html +1 -0
  299. package/docs/types/meterPlusStatus.html +1 -0
  300. package/docs/types/meterPlusWebhookContext.html +1 -0
  301. package/docs/types/meterServiceData.html +1 -0
  302. package/docs/types/meterStatus.html +1 -0
  303. package/docs/types/meterWebhookContext.html +1 -0
  304. package/docs/types/motionSensor.html +1 -0
  305. package/docs/types/motionSensorServiceData.html +1 -0
  306. package/docs/types/motionSensorStatus.html +1 -0
  307. package/docs/types/motionSensorWebhookContext.html +1 -0
  308. package/docs/types/outdoorMeter.html +1 -0
  309. package/docs/types/outdoorMeterServiceData.html +1 -0
  310. package/docs/types/outdoorMeterStatus.html +1 -0
  311. package/docs/types/outdoorMeterWebhookContext.html +1 -0
  312. package/docs/types/panTiltCamWebhookContext.html +1 -0
  313. package/docs/types/pantiltCam.html +1 -0
  314. package/docs/types/pantiltCam2k.html +1 -0
  315. package/docs/types/plug.html +1 -0
  316. package/docs/types/plugMini.html +1 -0
  317. package/docs/types/plugMiniJPServiceData.html +1 -0
  318. package/docs/types/plugMiniJPWebhookContext.html +1 -0
  319. package/docs/types/plugMiniStatus.html +1 -0
  320. package/docs/types/plugMiniUSServiceData.html +1 -0
  321. package/docs/types/plugMiniUSWebhookContext.html +1 -0
  322. package/docs/types/plugStatus.html +1 -0
  323. package/docs/types/plugWebhookContext.html +1 -0
  324. package/docs/types/remote.html +1 -0
  325. package/docs/types/robotVacuumCleanerS1.html +1 -0
  326. package/docs/types/robotVacuumCleanerS1Plus.html +1 -0
  327. package/docs/types/robotVacuumCleanerS1PlusStatus.html +1 -0
  328. package/docs/types/robotVacuumCleanerS1PlusWebhookContext.html +1 -0
  329. package/docs/types/robotVacuumCleanerS1Status.html +1 -0
  330. package/docs/types/robotVacuumCleanerS1WebhookContext.html +1 -0
  331. package/docs/types/robotVacuumCleanerServiceData.html +1 -0
  332. package/docs/types/stripLight.html +1 -0
  333. package/docs/types/stripLightServiceData.html +1 -0
  334. package/docs/types/stripLightStatus.html +1 -0
  335. package/docs/types/stripLightWebhookContext.html +1 -0
  336. package/docs/types/waterLeakDetector.html +1 -0
  337. package/docs/types/waterLeakDetectorServiceData.html +1 -0
  338. package/docs/types/waterLeakDetectorStatus.html +1 -0
  339. package/docs/types/waterLeakDetectorWebhookContext.html +1 -0
  340. package/package.json +13 -11
  341. package/.github/npm-version-script.cjs +0 -81
  342. package/dist/device/woblindtilt.test.d.ts.map +0 -1
  343. package/dist/device/woblindtilt.test.js +0 -26
  344. package/dist/device/woblindtilt.test.js.map +0 -1
  345. package/dist/device/wobulb.test.js +0 -52
  346. package/dist/device/wobulb.test.js.map +0 -1
  347. package/dist/device/woceilinglight.test.d.ts.map +0 -1
  348. package/dist/device/woceilinglight.test.js +0 -63
  349. package/dist/device/woceilinglight.test.js.map +0 -1
  350. package/dist/device/wocontact.test.d.ts.map +0 -1
  351. package/dist/device/wocontact.test.js +0 -34
  352. package/dist/device/wocontact.test.js.map +0 -1
  353. package/dist/device/wocurtain.test.d.ts.map +0 -1
  354. package/dist/device/wocurtain.test.js +0 -33
  355. package/dist/device/wocurtain.test.js.map +0 -1
  356. package/dist/device/wohand.test.js +0 -62
  357. package/dist/device/wohand.test.js.map +0 -1
  358. package/dist/device/wohand2.test.d.ts +0 -2
  359. package/dist/device/wohand2.test.d.ts.map +0 -1
  360. package/dist/device/wohand2.test.js +0 -50
  361. package/dist/device/wohand2.test.js.map +0 -1
  362. package/dist/device/wohumi.test.js +0 -61
  363. package/dist/device/wohumi.test.js.map +0 -1
  364. package/dist/device/woiosensorth.test.d.ts.map +0 -1
  365. package/dist/device/woiosensorth.test.js +0 -39
  366. package/dist/device/woiosensorth.test.js.map +0 -1
  367. package/dist/device/woplugmini.test.d.ts.map +0 -1
  368. package/dist/device/woplugmini.test.js +0 -91
  369. package/dist/device/woplugmini.test.js.map +0 -1
  370. package/dist/device/wopresence.test.d.ts.map +0 -1
  371. package/dist/device/wopresence.test.js +0 -42
  372. package/dist/device/wopresence.test.js.map +0 -1
  373. package/dist/device/wosensorth.test.d.ts.map +0 -1
  374. package/dist/device/wosensorth.test.js +0 -59
  375. package/dist/device/wosensorth.test.js.map +0 -1
  376. package/dist/device/wosmartlock.test.d.ts.map +0 -1
  377. package/dist/device/wosmartlock.test.js +0 -84
  378. package/dist/device/wosmartlock.test.js.map +0 -1
  379. package/dist/device/wosmartlockpro.test.d.ts.map +0 -1
  380. package/dist/device/wosmartlockpro.test.js +0 -124
  381. package/dist/device/wosmartlockpro.test.js.map +0 -1
  382. package/dist/device/wostrip.test.js +0 -115
  383. package/dist/device/wostrip.test.js.map +0 -1
  384. package/dist/switchbot.d.ts.map +0 -1
  385. package/dist/switchbot.js +0 -259
  386. package/dist/switchbot.js.map +0 -1
  387. package/dist/types/pushbody.d.ts +0 -6
  388. package/dist/types/pushbody.d.ts.map +0 -1
  389. package/dist/types/pushbody.js +0 -2
  390. package/dist/types/pushbody.js.map +0 -1
  391. package/docs/classes/SwitchBot.html +0 -16
  392. package/docs/types/SwitchBotBLEDevice.html +0 -1
  393. /package/dist/{device → test}/woblindtilt.test.d.ts +0 -0
  394. /package/dist/{device → test}/wobulb.test.d.ts +0 -0
  395. /package/dist/{device → test}/woceilinglight.test.d.ts +0 -0
  396. /package/dist/{device → test}/wocontact.test.d.ts +0 -0
  397. /package/dist/{device → test}/wocurtain.test.d.ts +0 -0
  398. /package/dist/{device → test}/wohand.test.d.ts +0 -0
  399. /package/dist/{device → test}/wohumi.test.d.ts +0 -0
  400. /package/dist/{device → test}/woiosensorth.test.d.ts +0 -0
  401. /package/dist/{device → test}/woplugmini.test.d.ts +0 -0
  402. /package/dist/{device → test}/wopresence.test.d.ts +0 -0
  403. /package/dist/{device → test}/wosensorth.test.d.ts +0 -0
  404. /package/dist/{device → test}/wosmartlock.test.d.ts +0 -0
  405. /package/dist/{device → test}/wosmartlockpro.test.d.ts +0 -0
  406. /package/dist/{device → test}/wostrip.test.d.ts +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"switchbot.d.ts","sourceRoot":"","sources":["../src/switchbot.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAElD,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAA;AAG1C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAmB7C;;GAEG;AACH,qBAAa,SAAS;IACpB,OAAO,CAAC,KAAK,CAAe;IAC5B,KAAK,EAAG,OAAO,KAAK,CAAA;IACpB,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAA;IAC9C,eAAe,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,KAAK,IAAI,CAAA;IAClC,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,0BAA0B,SAAO;IACjC,yBAAyB,EAAE,MAAM,EAAE,CAAK;IAExC;;;;;OAKG;gBACS,MAAM,CAAC,EAAE,MAAM;IAI3B;;;;;;OAMG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI1C;;;;;OAKG;IACG,QAAQ,CAAC,MAAM,GAAE,MAAW,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IA2D/D;;;;OAIG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAsB5B;;;;;;;OAOG;IACG,eAAe,CAAC,UAAU,EAAE,KAAK,CAAC,UAAU,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;IAgC/G;;;;;;;OAOG;IACH,iBAAiB,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO;IAoB7D;;;;;OAKG;IACG,SAAS,CAAC,MAAM,GAAE,MAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAiCnD;;;;OAIG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAS/B;;;;;OAKG;IACG,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAexC;AAED,OAAO,EAAE,eAAe,EAAE,CAAA"}
package/dist/switchbot.js DELETED
@@ -1,259 +0,0 @@
1
- import * as Noble from '@stoprocent/noble';
2
- import { Advertising } from './advertising.js';
3
- import { SwitchbotDevice } from './device.js';
4
- import { WoBlindTilt } from './device/woblindtilt.js';
5
- import { WoBulb } from './device/wobulb.js';
6
- import { WoCeilingLight } from './device/woceilinglight.js';
7
- import { WoContact } from './device/wocontact.js';
8
- import { WoCurtain } from './device/wocurtain.js';
9
- import { WoHand } from './device/wohand.js';
10
- import { WoHub2 } from './device/wohub2.js';
11
- import { WoHumi } from './device/wohumi.js';
12
- import { WoIOSensorTH } from './device/woiosensorth.js';
13
- import { WoPlugMini } from './device/woplugmini.js';
14
- import { WoPresence } from './device/wopresence.js';
15
- import { WoSensorTH } from './device/wosensorth.js';
16
- import { WoSmartLock } from './device/wosmartlock.js';
17
- import { WoSmartLockPro } from './device/wosmartlockpro.js';
18
- import { WoStrip } from './device/wostrip.js';
19
- import { parameterChecker } from './parameter-checker.js';
20
- import { SwitchBotBLEModel } from './types/types.js';
21
- /**
22
- * SwitchBot class to interact with SwitchBot devices.
23
- */
24
- export class SwitchBot {
25
- ready;
26
- noble;
27
- ondiscover;
28
- onadvertisement;
29
- onlog;
30
- DEFAULT_DISCOVERY_DURATION = 5000;
31
- PRIMARY_SERVICE_UUID_LIST = [];
32
- /**
33
- * Constructor
34
- *
35
- * @param {Params} [params] - Optional parameters
36
- * @param {typeof Noble} [params.noble] - Optional noble instance
37
- */
38
- constructor(params) {
39
- this.ready = this.init(params);
40
- }
41
- /**
42
- * Initializes the noble object.
43
- *
44
- * @param {Params} [params] - Optional parameters
45
- * @param {typeof Noble} [params.noble] - Optional noble instance
46
- * @returns {Promise<void>} - Resolves when initialization is complete
47
- */
48
- async init(params) {
49
- this.noble = params?.noble ?? Noble;
50
- }
51
- /**
52
- * Discover SwitchBot devices based on the provided parameters.
53
- *
54
- * @param {Params} params - The parameters for discovery.
55
- * @returns {Promise<SwitchbotDevice[]>} - A promise that resolves with a list of discovered devices.
56
- */
57
- async discover(params = {}) {
58
- const valid = parameterChecker.check(params, {
59
- duration: { required: false, type: 'integer', min: 1, max: 60000 },
60
- model: { required: false, type: 'string', enum: Object.values(SwitchBotBLEModel) },
61
- id: { required: false, type: 'string', min: 12, max: 17 },
62
- quick: { required: false, type: 'boolean' },
63
- }, false);
64
- if (!valid) {
65
- throw new Error(parameterChecker.error.message);
66
- }
67
- const { duration = this.DEFAULT_DISCOVERY_DURATION, model = '', id = '', quick = false } = params;
68
- await this._init();
69
- if (!this.noble) {
70
- throw new Error('noble failed to initialize');
71
- }
72
- const peripherals = {};
73
- let timer;
74
- const finishDiscovery = () => {
75
- clearTimeout(timer);
76
- this.noble.removeAllListeners('discover');
77
- this.noble.stopScanning();
78
- return Object.values(peripherals);
79
- };
80
- return new Promise((resolve, reject) => {
81
- try {
82
- this.noble.on('discover', async (peripheral) => {
83
- const device = await this.getDeviceObject(peripheral, id, model);
84
- if (device) {
85
- peripherals[device.id] = device;
86
- if (this.ondiscover) {
87
- this.ondiscover(device);
88
- }
89
- if (quick) {
90
- resolve(finishDiscovery());
91
- }
92
- }
93
- });
94
- this.noble.startScanningAsync(this.PRIMARY_SERVICE_UUID_LIST, false)
95
- .then(() => {
96
- timer = setTimeout(() => {
97
- resolve(finishDiscovery());
98
- }, duration);
99
- })
100
- .catch((error) => {
101
- reject(new Error(error.message));
102
- });
103
- }
104
- catch (error) {
105
- reject(new Error(String(error)));
106
- }
107
- });
108
- }
109
- /**
110
- * Initializes the noble object and waits for it to be powered on.
111
- *
112
- * @returns {Promise<void>} - Resolves when the noble object is powered on.
113
- */
114
- async _init() {
115
- await this.ready;
116
- if (this.noble._state === 'poweredOn') {
117
- return;
118
- }
119
- return new Promise((resolve, reject) => {
120
- this.noble.once('stateChange', (state) => {
121
- if (state === 'poweredOn') {
122
- resolve();
123
- }
124
- else if (['unsupported', 'unauthorized', 'poweredOff'].includes(state)) {
125
- reject(new Error(`Failed to initialize the Noble object: ${state}`));
126
- }
127
- else if (['resetting', 'unknown'].includes(state)) {
128
- reject(new Error(`Adapter is not ready: ${state}`));
129
- }
130
- else {
131
- reject(new Error(`Unknown state: ${state}`));
132
- }
133
- });
134
- });
135
- }
136
- /**
137
- * Gets the device object based on the peripheral, id, and model.
138
- *
139
- * @param {Noble.Peripheral} peripheral - The peripheral object.
140
- * @param {string} id - The device id.
141
- * @param {string} model - The device model.
142
- * @returns {Promise<SwitchbotDevice | null>} - The device object or null.
143
- */
144
- async getDeviceObject(peripheral, id, model) {
145
- const ad = await Advertising.parse(peripheral, this.onlog);
146
- if (!ad || !this.filterAdvertising(ad, id, model)) {
147
- return null;
148
- }
149
- const modelMapping = {
150
- [SwitchBotBLEModel.Bot]: WoHand,
151
- [SwitchBotBLEModel.Curtain]: WoCurtain,
152
- [SwitchBotBLEModel.Curtain3]: WoCurtain,
153
- [SwitchBotBLEModel.Humidifier]: WoHumi,
154
- [SwitchBotBLEModel.Meter]: WoSensorTH,
155
- [SwitchBotBLEModel.MeterPlus]: WoSensorTH,
156
- [SwitchBotBLEModel.Hub2]: WoHub2,
157
- [SwitchBotBLEModel.OutdoorMeter]: WoIOSensorTH,
158
- [SwitchBotBLEModel.MotionSensor]: WoPresence,
159
- [SwitchBotBLEModel.ContactSensor]: WoContact,
160
- [SwitchBotBLEModel.ColorBulb]: WoBulb,
161
- [SwitchBotBLEModel.CeilingLight]: WoCeilingLight,
162
- [SwitchBotBLEModel.CeilingLightPro]: WoCeilingLight,
163
- [SwitchBotBLEModel.StripLight]: WoStrip,
164
- [SwitchBotBLEModel.PlugMiniUS]: WoPlugMini,
165
- [SwitchBotBLEModel.PlugMiniJP]: WoPlugMini,
166
- [SwitchBotBLEModel.Lock]: WoSmartLock,
167
- [SwitchBotBLEModel.LockPro]: WoSmartLockPro,
168
- [SwitchBotBLEModel.BlindTilt]: WoBlindTilt,
169
- };
170
- const DeviceClass = ad?.serviceData?.model ? modelMapping[ad.serviceData.model] : SwitchbotDevice;
171
- return new DeviceClass(peripheral, this.noble);
172
- }
173
- /**
174
- * Filters advertising data based on id and model.
175
- *
176
- * @param {Ad} ad - The advertising data.
177
- * @param {string} id - The device id.
178
- * @param {string} model - The device model.
179
- * @returns {boolean} - True if the advertising data matches the id and model, false otherwise.
180
- */
181
- filterAdvertising(ad, id, model) {
182
- if (!ad) {
183
- return false;
184
- }
185
- if (id) {
186
- const normalizedId = id.toLowerCase().replace(/:/g, '');
187
- const adId = ad.address.toLowerCase().replace(/[^a-z0-9]/g, '');
188
- if (adId !== normalizedId) {
189
- return false;
190
- }
191
- }
192
- if (model && ad.serviceData.model !== model) {
193
- return false;
194
- }
195
- return true;
196
- }
197
- /**
198
- * Starts scanning for SwitchBot devices.
199
- *
200
- * @param {Params} [params] - Optional parameters.
201
- * @returns {Promise<void>} - Resolves when scanning starts successfully.
202
- */
203
- async startScan(params = {}) {
204
- const valid = parameterChecker.check(params, {
205
- model: {
206
- required: false,
207
- type: 'string',
208
- enum: Object.values(SwitchBotBLEModel),
209
- },
210
- id: { required: false, type: 'string', min: 12, max: 17 },
211
- }, false);
212
- if (!valid) {
213
- throw new Error(parameterChecker.error.message);
214
- }
215
- await this._init();
216
- if (!this.noble) {
217
- throw new Error('noble object failed to initialize');
218
- }
219
- const { model = '', id = '' } = params;
220
- this.noble.on('discover', async (peripheral) => {
221
- const ad = await Advertising.parse(peripheral, this.onlog);
222
- if (ad && this.filterAdvertising(ad, id, model)) {
223
- if (this.onadvertisement && typeof this.onadvertisement === 'function') {
224
- this.onadvertisement(ad);
225
- }
226
- }
227
- });
228
- await this.noble.startScanningAsync(this.PRIMARY_SERVICE_UUID_LIST, true);
229
- }
230
- /**
231
- * Stops scanning for SwitchBot devices.
232
- *
233
- * @returns {Promise<void>} - Resolves when scanning stops successfully.
234
- */
235
- async stopScan() {
236
- if (!this.noble) {
237
- return;
238
- }
239
- this.noble.removeAllListeners('discover');
240
- await this.noble.stopScanningAsync();
241
- }
242
- /**
243
- * Waits for the specified time.
244
- *
245
- * @param {number} msec - The time to wait in milliseconds.
246
- * @returns {Promise<void>} - Resolves after the specified time.
247
- */
248
- async wait(msec) {
249
- const valid = parameterChecker.check({ msec }, {
250
- msec: { required: true, type: 'integer', min: 0 },
251
- }, true);
252
- if (!valid) {
253
- throw new Error(parameterChecker.error.message);
254
- }
255
- return new Promise(resolve => setTimeout(resolve, msec));
256
- }
257
- }
258
- export { SwitchbotDevice };
259
- //# sourceMappingURL=switchbot.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"switchbot.js","sourceRoot":"","sources":["../src/switchbot.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAA;AAE1C,O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ACrB,MAAM,KAAK,GAAG,gBAAgB,CAAC,KAAK,CAClC,EAAE,IAAI,EAAE,EACR;YACE,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,EAAE;SAClD,EACD,IAAI,CACL,CAAA;QAED,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,KAAM,CAAC,OAAO,CAAC,CAAA;QAClD,CAAC;QAED,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAA;IAC1D,CAAC;CACF;AAED,OAAO,EAAE,eAAe,EAAE,CAAA"}
@@ -1,6 +0,0 @@
1
- export interface body {
2
- command: string;
3
- parameter: string;
4
- commandType: string;
5
- }
6
- //# sourceMappingURL=pushbody.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pushbody.d.ts","sourceRoot":"","sources":["../../src/types/pushbody.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,IAAI;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;CACpB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=pushbody.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pushbody.js","sourceRoot":"","sources":["../../src/types/pushbody.ts"],"names":[],"mappings":""}
@@ -1,16 +0,0 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>SwitchBot | 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></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">node-switchbot</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">node-switchbot</a></li><li><a href="SwitchBot.html">SwitchBot</a></li></ul><h1>Class SwitchBot</h1></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/2b46901d93385f6566b8687e027d27835027f2c6/src/switchbot.ts#L36">switchbot.ts:36</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"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> 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="SwitchBot.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
2
- </div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="SwitchBot.html#DEFAULT_DISCOVERY_DURATION" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>DEFAULT_<wbr/>DISCOVERY_<wbr/>DURATION</span></a>
3
- <a href="SwitchBot.html#PRIMARY_SERVICE_UUID_LIST" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>PRIMARY_<wbr/>SERVICE_<wbr/>UUID_<wbr/>LIST</span></a>
4
- <a href="SwitchBot.html#noble" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>noble</span></a>
5
- <a href="SwitchBot.html#onadvertisement" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>onadvertisement?</span></a>
6
- <a href="SwitchBot.html#ondiscover" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>ondiscover?</span></a>
7
- <a href="SwitchBot.html#onlog" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>onlog</span></a>
8
- </div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="SwitchBot.html#_init" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>_init</span></a>
9
- <a href="SwitchBot.html#discover" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>discover</span></a>
10
- <a href="SwitchBot.html#filterAdvertising" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>filter<wbr/>Advertising</span></a>
11
- <a href="SwitchBot.html#getDeviceObject" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Device<wbr/>Object</span></a>
12
- <a href="SwitchBot.html#init" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>init</span></a>
13
- <a href="SwitchBot.html#startScan" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>start<wbr/>Scan</span></a>
14
- <a href="SwitchBot.html#stopScan" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>stop<wbr/>Scan</span></a>
15
- <a href="SwitchBot.html#wait" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>wait</span></a>
16
- </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"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg> Constructors</h2></summary><section><section class="tsd-panel tsd-member"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="constructor.new_SwitchBot" class="tsd-anchor"></a><span class="tsd-kind-constructor-signature">new <wbr/>Switch<wbr/>Bot</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">params</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="SwitchBot.html" class="tsd-signature-type tsd-kind-class">SwitchBot</a><a href="#constructor.new_SwitchBot" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">params</span>: <span class="tsd-signature-type">Params</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <a href="SwitchBot.html" class="tsd-signature-type tsd-kind-class">SwitchBot</a></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/2b46901d93385f6566b8687e027d27835027f2c6/src/switchbot.ts#L56">switchbot.ts:56</a></li></ul></aside></li></ul></section></section></details><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Properties"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg> Properties</h2></summary><section><section class="tsd-panel tsd-member"><a id="DEFAULT_DISCOVERY_DURATION" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>DEFAULT_<wbr/>DISCOVERY_<wbr/>DURATION</span><a href="#DEFAULT_DISCOVERY_DURATION" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">DEFAULT_<wbr/>DISCOVERY_<wbr/>DURATION</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 5000</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/2b46901d93385f6566b8687e027d27835027f2c6/src/switchbot.ts#L42">switchbot.ts:42</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="PRIMARY_SERVICE_UUID_LIST" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>PRIMARY_<wbr/>SERVICE_<wbr/>UUID_<wbr/>LIST</span><a href="#PRIMARY_SERVICE_UUID_LIST" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">PRIMARY_<wbr/>SERVICE_<wbr/>UUID_<wbr/>LIST</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">never</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/2b46901d93385f6566b8687e027d27835027f2c6/src/switchbot.ts#L43">switchbot.ts:43</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="noble" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>noble</span><a href="#noble" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">noble</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">__module</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/2b46901d93385f6566b8687e027d27835027f2c6/src/switchbot.ts#L38">switchbot.ts:38</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="onadvertisement" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag">Optional</code><span>onadvertisement</span><a href="#onadvertisement" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">onadvertisement</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">ad</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Ad</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></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/2b46901d93385f6566b8687e027d27835027f2c6/src/switchbot.ts#L40">switchbot.ts:40</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="ondiscover" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag">Optional</code><span>ondiscover</span><a href="#ondiscover" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">ondiscover</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">device</span><span class="tsd-signature-symbol">: </span><a href="SwitchbotDevice.html" class="tsd-signature-type tsd-kind-class">SwitchbotDevice</a><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></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/2b46901d93385f6566b8687e027d27835027f2c6/src/switchbot.ts#L39">switchbot.ts:39</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="onlog" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>onlog</span><a href="#onlog" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">onlog</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</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></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/2b46901d93385f6566b8687e027d27835027f2c6/src/switchbot.ts#L41">switchbot.ts:41</a></li></ul></aside></section></section></details><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Methods"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg> Methods</h2></summary><section><section class="tsd-panel tsd-member"><a id="_init" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>_init</span><a href="#_init" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="_init._init-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">_init</span><span class="tsd-signature-symbol">(</span><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">void</span><span class="tsd-signature-symbol">&gt;</span><a href="#_init._init-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><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">void</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/2b46901d93385f6566b8687e027d27835027f2c6/src/switchbot.ts#L231">switchbot.ts:231</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="discover" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>discover</span><a href="#discover" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="discover.discover-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">discover</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">params</span><span class="tsd-signature-symbol">?</span><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">unknown</span><span class="tsd-signature-symbol">&gt;</span><a href="#discover.discover-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">params</span>: <span class="tsd-signature-type">Params</span><span class="tsd-signature-symbol"> = {}</span></span></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">unknown</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/2b46901d93385f6566b8687e027d27835027f2c6/src/switchbot.ts#L112">switchbot.ts:112</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="filterAdvertising" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>filter<wbr/>Advertising</span><a href="#filterAdvertising" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="filterAdvertising.filterAdvertising-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">filter<wbr/>Advertising</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">ad</span>, <span class="tsd-kind-parameter">id</span>, <span class="tsd-kind-parameter">model</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#filterAdvertising.filterAdvertising-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">ad</span>: <span class="tsd-signature-type">Ad</span></span></li><li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">model</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/2b46901d93385f6566b8687e027d27835027f2c6/src/switchbot.ts#L340">switchbot.ts:340</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="getDeviceObject" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Device<wbr/>Object</span><a href="#getDeviceObject" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="getDeviceObject.getDeviceObject-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Device<wbr/>Object</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">peripheral</span>, <span class="tsd-kind-parameter">id</span>, <span class="tsd-kind-parameter">model</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="SwitchbotDevice.html" class="tsd-signature-type tsd-kind-class">SwitchbotDevice</a><a href="#getDeviceObject.getDeviceObject-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><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></li><li><span><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">model</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="SwitchbotDevice.html" class="tsd-signature-type tsd-kind-class">SwitchbotDevice</a></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/2b46901d93385f6566b8687e027d27835027f2c6/src/switchbot.ts#L271">switchbot.ts:271</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="init" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>init</span><a href="#init" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="init.init-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">init</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">params</span><span class="tsd-signature-symbol">?</span><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">void</span><span class="tsd-signature-symbol">&gt;</span><a href="#init.init-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">params</span>: <span class="tsd-signature-type">Params</span></span></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">void</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/2b46901d93385f6566b8687e027d27835027f2c6/src/switchbot.ts#L61">switchbot.ts:61</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="startScan" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>start<wbr/>Scan</span><a href="#startScan" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="startScan.startScan-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">start<wbr/>Scan</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">params</span><span class="tsd-signature-symbol">?</span><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">void</span><span class="tsd-signature-symbol">&gt;</span><a href="#startScan.startScan-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">params</span>: <span class="tsd-signature-type">Params</span><span class="tsd-signature-symbol"> = {}</span></span></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">void</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/2b46901d93385f6566b8687e027d27835027f2c6/src/switchbot.ts#L420">switchbot.ts:420</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="stopScan" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>stop<wbr/>Scan</span><a href="#stopScan" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="stopScan.stopScan-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">stop<wbr/>Scan</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#stopScan.stopScan-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/2b46901d93385f6566b8687e027d27835027f2c6/src/switchbot.ts#L515">switchbot.ts:515</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="wait" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>wait</span><a href="#wait" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="wait.wait-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">wait</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">msec</span><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">unknown</span><span class="tsd-signature-symbol">&gt;</span><a href="#wait.wait-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">msec</span>: <span class="tsd-signature-type">number</span></span></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">unknown</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/2b46901d93385f6566b8687e027d27835027f2c6/src/switchbot.ts#L535">switchbot.ts:535</a></li></ul></aside></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"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>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"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>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="tsd-otp-Constructors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Constructors</summary><div><a href="#constructor" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><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="tsd-otp-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Properties</summary><div><a href="#DEFAULT_DISCOVERY_DURATION" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>DEFAULT_<wbr/>DISCOVERY_<wbr/>DURATION</span></a><a href="#PRIMARY_SERVICE_UUID_LIST" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>PRIMARY_<wbr/>SERVICE_<wbr/>UUID_<wbr/>LIST</span></a><a href="#noble" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>noble</span></a><a href="#onadvertisement" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>onadvertisement</span></a><a href="#ondiscover" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>ondiscover</span></a><a href="#onlog" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>onlog</span></a></div></details><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="tsd-otp-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Methods</summary><div><a href="#_init" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>_init</span></a><a href="#discover" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>discover</span></a><a href="#filterAdvertising" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>filter<wbr/>Advertising</span></a><a href="#getDeviceObject" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Device<wbr/>Object</span></a><a href="#init" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>init</span></a><a href="#startScan" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>start<wbr/>Scan</span></a><a href="#stopScan" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>stop<wbr/>Scan</span></a><a href="#wait" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>wait</span></a></div></details></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>node-switchbot</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
@@ -1 +0,0 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>SwitchBotBLEDevice | 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></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">node-switchbot</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">node-switchbot</a></li><li><a href="SwitchBotBLEDevice.html">SwitchBotBLEDevice</a></li></ul><h1>Type Alias SwitchBotBLEDevice</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">Switch<wbr/>BotBLEDevice</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span><br/><span>    </span><span class="tsd-kind-property">BlindTilt</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span>        </span><span class="tsd-kind-property">BLEModel</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModel.html#BlindTilt" class="tsd-signature-type tsd-kind-enum-member">BlindTilt</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">BLEModelName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelName.html#BlindTilt" class="tsd-signature-type tsd-kind-enum-member">BlindTilt</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">Model</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotModel.html#BlindTilt" class="tsd-signature-type tsd-kind-enum-member">BlindTilt</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">ModelFriendlyName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelFriendlyName.html#BlindTilt" class="tsd-signature-type tsd-kind-enum-member">BlindTilt</a><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">Bot</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span>        </span><span class="tsd-kind-property">BLEModel</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModel.html#Bot" class="tsd-signature-type tsd-kind-enum-member">Bot</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">BLEModelName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelName.html#Bot" class="tsd-signature-type tsd-kind-enum-member">Bot</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">Model</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotModel.html#Bot" class="tsd-signature-type tsd-kind-enum-member">Bot</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">ModelFriendlyName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelFriendlyName.html#Bot" class="tsd-signature-type tsd-kind-enum-member">Bot</a><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">CeilingLight</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span>        </span><span class="tsd-kind-property">BLEModel</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModel.html#CeilingLight" class="tsd-signature-type tsd-kind-enum-member">CeilingLight</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">BLEModelName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelName.html#Unknown" class="tsd-signature-type tsd-kind-enum-member">Unknown</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">Model</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotModel.html#CeilingLight" class="tsd-signature-type tsd-kind-enum-member">CeilingLight</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">ModelFriendlyName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelFriendlyName.html#Unknown" class="tsd-signature-type tsd-kind-enum-member">Unknown</a><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">CeilingLightPro</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span>        </span><span class="tsd-kind-property">BLEModel</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModel.html#CeilingLightPro" class="tsd-signature-type tsd-kind-enum-member">CeilingLightPro</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">BLEModelName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelName.html#CeilingLightPro" class="tsd-signature-type tsd-kind-enum-member">CeilingLightPro</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">Model</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotModel.html#CeilingLightPro" class="tsd-signature-type tsd-kind-enum-member">CeilingLightPro</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">ModelFriendlyName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelFriendlyName.html#CeilingLightPro" class="tsd-signature-type tsd-kind-enum-member">CeilingLightPro</a><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">ColorBulb</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span>        </span><span class="tsd-kind-property">BLEModel</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModel.html#ColorBulb" class="tsd-signature-type tsd-kind-enum-member">ColorBulb</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">BLEModelName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelName.html#ColorBulb" class="tsd-signature-type tsd-kind-enum-member">ColorBulb</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">Model</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotModel.html#ColorBulb" class="tsd-signature-type tsd-kind-enum-member">ColorBulb</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">ModelFriendlyName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelFriendlyName.html#ColorBulb" class="tsd-signature-type tsd-kind-enum-member">ColorBulb</a><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">ContactSensor</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span>        </span><span class="tsd-kind-property">BLEModel</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModel.html#ContactSensor" class="tsd-signature-type tsd-kind-enum-member">ContactSensor</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">BLEModelName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelName.html#ContactSensor" class="tsd-signature-type tsd-kind-enum-member">ContactSensor</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">Model</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotModel.html#ContactSensor" class="tsd-signature-type tsd-kind-enum-member">ContactSensor</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">ModelFriendlyName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelFriendlyName.html#ContactSensor" class="tsd-signature-type tsd-kind-enum-member">ContactSensor</a><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">Curtain</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span>        </span><span class="tsd-kind-property">BLEModel</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModel.html#Curtain" class="tsd-signature-type tsd-kind-enum-member">Curtain</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">BLEModelName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelName.html#Curtain" class="tsd-signature-type tsd-kind-enum-member">Curtain</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">Model</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotModel.html#Curtain" class="tsd-signature-type tsd-kind-enum-member">Curtain</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">ModelFriendlyName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelFriendlyName.html#Curtain" class="tsd-signature-type tsd-kind-enum-member">Curtain</a><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">Curtain3</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span>        </span><span class="tsd-kind-property">BLEModel</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModel.html#Curtain3" class="tsd-signature-type tsd-kind-enum-member">Curtain3</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">BLEModelName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelName.html#Curtain3" class="tsd-signature-type tsd-kind-enum-member">Curtain3</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">Model</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotModel.html#Curtain3" class="tsd-signature-type tsd-kind-enum-member">Curtain3</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">ModelFriendlyName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelFriendlyName.html#Curtain3" class="tsd-signature-type tsd-kind-enum-member">Curtain3</a><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">Hub2</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span>        </span><span class="tsd-kind-property">BLEModel</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModel.html#Hub2" class="tsd-signature-type tsd-kind-enum-member">Hub2</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">BLEModelName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelName.html#Hub2" class="tsd-signature-type tsd-kind-enum-member">Hub2</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">Model</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotModel.html#Hub2" class="tsd-signature-type tsd-kind-enum-member">Hub2</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">ModelFriendlyName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelFriendlyName.html#Hub2" class="tsd-signature-type tsd-kind-enum-member">Hub2</a><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">Humidifier</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span>        </span><span class="tsd-kind-property">BLEModel</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModel.html#Humidifier" class="tsd-signature-type tsd-kind-enum-member">Humidifier</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">BLEModelName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelName.html#Humidifier" class="tsd-signature-type tsd-kind-enum-member">Humidifier</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">Model</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotModel.html#Humidifier" class="tsd-signature-type tsd-kind-enum-member">Humidifier</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">ModelFriendlyName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelFriendlyName.html#Humidifier" class="tsd-signature-type tsd-kind-enum-member">Humidifier</a><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">Lock</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span>        </span><span class="tsd-kind-property">BLEModel</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModel.html#Lock" class="tsd-signature-type tsd-kind-enum-member">Lock</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">BLEModelName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelName.html#Lock" class="tsd-signature-type tsd-kind-enum-member">Lock</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">Model</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotModel.html#Lock" class="tsd-signature-type tsd-kind-enum-member">Lock</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">ModelFriendlyName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelFriendlyName.html#Lock" class="tsd-signature-type tsd-kind-enum-member">Lock</a><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">LockPro</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span>        </span><span class="tsd-kind-property">BLEModel</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModel.html#LockPro" class="tsd-signature-type tsd-kind-enum-member">LockPro</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">BLEModelName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelName.html#LockPro" class="tsd-signature-type tsd-kind-enum-member">LockPro</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">Model</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotModel.html#LockPro" class="tsd-signature-type tsd-kind-enum-member">LockPro</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">ModelFriendlyName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelFriendlyName.html#LockPro" class="tsd-signature-type tsd-kind-enum-member">LockPro</a><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">Meter</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span>        </span><span class="tsd-kind-property">BLEModel</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModel.html#Meter" class="tsd-signature-type tsd-kind-enum-member">Meter</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">BLEModelName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelName.html#Meter" class="tsd-signature-type tsd-kind-enum-member">Meter</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">Model</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotModel.html#Meter" class="tsd-signature-type tsd-kind-enum-member">Meter</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">ModelFriendlyName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelFriendlyName.html#Meter" class="tsd-signature-type tsd-kind-enum-member">Meter</a><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">MeterPlus</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span>        </span><span class="tsd-kind-property">BLEModel</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModel.html#MeterPlus" class="tsd-signature-type tsd-kind-enum-member">MeterPlus</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">BLEModelName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelName.html#MeterPlus" class="tsd-signature-type tsd-kind-enum-member">MeterPlus</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">Model</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotModel.html#MeterPlusJP" class="tsd-signature-type tsd-kind-enum-member">MeterPlusJP</a><span class="tsd-signature-symbol"> | </span><a href="../enums/SwitchBotModel.html#MeterPlusUS" class="tsd-signature-type tsd-kind-enum-member">MeterPlusUS</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">ModelFriendlyName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelFriendlyName.html#Meter" class="tsd-signature-type tsd-kind-enum-member">Meter</a><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">MotionSensor</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span>        </span><span class="tsd-kind-property">BLEModel</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModel.html#MotionSensor" class="tsd-signature-type tsd-kind-enum-member">MotionSensor</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">BLEModelName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelName.html#MotionSensor" class="tsd-signature-type tsd-kind-enum-member">MotionSensor</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">Model</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotModel.html#MotionSensor" class="tsd-signature-type tsd-kind-enum-member">MotionSensor</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">ModelFriendlyName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelFriendlyName.html#MotionSensor" class="tsd-signature-type tsd-kind-enum-member">MotionSensor</a><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">OutdoorMeter</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span>        </span><span class="tsd-kind-property">BLEModel</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModel.html#OutdoorMeter" class="tsd-signature-type tsd-kind-enum-member">OutdoorMeter</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">BLEModelName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelName.html#OutdoorMeter" class="tsd-signature-type tsd-kind-enum-member">OutdoorMeter</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">Model</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotModel.html#OutdoorMeter" class="tsd-signature-type tsd-kind-enum-member">OutdoorMeter</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">ModelFriendlyName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelFriendlyName.html#OutdoorMeter" class="tsd-signature-type tsd-kind-enum-member">OutdoorMeter</a><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">PlugMiniJP</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span>        </span><span class="tsd-kind-property">BLEModel</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModel.html#PlugMiniJP" class="tsd-signature-type tsd-kind-enum-member">PlugMiniJP</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">BLEModelName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelName.html#PlugMini" class="tsd-signature-type tsd-kind-enum-member">PlugMini</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">Model</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotModel.html#PlugMiniJP" class="tsd-signature-type tsd-kind-enum-member">PlugMiniJP</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">ModelFriendlyName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelFriendlyName.html#PlugMini" class="tsd-signature-type tsd-kind-enum-member">PlugMini</a><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">PlugMiniUS</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span>        </span><span class="tsd-kind-property">BLEModel</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModel.html#PlugMiniUS" class="tsd-signature-type tsd-kind-enum-member">PlugMiniUS</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">BLEModelName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelName.html#PlugMini" class="tsd-signature-type tsd-kind-enum-member">PlugMini</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">Model</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotModel.html#PlugMiniUS" class="tsd-signature-type tsd-kind-enum-member">PlugMiniUS</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">ModelFriendlyName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelFriendlyName.html#PlugMini" class="tsd-signature-type tsd-kind-enum-member">PlugMini</a><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">StripLight</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span>        </span><span class="tsd-kind-property">BLEModel</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModel.html#StripLight" class="tsd-signature-type tsd-kind-enum-member">StripLight</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">BLEModelName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelName.html#StripLight" class="tsd-signature-type tsd-kind-enum-member">StripLight</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">Model</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotModel.html#StripLight" class="tsd-signature-type tsd-kind-enum-member">StripLight</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">ModelFriendlyName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelFriendlyName.html#StripLight" class="tsd-signature-type tsd-kind-enum-member">StripLight</a><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">Unknown</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span>        </span><span class="tsd-kind-property">BLEModel</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModel.html#Unknown" class="tsd-signature-type tsd-kind-enum-member">Unknown</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">BLEModelName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelName.html#Unknown" class="tsd-signature-type tsd-kind-enum-member">Unknown</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">Model</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotModel.html#Unknown" class="tsd-signature-type tsd-kind-enum-member">Unknown</a><span class="tsd-signature-symbol">; </span><br/><span>        </span><span class="tsd-kind-property">ModelFriendlyName</span><span class="tsd-signature-symbol">: </span><a href="../enums/SwitchBotBLEModelFriendlyName.html#Unknown" class="tsd-signature-type tsd-kind-enum-member">Unknown</a><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/node-switchbot/blob/2b46901d93385f6566b8687e027d27835027f2c6/src/types.ts#L5">types.ts:5</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>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></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>node-switchbot</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes