Skip to content

Commit 366ecf1

Browse files
committed
v1.1.1
## [Version 1.1.1](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.1.1) (2021-11-02) ### Changes - Change back from @node/noble to @abandonware/noble
1 parent 6dcc39e commit 366ecf1

File tree

5 files changed

+83
-89
lines changed

5 files changed

+83
-89
lines changed

CHANGELOG.md

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,102 +2,108 @@
22

33
All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/)
44

5-
## [Version 1.1.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.1.0) (2021-10-26)
5+
## [Version 1.1.1](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.1.1) (2021-11-02)
6+
7+
### Changes
8+
9+
- Change back from @node/noble to @abandonware/noble
10+
11+
## [Version 1.1.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.1.0) (2021-10-26)
612

713
### Changes
814

915
- Add Contact/Motion Sensor advertisement
1016
- Add Humidifier advertisement
1117
- Correct Model for advertisement
1218

13-
## [Version 1.0.8](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.8) (2021-09-30)
19+
## [Version 1.0.8](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.8) (2021-09-30)
1420

1521
### Changes
1622

1723
- fix extra trace of old noble from @abandonware/noble
1824

19-
## [Version 1.0.7](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.7) (2021-09-24)
25+
## [Version 1.0.7](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.7) (2021-09-24)
2026

2127
### Changes
2228

23-
- Change from @abandonware/noble to @homebridge/noble
29+
- Change from @abandonware/noble to @node/noble
2430

25-
## [Version 1.0.6](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.6) (2021-08-29)
31+
## [Version 1.0.6](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.6) (2021-08-29)
2632

2733
### Changes
2834

2935
- Fixes FATAL ERROR: ad_id is not defined
3036

31-
## [Version 1.0.5](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.5) (2021-08-04)
37+
## [Version 1.0.5](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.5) (2021-08-04)
3238

3339
### Changes
3440

3541
- Adding code for Contact and Motion Sensors
3642
- Not Ready to be used yet though
3743

38-
## [Version 1.0.4](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.4) (2021-08-03)
44+
## [Version 1.0.4](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.4) (2021-08-03)
3945

4046
### Changes
4147

4248
- Support for the discover method with id on macOS
4349

44-
## [Version 1.0.3](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.3) (2021-07-30)
50+
## [Version 1.0.3](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.3) (2021-07-30)
4551

4652
### Changes
4753

4854
- Fixed misspelling.
4955

50-
## [Version 1.0.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.2) (2021-07-29)
56+
## [Version 1.0.2](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.2) (2021-07-29)
5157

5258
### Changes
5359

5460
- Housekeeping and update dependencies
5561

56-
## [Version 1.0.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.1) (2021-07-29)
62+
## [Version 1.0.1](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.1) (2021-07-29)
5763

5864
### Changes
5965

6066
- Fixed issue where after switching Bluetooth off and on, would not work properly.
6167

62-
## [Version 1.0.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.0) (2021-01-21)
68+
## [Version 1.0.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.0) (2021-01-21)
6369

6470
### Changes
6571

6672
- * fix "No device was found" in MacOS
6773

68-
## [Version 0.2.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v0.2.0) (2020-11-05)
74+
## [Version 0.2.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v0.2.0) (2020-11-05)
6975

7076
### Changes
7177

7278
- Modify Curtain's action command to support group and running mode. (Thanks to [@SwitchBot-Wonderlabs](https://github.com/OpenWonderLabs/node-switchbot/pull/7/))
7379

74-
## [Version 0.1.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v0.1.0) (2020-10-28)
80+
## [Version 0.1.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v0.1.0) (2020-10-28)
7581

7682
### Changes
7783

