homebridge-smartthings-oauth 1.0.3 → 1.0.5
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 +20 -0
- package/README.md +1 -0
- package/config.schema.json +2 -16
- package/package.json +1 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
All notable changes to this project will be documented in this file.
|
|
3
|
+
|
|
4
|
+
## [Released]
|
|
5
|
+
|
|
6
|
+
## [1.0.5]
|
|
7
|
+
### Changed
|
|
8
|
+
- Corrected and updated CHANGELOG.md details for version 1.0.4.
|
|
9
|
+
|
|
10
|
+
## [1.0.4]
|
|
11
|
+
### Added
|
|
12
|
+
- Support for selecting "Speed and Windfree" under "Optional Mode For Air Conditioners" in the configuration. This option exposes separate HomeKit switches for the Speed and WindFree modes.
|
|
13
|
+
- Added descriptive text and a link to setup instructions ([README](https://github.com/aziz66/homebridge-smartthings?tab=readme-ov-file#instructions)) for the `client_id` and `client_secret` fields in the plugin configuration UI (`config.schema.json`).
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- Refactored optional mode handling in `AirConditionerService` to support creating multiple switches (`Speed`, `WindFree`) based on the single "Speed and Windfree" configuration value.
|
|
17
|
+
- Updated `config.schema.json` to hide the `AccessToken` and `WebhookToken` fields from the Homebridge configuration UI, as these are handled automatically by the OAuth2 flow and persistent storage.
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
- Resolved TypeScript build error `TS2345: Argument of type 'OptionalMode | undefined' is not assignable...` by adding a non-null assertion (`!`) where `this.optionalMode` is used in the single-mode setup path within the constructor of `AirConditionerService`, ensuring type safety in that specific code path.
|
package/README.md
CHANGED
|
@@ -112,3 +112,4 @@ After installing the plugin, you can configure the plugin from homebridge ui, yo
|
|
|
112
112
|
### 5. Authorize the plugin
|
|
113
113
|
Once you have configured the plugin, you can authorize the plugin by clicking the authorize link found in the plugin log, after authorization proceed to restart homebridge.
|
|
114
114
|
|
|
115
|
+
|
package/config.schema.json
CHANGED
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"title": "Client ID",
|
|
22
22
|
"type": "string",
|
|
23
23
|
"required": true,
|
|
24
|
-
"description": "OAuth2 Client ID from SmartThings"
|
|
24
|
+
"description": "OAuth2 Client ID from SmartThings. Obtained using the SmartThings CLI 'apps:create' command. See [Setup Instructions](https://github.com/aziz66/homebridge-smartthings?tab=readme-ov-file#getting-started) for details."
|
|
25
25
|
},
|
|
26
26
|
"client_secret": {
|
|
27
27
|
"title": "Client Secret",
|
|
28
28
|
"type": "string",
|
|
29
29
|
"required": true,
|
|
30
30
|
"format": "password",
|
|
31
|
-
"description": "OAuth2 Client Secret from SmartThings"
|
|
31
|
+
"description": "OAuth2 Client Secret from SmartThings. Obtained using the SmartThings CLI 'apps:create' command. Save this value securely! See [Setup Instructions](https://github.com/aziz66/homebridge-smartthings?tab=readme-ov-file#getting-started) for details."
|
|
32
32
|
},
|
|
33
33
|
"server_url": {
|
|
34
34
|
"title": "Server URL",
|
|
@@ -43,20 +43,6 @@
|
|
|
43
43
|
"default": 3000,
|
|
44
44
|
"description": "Port for webhook server and OAuth callback"
|
|
45
45
|
},
|
|
46
|
-
"AccessToken": {
|
|
47
|
-
"title": "Access Token",
|
|
48
|
-
"type": "string",
|
|
49
|
-
"required": false,
|
|
50
|
-
"default": "",
|
|
51
|
-
"description": "Will be automatically populated during OAuth2 flow"
|
|
52
|
-
},
|
|
53
|
-
"WebhookToken": {
|
|
54
|
-
"title": "Webhook Token",
|
|
55
|
-
"type": "string",
|
|
56
|
-
"required": false,
|
|
57
|
-
"default": ""
|
|
58
|
-
},
|
|
59
|
-
|
|
60
46
|
"GarageDoorMaxPoll": {
|
|
61
47
|
"title": "Garage Door Max Poll",
|
|
62
48
|
"type": "integer",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"private": false,
|
|
3
3
|
"displayName": "Homebridge Smartthings oAuth Plugin",
|
|
4
4
|
"name": "homebridge-smartthings-oauth",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.5",
|
|
6
6
|
"description": "Connects SmartThings devices to Homebridge. Automatically discovers devices.",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"repository": {
|