Skip to content

Commit 6dcc39e

Browse files
committed
v1.1.0
## [Version 1.1.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.1.0) (2021-10-26) ### Changes - Add Contact/Motion Sensor advertisement - Add Humidifier advertisement - Correct Model for advertisement
1 parent 134d642 commit 6dcc39e

17 files changed

+621
-897
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: SwitchBot (Official website)
4-
url: https://www.switch-bot.com/
4+
url: https://www.switch-bot.com/
5+
about: The Offical SwitchBot Website.
56
- name: Facebook @SwitchBotRobot
6-
url: https://www.facebook.com/SwitchBotRobot/
7+
url: https://www.facebook.com/SwitchBotRobot/
8+
about: The Offical SwitchBot Facebook Page.
79
- name: Twitter @SwitchBot
8-
url: https://twitter.com/switchbot
10+
url: https://twitter.com/switchbot
11+
about: The Offical SwitchBot Twitter.

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
build:
1212
strategy:
1313
matrix:
14-
node-version: [12.x, 13.x, 14.x, 15.x, 16.x,]
14+
node-version: [12, 13, 14, 15, 16]
1515
os: [ubuntu-latest]
1616

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

.github/workflows/stale.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
stale-pr-message: 'This pull request 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.'
2020
stale-issue-label: 'stale'
2121
stale-pr-label: 'stale'
22-
days-before-stale: 10
23-
days-before-close: 1
22+
days-before-stale: 30
23+
days-before-close: 5
2424
exempt-issue-labels: 'pinned'
2525
exempt-pr-labels: 'awaiting-approval,work-in-progress'
2626
remove-stale-when-updated: true