7884
- Added support for SwitchBot Curtain. (Thanks to [@SwitchBot-Wonderlabs](https://github.com/OpenWonderLabs/node-switchbot/pull/6/))
7985
- Added support for running on the Raspberry Pi Zero W. (Thanks to [@zizi4n5](https://github.com/OpenWonderLabs/node-switchbot/pull/5))
8086

81-
## [Version 0.0.5](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v0.0.5) (2020-02-19)
87+
## [Version 0.0.5](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v0.0.5) (2020-02-19)
8288

8389
### Changes
8490

8591
- Improved the stability of discovering the BLE characteristics. (Thanks to [@dnicolson](https://github.com/OpenWonderLabs/node-switchbot/issues/3))
8692

87-
## [Version 0.0.4](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v0.0.4) (2020-02-11)
93+
## [Version 0.0.4](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v0.0.4) (2020-02-11)
8894

8995
### Changes
9096

9197
- 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))
9298

93-
## [Version 0.0.3](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v0.0.3) (2020-02-10)
99+
## [Version 0.0.3](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v0.0.3) (2020-02-10)
94100

95101
### Changes
96102

97103
- 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))
98104
- Fixed the bug that the `turnOn()` method returns an error if the "Press mode" is selected on the Bot.
99105

100-
## [Version 0.0.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v0.0.2) (2019-11-20)
106+
## [Version 0.0.2](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v0.0.2) (2019-11-20)
101107

102108
### Changes
103109

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,33 +60,33 @@ This module is unofficial. It was developed by reference to [the official python
6060

6161
## Supported OS
6262

63-
The node-switchbot supports only Linux-based OSes, such as Raspbian, Ubuntu, and so on. This module does not support Windows and macOS for now. (If [@homebridge/noble](https://github.com/homebridge/noble) is installed properly, this module might work well on such OSes.)
63+
The node-switchbot supports only Linux-based OSes, such as Raspbian, Ubuntu, and so on. This module does not support Windows and macOS for now. (If [@abandonware/noble](https://github.com/abandonware/noble) is installed properly, this module might work well on such OSes.)
6464

6565
## Dependencies
6666

6767
* [Node.js](https://nodejs.org/en/) 10 +
68-
* [@homebridge/noble](https://github.com/homebridge/noble)
68+
* [@abandonware/noble](https://github.com/abandonware/noble)
6969

7070

71-
See the document of the [@homebridge/noble](https://github.com/homebridge/noble) for details on installing the [@homebridge/noble](https://github.com/homebridge/noble).
71+
See the document of the [@abandonware/noble](https://github.com/abandonware/noble) for details on installing the [@abandonware/noble](https://github.com/abandonware/noble).
7272

73-
Note that the noble must be run as root on most of Linux environments. See the document of the [@homebridge/noble](https://github.com/homebridge/noble) for details.
73+
Note that the noble must be run as root on most of Linux environments. See the document of the [@abandonware/noble](https://github.com/abandonware/noble) for details.
7474

7575
## Installation
7676

77-
Before installing the [@homebridge/noble](https://github.com/homebridge/noble), some linux libraries related Bluetooth as follows if the OS is Ubuntu/Debian/Raspbian.
77+
Before installing the [@abandonware/noble](https://github.com/abandonware/noble), some linux libraries related Bluetooth as follows if the OS is Ubuntu/Debian/Raspbian.
7878

7979
```
8080
$ sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev
8181
```
8282

83-
If you use other OS, follow the instructions described in the document of the [@homebridge/noble](https://github.com/homebridge/noble).
83+
If you use other OS, follow the instructions described in the document of the [@abandonware/noble](https://github.com/abandonware/noble).
8484

85-
After installing the libraries above, install the [@homebridge/noble](https://github.com/homebridge/noble) and the node-switchbot (this module) as follows:
85+
After installing the libraries above, install the [@abandonware/noble](https://github.com/abandonware/noble) and the node-switchbot (this module) as follows:
8686

8787
```
8888
$ cd ~
89-
$ npm install @homebridge/noble
89+
$ npm install @abandonware/noble
9090
$ npm install node-switchbot
9191
```
9292

@@ -244,15 +244,15 @@ The `Switchbot` constructor takes an argument optionally. It must be a hash obje
244244

245245
Property | Type | Required | Description
246246
:--------|:-------|:---------|:-----------
247-
`noble` | Noble | option | a Noble object of the [`@homebridge/noble`](https://github.com/homebridge/noble) module
247+
`noble` | Noble | option | a Noble object of the [`@abandonware/noble`](https://github.com/abandonware/noble) module
248248

249-
The node-switchbot module uses the [`@homebridge/noble`](https://github.com/homebridge/noble) module in order to interact with BLE devices. If you want to interact other BLE devices using the `@homebridge/noble` module, you can create an `Noble` object by yourself, then pass it to this module. If you don't specify a `Noble` object to the `noble` property, this module automatically create a `Noble` object internally.
249+
The node-switchbot module uses the [`@abandonware/noble`](https://github.com/abandonware/noble) module in order to interact with BLE devices. If you want to interact other BLE devices using the `@abandonware/noble` module, you can create an `Noble` object by yourself, then pass it to this module. If you don't specify a `Noble` object to the `noble` property, this module automatically create a `Noble` object internally.
250250

251251
The sample code below shows how to pass a `Nobel` object to the `Switchbot` constructor.
252252

253253
```JavaScript
254254
// Create a Noble object
255-
const noble = require('@homebridge/noble');
255+
const noble = require('@abandonware/noble');
256256

257257
// Create a Switchbot object
258258
const Switchbot = require('node-switchbot');
@@ -379,7 +379,7 @@ The `serviceData` property depends on the model of the device. See the section "
379379

380380
### `stopScan()` method
381381

382-
The `stopScan()` method stops to scan advertising packets coming from devices. This mothod returns nothing. Note that this method is *not* asynchronous but synchronous unlike the other methods. See the section "[`startScan()` method](#startscan-method)" for details.
382+
The `stopScan()` method stops to scan advertising packets coming from devices. This method returns nothing. Note that this method is *not* asynchronous but synchronous unlike the other methods. See the section "[`startScan()` method](#startscan-method)" for details.
383383

384384
### `onadvertisement` event handler
385385

lib/switchbot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Switchbot {
2727
if (params && params.noble) {
2828
noble = params.noble;
2929
} else {
30-
noble = require('@homebridge/noble');
30+
noble = require('@abandonware/noble');
3131
}
3232

3333
// Plublic properties

package-lock.json

Lines changed: 45 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)