node-switchbot 3.6.5 → 3.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +542 -0
- package/dist/device.d.ts +53 -4
- package/dist/device.d.ts.map +1 -1
- package/dist/device.js +113 -4
- package/dist/device.js.map +1 -1
- package/dist/device.test.js +82 -1
- package/dist/device.test.js.map +1 -1
- package/dist/switchbot-ble.d.ts.map +1 -1
- package/dist/switchbot-ble.js +2 -1
- package/dist/switchbot-ble.js.map +1 -1
- package/dist/types/ble.d.ts +6 -1
- package/dist/types/ble.d.ts.map +1 -1
- package/dist/types/openapi.d.ts +3 -0
- package/dist/types/openapi.d.ts.map +1 -1
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/Advertising.html +4 -4
- package/docs/classes/ErrorUtils.html +5 -5
- package/docs/classes/ParameterChecker.html +10 -10
- package/docs/classes/SwitchBotBLE.html +8 -8
- package/docs/classes/SwitchBotOpenAPI.html +7 -7
- package/docs/classes/SwitchbotDevice.html +12 -12
- package/docs/classes/ValidationUtils.html +8 -8
- package/docs/classes/WoAirPurifier.html +18 -18
- package/docs/classes/WoAirPurifierTable.html +18 -18
- package/docs/classes/WoBlindTilt.html +21 -21
- package/docs/classes/WoBulb.html +19 -19
- package/docs/classes/WoCeilingLight.html +22 -22
- package/docs/classes/WoContact.html +13 -13
- package/docs/classes/WoCurtain.html +18 -18
- package/docs/classes/WoHand.html +18 -18
- package/docs/classes/WoHub2.html +13 -13
- package/docs/classes/WoHub3.html +13 -13
- package/docs/classes/WoHumi.html +20 -20
- package/docs/classes/WoHumi2.html +20 -20
- package/docs/classes/WoIOSensorTH.html +13 -13
- package/docs/classes/WoKeypad.html +13 -13
- package/docs/classes/WoLeak.html +13 -13
- package/docs/classes/WoPlugMiniEU.html +84 -0
- package/docs/classes/WoPlugMiniJP.html +19 -19
- package/docs/classes/WoPlugMiniUS.html +19 -19
- package/docs/classes/WoPresence.html +14 -14
- package/docs/classes/WoRelaySwitch1.html +15 -15
- package/docs/classes/WoRelaySwitch1PM.html +15 -15
- package/docs/classes/WoRemote.html +13 -13
- package/docs/classes/WoSensorTH.html +12 -12
- package/docs/classes/WoSensorTHPlus.html +12 -12
- package/docs/classes/WoSensorTHPro.html +12 -12
- package/docs/classes/WoSensorTHProCO2.html +12 -12
- package/docs/classes/WoSmartLock.html +23 -23
- package/docs/classes/WoSmartLockPro.html +23 -23
- package/docs/classes/WoSmartLockUltra.html +23 -23
- package/docs/classes/WoStrip.html +20 -20
- package/docs/enums/LogLevel.html +2 -2
- package/docs/enums/SwitchBotBLEModel.html +3 -2
- package/docs/enums/SwitchBotBLEModelFriendlyName.html +2 -2
- package/docs/enums/SwitchBotBLEModelName.html +2 -2
- package/docs/enums/SwitchBotModel.html +3 -2
- package/docs/functions/updateBaseURL.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/interfaces/AdvertisementData.html +2 -2
- package/docs/interfaces/Chars.html +2 -2
- package/docs/interfaces/ColorLightServiceDataBase.html +2 -2
- package/docs/interfaces/ErrorObject.html +2 -2
- package/docs/interfaces/LockBaseServiceData.html +2 -2
- package/docs/interfaces/NobleTypes.html +2 -2
- package/docs/interfaces/Params.html +2 -2
- package/docs/interfaces/PlugMiniServiceDataBase.html +2 -2
- package/docs/interfaces/Rule.html +2 -2
- package/docs/interfaces/ServiceData.html +2 -2
- package/docs/interfaces/SwitchBotBLEDevice.html +3 -2
- package/docs/interfaces/SwitchBotScanner.html +3 -3
- package/docs/interfaces/TemperatureServiceDataBase.html +2 -2
- package/docs/interfaces/WebhookDetail.html +2 -2
- package/docs/interfaces/ad.html +2 -2
- package/docs/interfaces/body.html +2 -2
- package/docs/interfaces/bodyChange.html +2 -2
- package/docs/interfaces/deleteWebhookResponse.html +2 -2
- package/docs/interfaces/device.html +2 -2
- package/docs/interfaces/deviceList.html +2 -2
- package/docs/interfaces/deviceStatus.html +2 -2
- package/docs/interfaces/deviceStatusRequest.html +2 -2
- package/docs/interfaces/deviceWebhook.html +2 -2
- package/docs/interfaces/deviceWebhookContext.html +2 -2
- package/docs/interfaces/devices.html +2 -2
- package/docs/interfaces/infraredRemoteList.html +2 -2
- package/docs/interfaces/irdevice.html +2 -2
- package/docs/interfaces/pushRequest.html +2 -2
- package/docs/interfaces/pushResponse.html +2 -2
- package/docs/interfaces/pushResponseBody.html +2 -2
- package/docs/interfaces/queryWebhookResponse.html +2 -2
- package/docs/interfaces/setupWebhookResponse.html +2 -2
- package/docs/interfaces/updateWebhookResponse.html +2 -2
- package/docs/interfaces/webhookRequest.html +2 -2
- package/docs/modules.html +1 -1
- package/docs/types/BLEDeviceServiceData.html +1 -1
- package/docs/types/IndoorCam.html +1 -1
- package/docs/types/MacAddress.html +1 -1
- package/docs/types/airPurifier.html +1 -1
- package/docs/types/airPurifierPM25WebhookContext.html +1 -1
- package/docs/types/airPurifierServiceData.html +1 -1
- package/docs/types/airPurifierStatus.html +1 -1
- package/docs/types/airPurifierTable.html +1 -1
- package/docs/types/airPurifierTablePM25WebhookContext.html +1 -1
- package/docs/types/airPurifierTableServiceData.html +1 -1
- package/docs/types/airPurifierTableStatus.html +1 -1
- package/docs/types/airPurifierTableVOC.html +1 -1
- package/docs/types/airPurifierTableVOCStatus.html +1 -1
- package/docs/types/airPurifierTableVOCWebhookContext.html +1 -1
- package/docs/types/airPurifierTableWebhookContext.html +1 -1
- package/docs/types/airPurifierVOC.html +1 -1
- package/docs/types/airPurifierVOCStatus.html +1 -1
- package/docs/types/airPurifierVOCWebhookContext.html +1 -1
- package/docs/types/airPurifierWebhookContext.html +1 -1
- package/docs/types/batteryCirculatorFan.html +1 -1
- package/docs/types/batteryCirculatorFanServiceData.html +1 -1
- package/docs/types/batteryCirculatorFanStatus.html +1 -1
- package/docs/types/batteryCirculatorFanWebhookContext.html +1 -1
- package/docs/types/blindTilt.html +1 -1
- package/docs/types/blindTiltServiceData.html +1 -1
- package/docs/types/blindTiltStatus.html +1 -1
- package/docs/types/blindTiltWebhookContext.html +1 -1
- package/docs/types/bot.html +1 -1
- package/docs/types/botServiceData.html +1 -1
- package/docs/types/botStatus.html +1 -1
- package/docs/types/botWebhookContext.html +1 -1
- package/docs/types/ceilingLight.html +1 -1
- package/docs/types/ceilingLightPro.html +1 -1
- package/docs/types/ceilingLightProServiceData.html +1 -1
- package/docs/types/ceilingLightProStatus.html +1 -1
- package/docs/types/ceilingLightProWebhookContext.html +1 -1
- package/docs/types/ceilingLightServiceData.html +1 -1
- package/docs/types/ceilingLightStatus.html +1 -1
- package/docs/types/ceilingLightWebhookContext.html +1 -1
- package/docs/types/circulatorFanStatus.html +1 -1
- package/docs/types/circulatorFanWebhookContext.html +1 -1
- package/docs/types/colorBulb.html +1 -1
- package/docs/types/colorBulbServiceData.html +1 -1
- package/docs/types/colorBulbStatus.html +1 -1
- package/docs/types/colorBulbWebhookContext.html +1 -1
- package/docs/types/commandType.html +1 -1
- package/docs/types/contactSensor.html +1 -1
- package/docs/types/contactSensorServiceData.html +1 -1
- package/docs/types/contactSensorStatus.html +1 -1
- package/docs/types/contactSensorWebhookContext.html +1 -1
- package/docs/types/curtain.html +1 -1
- package/docs/types/curtain3.html +1 -1
- package/docs/types/curtain3ServiceData.html +1 -1
- package/docs/types/curtain3WebhookContext.html +1 -1
- package/docs/types/curtainServiceData.html +1 -1
- package/docs/types/curtainStatus.html +1 -1
- package/docs/types/curtainWebhookContext.html +1 -1
- package/docs/types/floorCleaningRobotS10.html +1 -1
- package/docs/types/floorCleaningRobotS10Status.html +1 -1
- package/docs/types/floorCleaningRobotS10WebhookContext.html +1 -1
- package/docs/types/hub2.html +1 -1
- package/docs/types/hub2ServiceData.html +1 -1
- package/docs/types/hub2Status.html +1 -1
- package/docs/types/hub2WebhookContext.html +1 -1
- package/docs/types/hub3ServiceData.html +1 -1
- package/docs/types/humidifier.html +1 -1
- package/docs/types/humidifier2ServiceData.html +1 -1
- package/docs/types/humidifier2Status.html +1 -1
- package/docs/types/humidifier2WebhookContext.html +1 -1
- package/docs/types/humidifierServiceData.html +1 -1
- package/docs/types/humidifierStatus.html +1 -1
- package/docs/types/humidifierWebhookContext.html +1 -1
- package/docs/types/indoorCameraWebhookContext.html +1 -1
- package/docs/types/keypad.html +1 -1
- package/docs/types/keypadDetectorServiceData.html +1 -1
- package/docs/types/keypadTouch.html +1 -1
- package/docs/types/keypadTouchWebhookContext.html +1 -1
- package/docs/types/keypadWebhookContext.html +1 -1
- package/docs/types/lock.html +1 -1
- package/docs/types/lockPro.html +1 -1
- package/docs/types/lockProServiceData.html +1 -1
- package/docs/types/lockProStatus.html +1 -1
- package/docs/types/lockProWebhookContext.html +1 -1
- package/docs/types/lockServiceData.html +1 -1
- package/docs/types/lockStatus.html +1 -1
- package/docs/types/lockWebhookContext.html +1 -1
- package/docs/types/meter.html +1 -1
- package/docs/types/meterPlus.html +1 -1
- package/docs/types/meterPlusServiceData.html +1 -1
- package/docs/types/meterPlusStatus.html +1 -1
- package/docs/types/meterPlusWebhookContext.html +1 -1
- package/docs/types/meterPro.html +1 -1
- package/docs/types/meterProCO2ServiceData.html +1 -1
- package/docs/types/meterProCO2Status.html +1 -1
- package/docs/types/meterProCO2WebhookContext.html +1 -1
- package/docs/types/meterProServiceData.html +1 -1
- package/docs/types/meterProStatus.html +1 -1
- package/docs/types/meterProWebhookContext.html +1 -1
- package/docs/types/meterServiceData.html +1 -1
- package/docs/types/meterStatus.html +1 -1
- package/docs/types/meterWebhookContext.html +1 -1
- package/docs/types/motionSensor.html +1 -1
- package/docs/types/motionSensorServiceData.html +1 -1
- package/docs/types/motionSensorStatus.html +1 -1
- package/docs/types/motionSensorWebhookContext.html +1 -1
- package/docs/types/onadvertisement.html +1 -1
- package/docs/types/ondiscover.html +1 -1
- package/docs/types/outdoorMeter.html +1 -1
- package/docs/types/outdoorMeterServiceData.html +1 -1
- package/docs/types/outdoorMeterStatus.html +1 -1
- package/docs/types/outdoorMeterWebhookContext.html +1 -1
- package/docs/types/panTiltCamWebhookContext.html +1 -1
- package/docs/types/pantiltCam.html +1 -1
- package/docs/types/pantiltCam2k.html +1 -1
- package/docs/types/plug.html +1 -1
- package/docs/types/plugMini.html +1 -1
- package/docs/types/plugMiniEUServiceData.html +1 -0
- package/docs/types/plugMiniEUWebhookContext.html +1 -0
- package/docs/types/plugMiniJPServiceData.html +1 -1
- package/docs/types/plugMiniJPWebhookContext.html +1 -1
- package/docs/types/plugMiniStatus.html +1 -1
- package/docs/types/plugMiniUSServiceData.html +1 -1
- package/docs/types/plugMiniUSWebhookContext.html +1 -1
- package/docs/types/plugStatus.html +1 -1
- package/docs/types/plugWebhookContext.html +1 -1
- package/docs/types/presenceSensor.html +1 -1
- package/docs/types/presenceSensorServiceData.html +1 -1
- package/docs/types/presenceSensorStatus.html +1 -1
- package/docs/types/presenceSensorWebhookContext.html +1 -1
- package/docs/types/relaySwitch1Context.html +1 -1
- package/docs/types/relaySwitch1PMContext.html +1 -1
- package/docs/types/relaySwitch1PMServiceData.html +1 -1
- package/docs/types/relaySwitch1PMStatus.html +1 -1
- package/docs/types/relaySwitch1ServiceData.html +1 -1
- package/docs/types/relaySwitch1Status.html +1 -1
- package/docs/types/remote.html +1 -1
- package/docs/types/remoteServiceData.html +1 -1
- package/docs/types/robotVacuumCleanerS1.html +1 -1
- package/docs/types/robotVacuumCleanerS1Plus.html +1 -1
- package/docs/types/robotVacuumCleanerS1PlusStatus.html +1 -1
- package/docs/types/robotVacuumCleanerS1PlusWebhookContext.html +1 -1
- package/docs/types/robotVacuumCleanerS1Status.html +1 -1
- package/docs/types/robotVacuumCleanerS1WebhookContext.html +1 -1
- package/docs/types/robotVacuumCleanerServiceData.html +1 -1
- package/docs/types/stripLight.html +1 -1
- package/docs/types/stripLightServiceData.html +1 -1
- package/docs/types/stripLightStatus.html +1 -1
- package/docs/types/stripLightWebhookContext.html +1 -1
- package/docs/types/waterLeakDetector.html +1 -1
- package/docs/types/waterLeakDetectorServiceData.html +1 -1
- package/docs/types/waterLeakDetectorStatus.html +1 -1
- package/docs/types/waterLeakDetectorWebhookContext.html +1 -1
- package/docs/variables/parameterChecker.html +1 -1
- package/docs/variables/urls.html +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,548 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/)
|
|
4
4
|
|
|
5
|
+
## [3.6.6](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.6.5...v3.6.6) (2026-02-25)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* sync package-lock.json with @stoprocent/noble@^2.3.14 ([#324](https://github.com/OpenWonderLabs/node-switchbot/issues/324)) ([0670987](https://github.com/OpenWonderLabs/node-switchbot/commit/06709876ab1bb4adc244507863f1b25b786b87f2))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* Add Plug Mini (EU) support ([#325](https://github.com/OpenWonderLabs/node-switchbot/issues/325)) ([1eb8d2e](https://github.com/OpenWonderLabs/node-switchbot/commit/1eb8d2e572e211482105c2563a736bdfabeb50be))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## [3.6.5](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.6.4...v3.6.5) (2026-02-19)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## [3.6.4](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.6.3...v3.6.4) (2026-02-18)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## [3.6.3](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.5.1...v3.6.3) (2026-02-05)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## [3.5.1](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.5.0...v3.5.1) (2025-07-25)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
# [3.5.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.4.9...v3.5.0) (2025-03-05)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## [3.4.9](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.4.8...v3.4.9) (2025-01-24)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## [3.4.8](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.4.7...v3.4.8) (2025-01-24)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
## [3.4.7](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.4.6...v3.4.7) (2025-01-24)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
## [3.4.6](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.4.5...v3.4.6) (2025-01-24)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## [3.4.5](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.4.4...v3.4.5) (2025-01-24)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
## [3.4.4](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.4.3...v3.4.4) (2025-01-24)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
## [3.4.3](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.4.2...v3.4.3) (2024-12-22)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
## [3.4.2](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.4.1...v3.4.2) (2024-12-22)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
## [3.4.1](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.4.0...v3.4.1) (2024-11-28)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
# [3.4.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.3.0...v3.4.0) (2024-11-18)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
# [3.3.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.2.1...v3.3.0) (2024-11-02)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
## [3.2.1](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.2.0...v3.2.1) (2024-10-22)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
# [3.2.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.1.1...v3.2.0) (2024-10-22)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
## [3.1.1](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.1.0...v3.1.1) (2024-10-12)
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
# [3.1.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.0.1...v3.1.0) (2024-10-12)
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
## [3.0.1](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.0.0...v3.0.1) (2024-10-05)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
# [3.0.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v2.3.0...v3.0.0) (2024-10-05)
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
# [2.3.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v2.2.0...v2.3.0) (2024-07-21)
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
# [2.2.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v2.1.1...v2.2.0) (2024-06-26)
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
## [2.1.1](https://github.com/OpenWonderLabs/node-switchbot/compare/v2.1.0...v2.1.1) (2024-05-26)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
# [2.1.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v2.0.3...v2.1.0) (2024-05-14)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
## [2.0.3](https://github.com/OpenWonderLabs/node-switchbot/compare/v2.0.2...v2.0.3) (2024-02-12)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
## [2.0.2](https://github.com/OpenWonderLabs/node-switchbot/compare/v2.0.0...v2.0.2) (2024-02-10)
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
# [2.0.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.9.1...v2.0.0) (2024-02-05)
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
## [1.9.1](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.9.0...v1.9.1) (2023-11-21)
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
# [1.9.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.8.2...v1.9.0) (2023-09-16)
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
## [1.8.2](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.8.1...v1.8.2) (2023-07-26)
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
## [1.8.1](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.8.0...v1.8.1) (2023-04-08)
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
# [1.8.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.7.3...v1.8.0) (2023-01-29)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
## [1.7.3](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.7.2...v1.7.3) (2023-01-05)
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
## [1.7.2](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.7.1...v1.7.2) (2022-12-26)
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
## [1.7.1](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.7.0...v1.7.1) (2022-12-20)
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
# [1.7.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.6.1...v1.7.0) (2022-12-08)
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
## [1.6.1](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.6.0...v1.6.1) (2022-10-19)
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
# [1.6.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.5.0...v1.6.0) (2022-10-18)
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
# [1.5.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.4.1...v1.5.0) (2022-10-07)
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
## [1.4.1](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.4.0...v1.4.1) (2022-08-27)
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
# [1.4.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.3.0...v1.4.0) (2022-08-20)
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
# [1.3.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.2.0...v1.3.0) (2022-06-25)
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
# [1.2.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.1.2...v1.2.0) (2022-03-04)
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
## [1.1.2](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.1.1...v1.1.2) (2021-11-13)
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
## [1.1.1](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.1.0...v1.1.1) (2021-11-02)
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
# [1.1.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.8...v1.1.0) (2021-10-27)
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
## [1.0.8](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.7...v1.0.8) (2021-09-30)
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
## [1.0.7](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.6...v1.0.7) (2021-09-25)
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
## [1.0.6](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.5...v1.0.6) (2021-08-29)
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
## [1.0.5](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.4...v1.0.5) (2021-08-04)
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
## [1.0.4](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.3...v1.0.4) (2021-08-04)
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
## [1.0.3](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.2...v1.0.3) (2021-07-30)
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
## [1.0.2](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.1...v1.0.2) (2021-07-29)
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
## [1.0.1](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.0...v1.0.1) (2021-07-29)
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
# [1.0.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v0.2.0...v1.0.0) (2021-01-21)
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
# [0.2.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v0.1.0...v0.2.0) (2020-11-05)
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
# [0.1.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v0.0.5...v0.1.0) (2020-10-28)
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
### Bug Fixes
|
|
255
|
+
|
|
256
|
+
* typo ([338044f](https://github.com/OpenWonderLabs/node-switchbot/commit/338044f3469788f76c189ba75be80518b1765107))
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
### Features
|
|
260
|
+
|
|
261
|
+
* Added support for running on the Raspberry Pi Zero W. ([017b244](https://github.com/OpenWonderLabs/node-switchbot/commit/017b244cfba178827b4a2504853cc013b7a6bc70))
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
## [0.0.5](https://github.com/OpenWonderLabs/node-switchbot/compare/v0.0.4...v0.0.5) (2020-02-18)
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
## [0.0.4](https://github.com/OpenWonderLabs/node-switchbot/compare/v0.0.3...v0.0.4) (2020-02-10)
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
## [0.0.3](https://github.com/OpenWonderLabs/node-switchbot/compare/v0.0.2...v0.0.3) (2020-02-10)
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
## [0.0.2](https://github.com/OpenWonderLabs/node-switchbot/compare/v0.0.1...v0.0.2) (2019-11-20)
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
## 0.0.1 (2019-11-20)
|
|
282
|
+
|
|
283
|
+
## [3.6.5](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.6.4...v3.6.5) (2026-02-19)
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
## [3.6.4](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.6.3...v3.6.4) (2026-02-18)
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
## [3.6.3](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.5.1...v3.6.3) (2026-02-05)
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
## [3.5.1](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.5.0...v3.5.1) (2025-07-25)
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
# [3.5.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.4.9...v3.5.0) (2025-03-05)
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
## [3.4.9](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.4.8...v3.4.9) (2025-01-24)
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
## [3.4.8](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.4.7...v3.4.8) (2025-01-24)
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
## [3.4.7](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.4.6...v3.4.7) (2025-01-24)
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
## [3.4.6](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.4.5...v3.4.6) (2025-01-24)
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
## [3.4.5](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.4.4...v3.4.5) (2025-01-24)
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
## [3.4.4](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.4.3...v3.4.4) (2025-01-24)
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
## [3.4.3](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.4.2...v3.4.3) (2024-12-22)
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
## [3.4.2](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.4.1...v3.4.2) (2024-12-22)
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
## [3.4.1](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.4.0...v3.4.1) (2024-11-28)
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
# [3.4.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.3.0...v3.4.0) (2024-11-18)
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
# [3.3.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.2.1...v3.3.0) (2024-11-02)
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
## [3.2.1](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.2.0...v3.2.1) (2024-10-22)
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
# [3.2.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.1.1...v3.2.0) (2024-10-22)
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
## [3.1.1](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.1.0...v3.1.1) (2024-10-12)
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
# [3.1.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.0.1...v3.1.0) (2024-10-12)
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
## [3.0.1](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.0.0...v3.0.1) (2024-10-05)
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
# [3.0.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v2.3.0...v3.0.0) (2024-10-05)
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
# [2.3.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v2.2.0...v2.3.0) (2024-07-21)
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
# [2.2.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v2.1.1...v2.2.0) (2024-06-26)
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
## [2.1.1](https://github.com/OpenWonderLabs/node-switchbot/compare/v2.1.0...v2.1.1) (2024-05-26)
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
# [2.1.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v2.0.3...v2.1.0) (2024-05-14)
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
## [2.0.3](https://github.com/OpenWonderLabs/node-switchbot/compare/v2.0.2...v2.0.3) (2024-02-12)
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
## [2.0.2](https://github.com/OpenWonderLabs/node-switchbot/compare/v2.0.0...v2.0.2) (2024-02-10)
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
# [2.0.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.9.1...v2.0.0) (2024-02-05)
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
## [1.9.1](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.9.0...v1.9.1) (2023-11-21)
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
# [1.9.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.8.2...v1.9.0) (2023-09-16)
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
## [1.8.2](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.8.1...v1.8.2) (2023-07-26)
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
## [1.8.1](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.8.0...v1.8.1) (2023-04-08)
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
# [1.8.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.7.3...v1.8.0) (2023-01-29)
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
## [1.7.3](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.7.2...v1.7.3) (2023-01-05)
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
## [1.7.2](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.7.1...v1.7.2) (2022-12-26)
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
## [1.7.1](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.7.0...v1.7.1) (2022-12-20)
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
# [1.7.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.6.1...v1.7.0) (2022-12-08)
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
## [1.6.1](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.6.0...v1.6.1) (2022-10-19)
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
# [1.6.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.5.0...v1.6.0) (2022-10-18)
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
# [1.5.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.4.1...v1.5.0) (2022-10-07)
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
## [1.4.1](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.4.0...v1.4.1) (2022-08-27)
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
# [1.4.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.3.0...v1.4.0) (2022-08-20)
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
# [1.3.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.2.0...v1.3.0) (2022-06-25)
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
# [1.2.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.1.2...v1.2.0) (2022-03-04)
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
## [1.1.2](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.1.1...v1.1.2) (2021-11-13)
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
## [1.1.1](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.1.0...v1.1.1) (2021-11-02)
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
# [1.1.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.8...v1.1.0) (2021-10-27)
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
## [1.0.8](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.7...v1.0.8) (2021-09-30)
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
## [1.0.7](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.6...v1.0.7) (2021-09-25)
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
## [1.0.6](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.5...v1.0.6) (2021-08-29)
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
## [1.0.5](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.4...v1.0.5) (2021-08-04)
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
## [1.0.4](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.3...v1.0.4) (2021-08-04)
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
## [1.0.3](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.2...v1.0.3) (2021-07-30)
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
## [1.0.2](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.1...v1.0.2) (2021-07-29)
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
## [1.0.1](https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.0...v1.0.1) (2021-07-29)
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
# [1.0.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v0.2.0...v1.0.0) (2021-01-21)
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
# [0.2.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v0.1.0...v0.2.0) (2020-11-05)
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
# [0.1.0](https://github.com/OpenWonderLabs/node-switchbot/compare/v0.0.5...v0.1.0) (2020-10-28)
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
### Bug Fixes
|
|
519
|
+
|
|
520
|
+
* typo ([338044f](https://github.com/OpenWonderLabs/node-switchbot/commit/338044f3469788f76c189ba75be80518b1765107))
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
### Features
|
|
524
|
+
|
|
525
|
+
* Added support for running on the Raspberry Pi Zero W. ([017b244](https://github.com/OpenWonderLabs/node-switchbot/commit/017b244cfba178827b4a2504853cc013b7a6bc70))
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
## [0.0.5](https://github.com/OpenWonderLabs/node-switchbot/compare/v0.0.4...v0.0.5) (2020-02-18)
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
## [0.0.4](https://github.com/OpenWonderLabs/node-switchbot/compare/v0.0.3...v0.0.4) (2020-02-10)
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
## [0.0.3](https://github.com/OpenWonderLabs/node-switchbot/compare/v0.0.2...v0.0.3) (2020-02-10)
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
## [0.0.2](https://github.com/OpenWonderLabs/node-switchbot/compare/v0.0.1...v0.0.2) (2019-11-20)
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
## 0.0.1 (2019-11-20)
|
|
546
|
+
|
|
5
547
|
## [3.6.5](https://github.com/OpenWonderLabs/node-switchbot/compare/v3.6.4...v3.6.5) (2026-02-19)
|
|
6
548
|
|
|
7
549
|
|
package/dist/device.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Characteristic, Noble, Peripheral } from '@stoprocent/noble';
|
|
2
|
-
import type { airPurifierServiceData, airPurifierTableServiceData, batteryCirculatorFanServiceData, blindTiltServiceData, botServiceData, ceilingLightProServiceData, ceilingLightServiceData, colorBulbServiceData, contactSensorServiceData, curtain3ServiceData, curtainServiceData, hub2ServiceData, hub3ServiceData, humidifier2ServiceData, humidifierServiceData, keypadDetectorServiceData, lockProServiceData, lockServiceData, meterPlusServiceData, meterProCO2ServiceData, meterProServiceData, meterServiceData, motionSensorServiceData, outdoorMeterServiceData, plugMiniJPServiceData, plugMiniUSServiceData, presenceSensorServiceData, relaySwitch1PMServiceData, relaySwitch1ServiceData, remoteServiceData, robotVacuumCleanerServiceData, stripLightServiceData, waterLeakDetectorServiceData } from './types/ble.js';
|
|
2
|
+
import type { airPurifierServiceData, airPurifierTableServiceData, batteryCirculatorFanServiceData, blindTiltServiceData, botServiceData, ceilingLightProServiceData, ceilingLightServiceData, colorBulbServiceData, contactSensorServiceData, curtain3ServiceData, curtainServiceData, hub2ServiceData, hub3ServiceData, humidifier2ServiceData, humidifierServiceData, keypadDetectorServiceData, lockProServiceData, lockServiceData, meterPlusServiceData, meterProCO2ServiceData, meterProServiceData, meterServiceData, motionSensorServiceData, outdoorMeterServiceData, plugMiniEUServiceData, plugMiniJPServiceData, plugMiniUSServiceData, presenceSensorServiceData, relaySwitch1PMServiceData, relaySwitch1ServiceData, remoteServiceData, robotVacuumCleanerServiceData, stripLightServiceData, waterLeakDetectorServiceData } from './types/ble.js';
|
|
3
3
|
import { Buffer } from 'node:buffer';
|
|
4
4
|
import { EventEmitter } from 'node:events';
|
|
5
5
|
export type MacAddress = string;
|
|
@@ -7,7 +7,7 @@ export interface ad {
|
|
|
7
7
|
id: string;
|
|
8
8
|
address: string;
|
|
9
9
|
rssi: number;
|
|
10
|
-
serviceData: airPurifierServiceData | airPurifierTableServiceData | botServiceData | colorBulbServiceData | contactSensorServiceData | curtainServiceData | curtain3ServiceData | stripLightServiceData | lockServiceData | lockProServiceData | meterServiceData | meterPlusServiceData | meterProServiceData | meterProCO2ServiceData | motionSensorServiceData | presenceSensorServiceData | outdoorMeterServiceData | plugMiniUSServiceData | plugMiniJPServiceData | blindTiltServiceData | ceilingLightServiceData | ceilingLightProServiceData | hub2ServiceData | hub3ServiceData | batteryCirculatorFanServiceData | waterLeakDetectorServiceData | humidifierServiceData | humidifier2ServiceData | robotVacuumCleanerServiceData | keypadDetectorServiceData | relaySwitch1PMServiceData | relaySwitch1ServiceData | remoteServiceData;
|
|
10
|
+
serviceData: airPurifierServiceData | airPurifierTableServiceData | botServiceData | colorBulbServiceData | contactSensorServiceData | curtainServiceData | curtain3ServiceData | stripLightServiceData | lockServiceData | lockProServiceData | meterServiceData | meterPlusServiceData | meterProServiceData | meterProCO2ServiceData | motionSensorServiceData | presenceSensorServiceData | outdoorMeterServiceData | plugMiniUSServiceData | plugMiniJPServiceData | plugMiniEUServiceData | blindTiltServiceData | ceilingLightServiceData | ceilingLightProServiceData | hub2ServiceData | hub3ServiceData | batteryCirculatorFanServiceData | waterLeakDetectorServiceData | humidifierServiceData | humidifier2ServiceData | robotVacuumCleanerServiceData | keypadDetectorServiceData | relaySwitch1PMServiceData | relaySwitch1ServiceData | remoteServiceData;
|
|
11
11
|
[key: string]: unknown;
|
|
12
12
|
}
|
|
13
13
|
export type ondiscover = (device: SwitchbotDevice) => Promise<void> | void;
|
|
@@ -37,6 +37,7 @@ export declare interface SwitchBotBLEDevice {
|
|
|
37
37
|
StripLight: DeviceInfo;
|
|
38
38
|
PlugMiniUS: DeviceInfo;
|
|
39
39
|
PlugMiniJP: DeviceInfo;
|
|
40
|
+
PlugMiniEU: DeviceInfo;
|
|
40
41
|
Lock: DeviceInfo;
|
|
41
42
|
LockPro: DeviceInfo;
|
|
42
43
|
CeilingLight: DeviceInfo;
|
|
@@ -70,6 +71,7 @@ export declare enum SwitchBotModel {
|
|
|
70
71
|
StripLight = "W1701100",
|
|
71
72
|
PlugMiniUS = "W1901400/W1901401",
|
|
72
73
|
PlugMiniJP = "W2001400/W2001401",
|
|
74
|
+
PlugMiniEU = "W7732300",
|
|
73
75
|
Lock = "W1601700",
|
|
74
76
|
LockPro = "W3500000",
|
|
75
77
|
LockUltra = "W3600000",
|
|
@@ -119,6 +121,7 @@ export declare enum SwitchBotBLEModel {
|
|
|
119
121
|
StripLight = "r",
|
|
120
122
|
PlugMiniUS = "g",
|
|
121
123
|
PlugMiniJP = "j",// Only available in Japan.
|
|
124
|
+
PlugMiniEU = "l",// Only available in Europe.
|
|
122
125
|
Lock = "o",
|
|
123
126
|
LockPro = "$",
|
|
124
127
|
LockUltra = "U",
|
|
@@ -1033,7 +1036,7 @@ export declare class WoPlugMiniJP extends SwitchbotDevice {
|
|
|
1033
1036
|
* @param {Function} emitLog - The function to emit log messages.
|
|
1034
1037
|
* @returns {Promise<plugMiniJPServiceData | null>} - Parsed service data or null if invalid.
|
|
1035
1038
|
*/
|
|
1036
|
-
static parseServiceData(manufacturerData: Buffer, emitLog: (level: string, message: string) => void): Promise<plugMiniJPServiceData | null>;
|
|
1039
|
+
static parseServiceData(manufacturerData: Buffer | undefined, emitLog: (level: string, message: string) => void): Promise<plugMiniJPServiceData | null>;
|
|
1037
1040
|
/**
|
|
1038
1041
|
* Reads the state of the plug.
|
|
1039
1042
|
* @returns {Promise<boolean>} - Resolves with a boolean that tells whether the plug is ON (true) or OFF (false).
|
|
@@ -1068,6 +1071,52 @@ export declare class WoPlugMiniJP extends SwitchbotDevice {
|
|
|
1068
1071
|
*/
|
|
1069
1072
|
operatePlug(bytes: number[]): Promise<boolean>;
|
|
1070
1073
|
}
|
|
1074
|
+
/**
|
|
1075
|
+
* Class representing a WoPlugMini EU device.
|
|
1076
|
+
* @see https://github.com/OpenWonderLabs/SwitchBotAPI-BLE/blob/latest/devicetypes/plugmini.md
|
|
1077
|
+
*/
|
|
1078
|
+
export declare class WoPlugMiniEU extends SwitchbotDevice {
|
|
1079
|
+
constructor(peripheral: NobleTypes['peripheral'], noble: NobleTypes['noble']);
|
|
1080
|
+
/**
|
|
1081
|
+
* Parses the service data for WoPlugMini EU.
|
|
1082
|
+
* @param {Buffer} manufacturerData - The manufacturer data buffer.
|
|
1083
|
+
* @param {Function} emitLog - The function to emit log messages.
|
|
1084
|
+
* @returns {Promise<plugMiniEUServiceData | null>} - Parsed service data or null if invalid.
|
|
1085
|
+
*/
|
|
1086
|
+
static parseServiceData(manufacturerData: Buffer | undefined, emitLog: (level: string, message: string) => void): Promise<plugMiniEUServiceData | null>;
|
|
1087
|
+
/**
|
|
1088
|
+
* Reads the state of the plug.
|
|
1089
|
+
* @returns {Promise<boolean>} - Resolves with a boolean that tells whether the plug is ON (true) or OFF (false).
|
|
1090
|
+
*/
|
|
1091
|
+
readState(): Promise<boolean>;
|
|
1092
|
+
/**
|
|
1093
|
+
* Sets the state of the plug.
|
|
1094
|
+
* @param {number[]} reqByteArray - The request byte array.
|
|
1095
|
+
* @returns {Promise<boolean>} - Resolves with a boolean that tells whether the plug is ON (true) or OFF (false).
|
|
1096
|
+
*/
|
|
1097
|
+
setState(reqByteArray: number[]): Promise<boolean>;
|
|
1098
|
+
/**
|
|
1099
|
+
* Turns on the plug.
|
|
1100
|
+
* @returns {Promise<boolean>} - Resolves with a boolean that tells whether the plug is ON (true) or OFF (false).
|
|
1101
|
+
*/
|
|
1102
|
+
turnOn(): Promise<boolean>;
|
|
1103
|
+
/**
|
|
1104
|
+
* Turns off the plug.
|
|
1105
|
+
* @returns {Promise<boolean>} - Resolves with a boolean that tells whether the plug is ON (true) or OFF (false).
|
|
1106
|
+
*/
|
|
1107
|
+
turnOff(): Promise<boolean>;
|
|
1108
|
+
/**
|
|
1109
|
+
* Toggles the state of the plug.
|
|
1110
|
+
* @returns {Promise<boolean>} - Resolves with a boolean that tells whether the plug is ON (true) or OFF (false).
|
|
1111
|
+
*/
|
|
1112
|
+
toggle(): Promise<boolean>;
|
|
1113
|
+
/**
|
|
1114
|
+
* Operates the plug with the given bytes.
|
|
1115
|
+
* @param {number[]} bytes - The byte array to send to the plug.
|
|
1116
|
+
* @returns {Promise<boolean>} - Resolves with a boolean that tells whether the plug is ON (true) or OFF (false).
|
|
1117
|
+
*/
|
|
1118
|
+
operatePlug(bytes: number[]): Promise<boolean>;
|
|
1119
|
+
}
|
|
1071
1120
|
/**
|
|
1072
1121
|
* Class representing a WoPlugMini device.
|
|
1073
1122
|
* @see https://github.com/OpenWonderLabs/SwitchBotAPI-BLE/blob/latest/devicetypes/plugmini.md
|
|
@@ -1080,7 +1129,7 @@ export declare class WoPlugMiniUS extends SwitchbotDevice {
|
|
|
1080
1129
|
* @param {Function} emitLog - The function to emit log messages.
|
|
1081
1130
|
* @returns {Promise<plugMiniUSServiceData | null>} - Parsed service data or null if invalid.
|
|
1082
1131
|
*/
|
|
1083
|
-
static parseServiceData(manufacturerData: Buffer, emitLog: (level: string, message: string) => void): Promise<plugMiniUSServiceData | null>;
|
|
1132
|
+
static parseServiceData(manufacturerData: Buffer | undefined, emitLog: (level: string, message: string) => void): Promise<plugMiniUSServiceData | null>;
|
|
1084
1133
|
/**
|
|
1085
1134
|
* Reads the state of the plug.
|
|
1086
1135
|
* @returns {Promise<boolean>} - Resolves with a boolean that tells whether the plug is ON (true) or OFF (false).
|