You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fix reversed bot state reporting, Thanks [@grelca](https://github.com/grelca)[#207](https://github.com/OpenWonderLabs/node-switchbot/pull/207)
27
-
- Add support for Curtain 3, Thanks [@tsia](https://github.com/tsia)[#209](https://github.com/OpenWonderLabs/node-switchbot/pull/209)
35
+
- Fix reversed bot state reporting[#207](https://github.com/OpenWonderLabs/node-switchbot/pull/207), Thanks [@grelca](https://github.com/grelca)
36
+
- Add support for Curtain 3[#209](https://github.com/OpenWonderLabs/node-switchbot/pull/209), Thanks [@tsia](https://github.com/tsia)
- Add support for the Indoor/Outdoor Thermo-Hygrometer (WoIOSensorTH), Thanks [@moritzmhmk](https://github.com/moritzmhmk)[#200](https://github.com/OpenWonderLabs/node-switchbot/pull/200)
43
-
- Handle noble not being "poweredOn" on init, Thanks [@moritzmhmk](https://github.com/moritzmhmk)[#199](https://github.com/OpenWonderLabs/node-switchbot/pull/199)
51
+
- Add support for the Indoor/Outdoor Thermo-Hygrometer (WoIOSensorTH)[#200](https://github.com/OpenWonderLabs/node-switchbot/pull/200), Thanks [@moritzmhmk](https://github.com/moritzmhmk)
52
+
- Handle noble not being "poweredOn" on init[#199](https://github.com/OpenWonderLabs/node-switchbot/pull/199), Thanks [@moritzmhmk](https://github.com/moritzmhmk)
- Fixed a Linting Issues, Thanks [@dnicolson](https://github.com/dnicolson)[#196](https://github.com/OpenWonderLabs/node-switchbot/pull/196)
53
-
- Fixed 'TypeError: Assignment to constant variable', Thanks [@banboobee](https://github.com/banboobee)[#194](https://github.com/OpenWonderLabs/node-switchbot/pull/194)
54
-
- Fix issue of re-assigning to constant for Temperature, Thanks [@gravity-addiction](https://github.com/gravity-addiction)[#191](https://github.com/OpenWonderLabs/node-switchbot/pull/191)
- Fixed a Linting Issues[#196](https://github.com/OpenWonderLabs/node-switchbot/pull/196), Thanks [@dnicolson](https://github.com/dnicolson)
62
+
- Fixed 'TypeError: Assignment to constant variable'[#194](https://github.com/OpenWonderLabs/node-switchbot/pull/194), Thanks [@banboobee](https://github.com/banboobee)
63
+
- Fix issue of re-assigning to constant for Temperature[#191](https://github.com/OpenWonderLabs/node-switchbot/pull/191), Thanks [@gravity-addiction](https://github.com/gravity-addiction)
- Use const keyword for immutable variables, Thanks [@dnicolson](https://github.com/dnicolson/). [#184](https://github.com/OpenWonderLabs/node-switchbot/pull/184)
63
-
- Use Error object for promise rejection, Thanks [@dnicolson](https://github.com/dnicolson/). [#181](https://github.com/OpenWonderLabs/node-switchbot/pull/181)
71
+
- Use const keyword for immutable variables[#184](https://github.com/OpenWonderLabs/node-switchbot/pull/184), Thanks [@dnicolson](https://github.com/dnicolson/)
72
+
- Use Error object for promise rejection[#181](https://github.com/OpenWonderLabs/node-switchbot/pull/181), Thanks [@dnicolson](https://github.com/dnicolson/)
@@ -70,7 +79,7 @@ All notable changes to this project will be documented in this file. This projec
70
79
### What's Changed
71
80
72
81
- Add Support for BlindTilt (Read Only)
73
-
- Use Error object for promise rejection, Thanks [@dnicolson](https://github.com/dnicolson/). [#181](https://github.com/OpenWonderLabs/node-switchbot/pull/181)
82
+
- Use Error object for promise rejection[#181](https://github.com/OpenWonderLabs/node-switchbot/pull/181), Thanks [@dnicolson](https://github.com/dnicolson/)
@@ -275,40 +284,40 @@ All notable changes to this project will be documented in this file. This projec
275
284
276
285
### What's Changed
277
286
278
-
- Modify Curtain's action command to support group and running mode. (Thanks to [@SwitchBot-Wonderlabs](https://github.com/OpenWonderLabs/node-switchbot/pull/7/))
287
+
- Modify Curtain's action command to support group and running mode[#7](https://github.com/OpenWonderLabs/node-switchbot/pull/7), Thanks [@SwitchBot-Wonderlabs](https://github.com/SwitchBot-Wonderlabs)
- Added support for SwitchBot Curtain. (Thanks to [@SwitchBot-Wonderlabs](https://github.com/OpenWonderLabs/node-switchbot/pull/6/))
287
-
- Added support for running on the Raspberry Pi Zero W. (Thanks to [@zizi4n5](https://github.com/OpenWonderLabs/node-switchbot/pull/5))
295
+
- Added support for SwitchBot Curtain[#6](https://github.com/OpenWonderLabs/node-switchbot/pull/6), Thanks [@SwitchBot-Wonderlabs](https://github.com/SwitchBot-Wonderlabs)
296
+
- Added support for running on the Raspberry Pi Zero W[#5](https://github.com/OpenWonderLabs/node-switchbot/pull/5), Thanks [@Szizi4n5](https://github.com/zizi4n5)
- Improved the stability of discovering the BLE characteristics. (Thanks to [@dnicolson](https://github.com/OpenWonderLabs/node-switchbot/issues/3))
304
+
- Improved the stability of discovering the BLE characteristics[#3](https://github.com/OpenWonderLabs/node-switchbot/pull/3), Thanks [@dnicolson](https://github.com/dnicolson)
- 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))
312
+
- Fixed the bug that temperature value lower than 0 degC could not be handled[#2](https://github.com/OpenWonderLabs/node-switchbot/pull/2), Thanks [@musimasami](https://github.com/musimasami)
- 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))
320
+
- Now the characteristic UUID `0x2a00` (Device Name) is not mandatory. Some models of Bot don't seem to support the characteristic[#3](https://github.com/OpenWonderLabs/node-switchbot/pull/1), Thanks [@dnicolson](https://github.com/dnicolson)
312
321
- Fixed the bug that the `turnOn()` method returns an error if the "Press mode" is selected on the Bot.
Copy file name to clipboardExpand all lines: README.md
+7-8Lines changed: 7 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,7 @@ Monitoring the advertising packets, you can find your devices and know the lates
111
111
```Typescript
112
112
// Load the node-switchbot and get a `Switchbot` constructor object
113
113
import { SwitchBot } from'node-switchbot';
114
-
// Create an `Switchbot` object
114
+
// Create a `Switchbot` object
115
115
const switchbot =newSwitchBot();
116
116
117
117
(async () => {
@@ -138,7 +138,7 @@ The [`startScan()`](#startscan-method) and [`wait()`](#Switchbot-wait-method) me
138
138
```Typescript
139
139
// Load the node-switchbot and get a `Switchbot` constructor object
140
140
const Switchbot =require("node-switchbot");
141
-
// Create an `Switchbot` object
141
+
// Create a `Switchbot` object
142
142
const switchbot =newSwitchbot();
143
143
144
144
// Start to monitor advertisement packets
@@ -214,7 +214,7 @@ This sample discovers a Bot (WoHand), then put the Bot's arm down, finally put i
214
214
```Typescript
215
215
// Load the node-switchbot and get a `Switchbot` constructor object
216
216
import { SwitchBot } from'node-switchbot';
217
-
// Create an `Switchbot` object
217
+
// Create a `Switchbot` object
218
218
const switchbot =newSwitchBot();
219
219
220
220
(async () => {
@@ -249,7 +249,7 @@ In order to use the node-switchbot, you have to load the node-switchbot module a
249
249
import { SwitchBot } from'node-switchbot';
250
250
```
251
251
252
-
You can get an `SwitchBot` constructor from the code above. Then you have to create an`SwitchBot` object from the `SwitchBot` constructor as follows:
252
+
You can get an `SwitchBot` constructor from the code above. Then you have to create a`SwitchBot` object from the `SwitchBot` constructor as follows:
253
253
254
254
```typescript
255
255
const switchbot =newSwitchBot();
@@ -303,9 +303,8 @@ If you want a quick response, you can set the `quick` property to `true`.
303
303
304
304
```Typescript
305
305
switchbot.discover({
306
-
duration: 5000,
307
-
quick: true
308
-
});
306
+
duration: 5000,
307
+
quick: true
309
308
}).then((device_list) => {
310
309
// Do something...
311
310
}).catch((error) => {
@@ -749,7 +748,7 @@ Actually, the `WoCurtain` is an object inherited from the [`SwitchbotDevice`](#S
749
748
750
749
### `open()` method
751
750
752
-
The `open()` method sends a open command to the Curtain. This method returns a `Promise` object. Nothing will be passed to the `resove()`.
751
+
The `open()` method sends an open command to the Curtain. This method returns a `Promise` object. Nothing will be passed to the `resove()`.
753
752
754
753
If no connection is established with the device, this method automatically establishes a connection with the device, then finally closes the connection. You don't have to call the [`connect()`](#SwitchbotDevice-connect-method) method in advance.
0 commit comments