homebridge-smartthings-oauth 1.0.3 → 1.0.4

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 ADDED
@@ -0,0 +1,19 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [1.0.4] - YYYY-MM-DD
10
+ ### Added
11
+ - 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.
12
+ - 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`).
13
+
14
+ ### Changed
15
+ - Refactored optional mode handling in `AirConditionerService` to support creating multiple switches (`Speed`, `WindFree`) based on the single "Speed and Windfree" configuration value.
16
+ - 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.
17
+
18
+ ### Fixed
19
+ - 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,27 @@ 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
+ # Changelog
116
+ All notable changes to this project will be documented in this file.
117
+
118
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
119
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
120
+
121
+ ## [Unreleased]
122
+
123
+ ## [1.0.4]
124
+ ### Added
125
+ - Support for selecting "Speed and Windfree" in config to expose separate switches.
126
+ - Descriptions with links to setup instructions for `client_id` and `client_secret` in `config.schema.json`.
127
+
128
+ ### Changed
129
+ - Optional mode handling refactored in `AirConditionerService` to support multiple switches from a single config entry.
130
+ - Hidden `AccessToken` and `WebhookToken` from the Homebridge config UI (`config.schema.json`).
131
+
132
+ ### Fixed
133
+ - Build error related to potentially undefined `this.optionalMode` when setting up a single optional mode switch (TS2345).
134
+
135
+ ## [1.0.3]
136
+ ### Added
137
+ - Initial feature X.
138
+
@@ -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#instructions) 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#instructions) 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.3",
5
+ "version": "1.0.4",
6
6
  "description": "Connects SmartThings devices to Homebridge. Automatically discovers devices.",
7
7
  "license": "Apache-2.0",
8
8
  "repository": {