Skip to content

Commit 54bf7b2

Browse files
v1.2.0 (#103)
## [Version 1.2.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.2.0) (2022-03-04) ### Changes - Added support for SwitchBot "Contact" and "Motion" - Fix for Curtains on Firmware v3.3 and above - Housekeeping and update dependencies **Full Changelog**: v1.1.2...v1.2.0
1 parent 00d342c commit 54bf7b2

13 files changed

+955
-1043
lines changed

.github/workflows/label.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/labeler@v3
16+
- uses: actions/labeler@v4
1717
with:
1818
repo-token: '${{ secrets.GITHUB_TOKEN }}'

.github/workflows/nodejs-beta.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
33

4-
name: NodeJS-Beta
4+
name: Beta
55

66
on:
77
push:
@@ -12,8 +12,8 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
16-
- uses: actions/setup-node@v2
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-node@v3
1717
with:
1818
node-version: 14
1919
- name: npm install
@@ -30,8 +30,8 @@ jobs:
3030
runs-on: ubuntu-latest
3131

3232
steps:
33-
- uses: actions/checkout@v2
34-
- uses: actions/setup-node@v2
33+
- uses: actions/checkout@v3
34+
- uses: actions/setup-node@v3
3535
with:
3636
node-version: 14
3737
registry-url: https://registry.npmjs.org/

.github/workflows/nodejs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: NodeJS
1+
name: Latest
22

33
on:
44
push:
@@ -11,15 +11,15 @@ jobs:
1111
build:
1212
strategy:
1313
matrix:
14-
node-version: [12, 13, 14, 15, 16]
14+
node-version: [14.x, 16.x]
1515
os: [ubuntu-latest]
1616

1717
runs-on: ${{ matrix.os }}
1818

1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v3
2121
- name: Use Node.js ${{ matrix.node-version }}
22-
uses: actions/setup-node@v2
22+
uses: actions/setup-node@v3
2323
with:
2424
node-version: ${{ matrix.node-version }}
2525
- name: npm install
@@ -37,8 +37,8 @@ jobs:
3737
runs-on: ubuntu-latest
3838

3939
steps:
40-
- uses: actions/checkout@v2
41-
- uses: actions/setup-node@v2
40+
- uses: actions/checkout@v3
41+
- uses: actions/setup-node@v3
4242
with:
4343
node-version: 14 # use the minimum required version
4444
registry-url: https://registry.npmjs.org/

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
env:
1313
ACTIONS_STEP_DEBUG: true
1414
steps:
15-
- uses: actions/stale@v4
15+
- uses: actions/stale@v5
1616
with:
1717
repo-token: ${{ secrets.GITHUB_TOKEN }}
1818
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'

CHANGELOG.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,32 @@
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.2.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.2.0) (2022-03-04)
6+
7+
### Changes
8+
9+
- Added support for SwitchBot "Contact" and "Motion"
10+
- Fix for Curtains on Firmware v3.3 and above
11+
- Housekeeping and update dependencies
12+
13+
**Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v1.1.2...v1.2.0
14+
515
## [Version 1.1.2](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.1.2) (2021-11-13)
616

717
### Changes
818

919
- Housekeeping and update dependencies
1020

21+
**Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v1.1.1...v1.1.2
22+
1123
## [Version 1.1.1](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.1.1) (2021-11-02)
1224

1325
### Changes
1426

1527
- Change back from @node/noble to @abandonware/noble
1628

29+
**Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v1.1.0...v1.1.1
30+
1731
## [Version 1.1.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.1.0) (2021-10-26)
1832

1933
### Changes
@@ -22,93 +36,123 @@ All notable changes to this project will be documented in this file. This projec
2236
- Add Humidifier advertisement
2337
- Correct Model for advertisement
2438

39+
**Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.8...v1.1.0
40+
2541
## [Version 1.0.8](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.8) (2021-09-30)
2642

2743
### Changes
2844

2945
- fix extra trace of old noble from @abandonware/noble
3046

47+
**Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.7...v1.0.8
48+
3149
## [Version 1.0.7](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.7) (2021-09-24)
3250

3351
### Changes
3452

3553
- Change from @abandonware/noble to @homebridge/noble
3654

55+
**Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.6...v1.0.7
56+
3757
## [Version 1.0.6](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.6) (2021-08-29)
3858

3959
### Changes
4060

4161
- Fixes FATAL ERROR: ad_id is not defined
4262

63+
**Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.5...v1.0.6
64+
4365
## [Version 1.0.5](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.5) (2021-08-04)
4466

4567
### Changes
4668

4769
- Adding code for Contact and Motion Sensors
4870
- Not Ready to be used yet though
4971

72+
**Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.4...v1.0.5
73+
5074
## [Version 1.0.4](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.4) (2021-08-03)
5175

5276
### Changes
5377

5478
- Support for the discover method with id on macOS
5579

80+
**Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.3...v1.0.4
81+
5682
## [Version 1.0.3](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.3) (2021-07-30)
5783

5884
### Changes
5985

6086
- Fixed misspelling.
6187

88+
**Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.2...v1.0.3
89+
6290
## [Version 1.0.2](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.2) (2021-07-29)
6391

6492
### Changes
6593

6694
- Housekeeping and update dependencies
6795

96+
**Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.1...v1.0.2
97+
6898
## [Version 1.0.1](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.1) (2021-07-29)
6999

70100
### Changes
71101

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

104+
**Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v1.0.0...v1.0.1
105+
74106
## [Version 1.0.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.0) (2021-01-21)
75107

76108
### Changes
77109

78110
- * fix "No device was found" in MacOS
79111

112+
**Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v0.2.0...v1.0.0
113+
80114
## [Version 0.2.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v0.2.0) (2020-11-05)
81115

82116
### Changes
83117

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

120+
**Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v0.1.0...v0.2.0
121+
86122
## [Version 0.1.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v0.1.0) (2020-10-28)
87123

88124
### Changes
89125

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

129+
**Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v0.0.5...v0.1.0
130+
93131
## [Version 0.0.5](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v0.0.5) (2020-02-19)
94132

95133
### Changes
96134

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

137+
**Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v0.0.4...v0.0.5
138+
99139
## [Version 0.0.4](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v0.0.4) (2020-02-11)
100140

101141
### Changes
102142

103143
- 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))
104144

145+
**Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v0.0.3...v0.0.4
146+
105147
## [Version 0.0.3](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v0.0.3) (2020-02-10)
106148

107149
### Changes
108150

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

154+
**Full Changelog**: https://github.com/OpenWonderLabs/node-switchbot/compare/v0.0.2...v0.0.3
155+
112156
## [Version 0.0.2](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v0.0.2) (2019-11-20)
113157

114158
### Changes

0 commit comments

Comments
 (0)