CHANGELOG.md

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/)
4+
5+
## [Version 1.1.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.1.0) (2021-10-26)
6+
7+
### Changes
8+
9+
- Add Contact/Motion Sensor advertisement
10+
- Add Humidifier advertisement
11+
- Correct Model for advertisement
12+
13+
## [Version 1.0.8](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.8) (2021-09-30)
14+
15+
### Changes
16+
17+
- fix extra trace of old noble from @abandonware/noble
18+
19+
## [Version 1.0.7](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.7) (2021-09-24)
20+
21+
### Changes
22+
23+
- Change from @abandonware/noble to @homebridge/noble
24+
25+
## [Version 1.0.6](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.6) (2021-08-29)
26+
27+
### Changes
28+
29+
- Fixes FATAL ERROR: ad_id is not defined
30+
31+
## [Version 1.0.5](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.5) (2021-08-04)
32+
33+
### Changes
34+
35+
- Adding code for Contact and Motion Sensors
36+
- Not Ready to be used yet though
37+
38+
## [Version 1.0.4](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.4) (2021-08-03)
39+
40+
### Changes
41+
42+
- Support for the discover method with id on macOS
43+
44+
## [Version 1.0.3](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.3) (2021-07-30)
45+
46+
### Changes
47+
48+
- Fixed misspelling.
49+
50+
## [Version 1.0.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.2) (2021-07-29)
51+
52+
### Changes
53+
54+
- Housekeeping and update dependencies
55+
56+
## [Version 1.0.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.1) (2021-07-29)
57+
58+
### Changes
59+
60+
- Fixed issue where after switching Bluetooth off and on, would not work properly.
61+
62+
## [Version 1.0.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.0) (2021-01-21)
63+
64+
### Changes
65+
66+
- * fix "No device was found" in MacOS
67+
68+
## [Version 0.2.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v0.2.0) (2020-11-05)
69+
70+
### Changes
71+
72+
- Modify Curtain's action command to support group and running mode. (Thanks to [@SwitchBot-Wonderlabs](https://github.com/OpenWonderLabs/node-switchbot/pull/7/))
73+
74+
## [Version 0.1.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v0.1.0) (2020-10-28)
75+
76+
### Changes
77+
78+
- Added support for SwitchBot Curtain. (Thanks to [@SwitchBot-Wonderlabs](https://github.com/OpenWonderLabs/node-switchbot/pull/6/))
79+
- Added support for running on the Raspberry Pi Zero W. (Thanks to [@zizi4n5](https://github.com/OpenWonderLabs/node-switchbot/pull/5))
80+
81+
## [Version 0.0.5](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v0.0.5) (2020-02-19)
82+
83+
### Changes
84+
85+
- Improved the stability of discovering the BLE characteristics. (Thanks to [@dnicolson](https://github.com/OpenWonderLabs/node-switchbot/issues/3))
86+
87+
## [Version 0.0.4](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v0.0.4) (2020-02-11)
88+
89+
### Changes
90+
91+
- 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))
92+
93+
## [Version 0.0.3](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v0.0.3) (2020-02-10)
94+
95+
### Changes
96+
97+
- 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))
98+
- Fixed the bug that the `turnOn()` method returns an error if the "Press mode" is selected on the Bot.
99+
100+
## [Version 0.0.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v0.0.2) (2019-11-20)
101+
102+
### Changes
103+
104+
- First public release

README.md

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99

1010
</span>
1111

12-
13-
14-
1512
The node-switchbot is a Node.js module which allows you to move your [Switchbot (Bot)](https://www.switch-bot.com/bot)'s arm and [Switchbot Curtain(Curtain)](https://www.switch-bot.com/products/switchbot-curtain), also monitor the temperature/humidity from [SwitchBot Thermometer & Hygrometer (Meter)](https://www.switch-bot.com/meter).
1613

1714
This module is unofficial. It was developed by reference to [the official python code](https://github.com/OpenWonderLabs/python-host). But some functionalities of this module were developed through trial and error. So some information obtained from this module might be wrong.
@@ -898,53 +895,8 @@ Property | Type | Description
898895
`position` | Integer | This value indicates the percentage of current position (`0-100`, 0 is open, `%`).
899896
`lightLevel` | Integer | This value indicates the light level of the light source currently set (`1-10`).
900897

901-
---------------------------------------
902-
## Release Note
903-
904-
* v1.0.0 (2021-01-21)
905-
* fix "No device was found" in MacOS
906-
* v0.2.0 (2020-11-05)
907-
* Modify Curtain's action command to support group and running mode. (Thanks to [@SwitchBot-Wonderlabs](https://github.com/futomi/node-switchbot/pull/7/))
908-
* v0.1.0 (2020-10-28)
909-
* Added support for SwitchBot Curtain. (Thanks to [@SwitchBot-Wonderlabs](https://github.com/futomi/node-switchbot/pull/6/))
910-
* Added support for running on the Raspberry Pi Zero W. (Thanks to [@zizi4n5](https://github.com/futomi/node-switchbot/pull/5))
911-
* v0.0.5 (2020-02-19)
912-
* Improved the stability of discovering the BLE characteristics. (Thanks to [@dnicolson](https://github.com/futomi/node-switchbot/issues/3))
913-
* v0.0.4 (2020-02-11)
914-
* Fixed the bug that temperature value lower than 0 degC could not be handled. (Thanks to [@musimasami](https://github.com/futomi/node-switchbot/issues/2))
915-
* v0.0.3 (2020-02-10)
916-
* 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/futomi/node-switchbot/issues/1))
917-
* Fixed the bug that the `turnOn()` method returns an error if the "Press mode" is selected on the Bot.
918-
* v0.0.2 (2019-11-20)
919-
* First public release
920-
921898
---------------------------------------
922899
## References
923900

924901
* [Switchbot official global site](https://www.switch-bot.com/)
925-
* [Github - OpenWonderLabs/python-host](https://github.com/OpenWonderLabs/python-host)
926-
927-
---------------------------------------
928-
## License
929-
930-
The MIT License (MIT)
931-
932-
Copyright (c) 2019-2020 Futomi Hatano
933-
934-
Permission is hereby granted, free of charge, to any person obtaining a copy
935-
of this software and associated documentation files (the "Software"), to deal
936-
in the Software without restriction, including without limitation the rights
937-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
938-
copies of the Software, and to permit persons to whom the Software is
939-
furnished to do so, subject to the following conditions:
940-
941-
The above copyright notice and this permission notice shall be included in all
942-
copies or substantial portions of the Software.
943-
944-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
945-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
946-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
947-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
948-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
949-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
950-
SOFTWARE.
902+
* [Github - OpenWonderLabs/python-host](https://github.com/OpenWonderLabs/python-host)

lib/parameter-checker.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
/* ------------------------------------------------------------------
2-
* node-switchbot - parameter-checker.js
3-
*
4-
* Copyright (c) 2019, Futomi Hatano, All rights reserved.
5-
* Released under the MIT license
6-
* Date: 2019-11-16
7-
* ---------------------------------------------------------------- */
81
'use strict';
92

103
class ParameterChecker {

lib/switchbot-advertising.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
/* ------------------------------------------------------------------
2-
* node-linking - switchbot-advertising.js
3-
*
4-
* Copyright (c) 2019, Futomi Hatano, All rights reserved.
5-
* Released under the MIT license
6-
* Date: 2020-02-11
7-
* ---------------------------------------------------------------- */
81
'use strict';
92

103
class SwitchbotAdvertising {

lib/switchbot-device-wocontact.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
/* ------------------------------------------------------------------
2-
* node-linking - switchbot-device-wocontact.js
3-
*
4-
* Copyright (c) 2019, Futomi Hatano, All rights reserved.
5-
* Released under the MIT license
6-
* Date: 2019-11-16
7-
* ---------------------------------------------------------------- */
81
'use strict';
92
const SwitchbotDevice = require('./switchbot-device.js');
103

lib/switchbot-device-wocurtain.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
/* ------------------------------------------------------------------
2-
* node-linking - switchbot-device-wocurtain.js
3-
*
4-
* Copyright (c) 2020, SwitchBot, All rights reserved.
5-
* Released under the MIT license
6-
* Date: 2020-10-26
7-
* ---------------------------------------------------------------- */
81
'use strict';
92
const SwitchbotDevice = require('./switchbot-device.js');
103

lib/switchbot-device-wohand.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
/* ------------------------------------------------------------------
2-
* node-linking - switchbot-device-wohand.js
3-
*
4-
* Copyright (c) 2019-2020, Futomi Hatano, All rights reserved.
5-
* Released under the MIT license
6-
* Date: 2020-02-10
7-
* ---------------------------------------------------------------- */
81
'use strict';
92
const SwitchbotDevice = require('./switchbot-device.js');
103

0 commit comments

Comments
 (0)