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