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