node-switchbot 1.2.1-beta.8 → 1.4.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.
- package/CHANGELOG.md +39 -21
- package/LICENSE +1 -1
- package/README.md +389 -260
- package/lib/parameter-checker.js +271 -213
- package/lib/switchbot-advertising.js +238 -163
- package/lib/switchbot-device-wocontact.js +4 -7
- package/lib/switchbot-device-wocurtain.js +106 -91
- package/lib/switchbot-device-wohand.js +69 -65
- package/lib/switchbot-device-wohumi.js +69 -65
- package/lib/switchbot-device-woplugmini.js +81 -0
- package/lib/switchbot-device-wopresence.js +4 -7
- package/lib/switchbot-device-wosensorth.js +4 -7
- package/lib/switchbot-device.js +188 -149
- package/lib/switchbot.js +271 -233
- package/package.json +41 -41
package/CHANGELOG.md
CHANGED
|
@@ -2,9 +2,27 @@
|
|
|
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
|
+
## [Version 1.4.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.4.0) (2022-08-19)
|
|
6
|
+
|
|
7
|
+
## What's Changed
|
|
8
|
+
|
|
9
|
+
- Added support for Plug Mini (j) & (g)
|
|
10
|
+
- Housekeeping and update dependencies
|
|
11
|
+
|
|
12
|
+
**Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v1.3.0...v1.4.0
|
|
13
|
+
|
|
14
|
+
## [Version 1.3.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.3.0) (2022-06-25)
|
|
15
|
+
|
|
16
|
+
## What's Changed
|
|
17
|
+
|
|
18
|
+
- Added more Device Types, not all supported though.
|
|
19
|
+
- Housekeeping and update dependencies
|
|
20
|
+
|
|
21
|
+
**Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v1.2.0...v1.3.0
|
|
22
|
+
|
|
5
23
|
## [Version 1.2.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.2.0) (2022-03-04)
|
|
6
24
|
|
|
7
|
-
|
|
25
|
+
## What's Changed
|
|
8
26
|
|
|
9
27
|
- Added support for SwitchBot "Contact" and "Motion"
|
|
10
28
|
- Fix for Curtains on Firmware v3.3 and above
|
|
@@ -14,7 +32,7 @@ All notable changes to this project will be documented in this file. This projec
|
|
|
14
32
|
|
|
15
33
|
## [Version 1.1.2](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.1.2) (2021-11-13)
|
|
16
34
|
|
|
17
|
-
|
|
35
|
+
## What's Changed
|
|
18
36
|
|
|
19
37
|
- Housekeeping and update dependencies
|
|
20
38
|
|
|
@@ -22,7 +40,7 @@ All notable changes to this project will be documented in this file. This projec
|
|
|
22
40
|
|
|
23
41
|
## [Version 1.1.1](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.1.1) (2021-11-02)
|
|
24
42
|
|
|
25
|
-
|
|
43
|
+
## What's Changed
|
|
26
44
|
|
|
27
45
|
- Change back from @node/noble to @abandonware/noble
|
|
28
46
|
|
|
@@ -30,7 +48,7 @@ All notable changes to this project will be documented in this file. This projec
|
|
|
30
48
|
|
|
31
49
|
## [Version 1.1.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.1.0) (2021-10-26)
|
|
32
50
|
|
|
33
|
-
|
|
51
|
+
## What's Changed
|
|
34
52
|
|
|
35
53
|
- Add Contact/Motion Sensor advertisement
|
|
36
54
|
- Add Humidifier advertisement
|
|
@@ -40,7 +58,7 @@ All notable changes to this project will be documented in this file. This projec
|
|
|
40
58
|
|
|
41
59
|
## [Version 1.0.8](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.8) (2021-09-30)
|
|
42
60
|
|
|
43
|
-
|
|
61
|
+
## What's Changed
|
|
44
62
|
|
|
45
63
|
- fix extra trace of old noble from @abandonware/noble
|
|
46
64
|
|
|
@@ -48,7 +66,7 @@ All notable changes to this project will be documented in this file. This projec
|
|
|
48
66
|
|
|
49
67
|
## [Version 1.0.7](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.7) (2021-09-24)
|
|
50
68
|
|
|
51
|
-
|
|
69
|
+
## What's Changed
|
|
52
70
|
|
|
53
71
|
- Change from @abandonware/noble to @homebridge/noble
|
|
54
72
|
|
|
@@ -56,7 +74,7 @@ All notable changes to this project will be documented in this file. This projec
|
|
|
56
74
|
|
|
57
75
|
## [Version 1.0.6](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.6) (2021-08-29)
|
|
58
76
|
|
|
59
|
-
|
|
77
|
+
## What's Changed
|
|
60
78
|
|
|
61
79
|
- Fixes FATAL ERROR: ad_id is not defined
|
|
62
80
|
|
|
@@ -64,7 +82,7 @@ All notable changes to this project will be documented in this file. This projec
|
|
|
64
82
|
|
|
65
83
|
## [Version 1.0.5](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.5) (2021-08-04)
|
|
66
84
|
|
|
67
|
-
|
|
85
|
+
## What's Changed
|
|
68
86
|
|
|
69
87
|
- Adding code for Contact and Motion Sensors
|
|
70
88
|
- Not Ready to be used yet though
|
|
@@ -73,7 +91,7 @@ All notable changes to this project will be documented in this file. This projec
|
|
|
73
91
|
|
|
74
92
|
## [Version 1.0.4](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.4) (2021-08-03)
|
|
75
93
|
|
|
76
|
-
|
|
94
|
+
## What's Changed
|
|
77
95
|
|
|
78
96
|
- Support for the discover method with id on macOS
|
|
79
97
|
|
|
@@ -81,7 +99,7 @@ All notable changes to this project will be documented in this file. This projec
|
|
|
81
99
|
|
|
82
100
|
## [Version 1.0.3](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.3) (2021-07-30)
|
|
83
101
|
|
|
84
|
-
|
|
102
|
+
## What's Changed
|
|
85
103
|
|
|
86
104
|
- Fixed misspelling.
|
|
87
105
|
|
|
@@ -89,7 +107,7 @@ All notable changes to this project will be documented in this file. This projec
|
|
|
89
107
|
|
|
90
108
|
## [Version 1.0.2](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.2) (2021-07-29)
|
|
91
109
|
|
|
92
|
-
|
|
110
|
+
## What's Changed
|
|
93
111
|
|
|
94
112
|
- Housekeeping and update dependencies
|
|
95
113
|
|
|
@@ -97,7 +115,7 @@ All notable changes to this project will be documented in this file. This projec
|
|
|
97
115
|
|
|
98
116
|
## [Version 1.0.1](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.1) (2021-07-29)
|
|
99
117
|
|
|
100
|
-
|
|
118
|
+
## What's Changed
|
|
101
119
|
|
|
102
120
|
- Fixed issue where after switching Bluetooth off and on, would not work properly.
|
|
103
121
|
|
|
@@ -105,15 +123,15 @@ All notable changes to this project will be documented in this file. This projec
|
|
|
105
123
|
|
|
106
124
|
## [Version 1.0.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.0) (2021-01-21)
|
|
107
125
|
|
|
108
|
-
|
|
126
|
+
## What's Changed
|
|
109
127
|
|
|
110
|
-
-
|
|
128
|
+
- - fix "No device was found" in MacOS
|
|
111
129
|
|
|
112
130
|
**Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v0.2.0...v1.0.0
|
|
113
131
|
|
|
114
132
|
## [Version 0.2.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v0.2.0) (2020-11-05)
|
|
115
133
|
|
|
116
|
-
|
|
134
|
+
## What's Changed
|
|
117
135
|
|
|
118
136
|
- Modify Curtain's action command to support group and running mode. (Thanks to [@SwitchBot-Wonderlabs](https://github.com/OpenWonderLabs/node-switchbot/pull/7/))
|
|
119
137
|
|
|
@@ -121,7 +139,7 @@ All notable changes to this project will be documented in this file. This projec
|
|
|
121
139
|
|
|
122
140
|
## [Version 0.1.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v0.1.0) (2020-10-28)
|
|
123
141
|
|
|
124
|
-
|
|
142
|
+
## What's Changed
|
|
125
143
|
|
|
126
144
|
- Added support for SwitchBot Curtain. (Thanks to [@SwitchBot-Wonderlabs](https://github.com/OpenWonderLabs/node-switchbot/pull/6/))
|
|
127
145
|
- Added support for running on the Raspberry Pi Zero W. (Thanks to [@zizi4n5](https://github.com/OpenWonderLabs/node-switchbot/pull/5))
|
|
@@ -130,7 +148,7 @@ All notable changes to this project will be documented in this file. This projec
|
|
|
130
148
|
|
|
131
149
|
## [Version 0.0.5](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v0.0.5) (2020-02-19)
|
|
132
150
|
|
|
133
|
-
|
|
151
|
+
## What's Changed
|
|
134
152
|
|
|
135
153
|
- Improved the stability of discovering the BLE characteristics. (Thanks to [@dnicolson](https://github.com/OpenWonderLabs/node-switchbot/issues/3))
|
|
136
154
|
|
|
@@ -138,7 +156,7 @@ All notable changes to this project will be documented in this file. This projec
|
|
|
138
156
|
|
|
139
157
|
## [Version 0.0.4](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v0.0.4) (2020-02-11)
|
|
140
158
|
|
|
141
|
-
|
|
159
|
+
## What's Changed
|
|
142
160
|
|
|
143
161
|
- Fixed the bug that temperature value lower than 0 degC could not be handled. (Thanks to [@musimasami](https://github.com/OpenWonderLabs/node-switchbot/issues/2))
|
|
144
162
|
|
|
@@ -146,7 +164,7 @@ All notable changes to this project will be documented in this file. This projec
|
|
|
146
164
|
|
|
147
165
|
## [Version 0.0.3](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v0.0.3) (2020-02-10)
|
|
148
166
|
|
|
149
|
-
|
|
167
|
+
## What's Changed
|
|
150
168
|
|
|
151
169
|
- Now the characteristic UUID `0x2a00` (Device Name) is not mandatory. Some models of Bot don't seem to support the characteristic. (Thanks to [@dnicolson](https://github.com/OpenWonderLabs/node-switchbot/issues/1))
|
|
152
170
|
- Fixed the bug that the `turnOn()` method returns an error if the "Press mode" is selected on the Bot.
|
|
@@ -155,6 +173,6 @@ All notable changes to this project will be documented in this file. This projec
|
|
|
155
173
|
|
|
156
174
|
## [Version 0.0.2](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v0.0.2) (2019-11-20)
|
|
157
175
|
|
|
158
|
-
|
|
176
|
+
## What's Changed
|
|
159
177
|
|
|
160
|
-
- First public release
|
|
178
|
+
- First public release
|
package/LICENSE
CHANGED
|
@@ -11,4 +11,4 @@ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
|
11
11
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
PERFORMANCE OF THIS SOFTWARE.
|