mysa-js-sdk 3.1.0 → 3.1.1
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 +21 -0
- package/README.md +4 -5
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# mysa-js-sdk
|
|
2
2
|
|
|
3
|
+
## 3.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#121](https://github.com/bourquep/mysa2mqtt/pull/121) [`8fab111`](https://github.com/bourquep/mysa2mqtt/commit/8fab111568255ea6130123be8dd3fcf5cbb08b5b) Thanks [@souvik101990](https://github.com/souvik101990)! - Derive AC fan modes from `SupportedCaps` and preserve state on fan-mode changes (CodeNum=1117).
|
|
8
|
+
|
|
9
|
+
AC-V1-X thermostats (Mysa for Mini-Split) report their supported fan speeds through `SupportedCaps.fanSpeeds` and use canonical `fn` values (`[1, 2, 4, 6]`) that differ from the legacy universal mapping. `mysa2mqtt` now:
|
|
10
|
+
|
|
11
|
+
- recognizes the canonical `fn=2/4/6` values on the receive path so the current fan speed is reported instead of dropped;
|
|
12
|
+
- derives the advertised `fan_modes` from the device's actual `SupportedCaps` instead of a hardcoded list (devices without fan-speed support advertise only `auto`), deduplicating modes that map from both legacy and canonical raw values;
|
|
13
|
+
- rejects fan-mode commands the device doesn't support instead of silently reapplying the current state; and
|
|
14
|
+
- preserves the current target temperature and climate mode when changing fan mode, and keeps the current fan mode when a state update omits the fan speed.
|
|
15
|
+
|
|
16
|
+
`mysa-js-sdk` adds an optional per-mode `fanSpeeds` field to `SupportedCaps.modes` (the top-level `fanSpeeds` field was already present).
|
|
17
|
+
|
|
18
|
+
- [#217](https://github.com/bourquep/mysa2mqtt/pull/217) [`0da4a1d`](https://github.com/bourquep/mysa2mqtt/commit/0da4a1d4e95dddf9638ec00747895008a10f7ba8) Thanks [@bourquep](https://github.com/bourquep)! - Updated dependencies to latest versions
|
|
19
|
+
|
|
20
|
+
- [#220](https://github.com/bourquep/mysa2mqtt/pull/220) [`f0dc8c1`](https://github.com/bourquep/mysa2mqtt/commit/f0dc8c1c812e469cde891b513a812e717d584aff) Thanks [@dependabot](https://github.com/apps/dependabot)! - chore(deps): Bump @aws-sdk/client-iot from 3.1090.0 to 3.1094.0
|
|
21
|
+
|
|
22
|
+
- [#219](https://github.com/bourquep/mysa2mqtt/pull/219) [`6bd3f92`](https://github.com/bourquep/mysa2mqtt/commit/6bd3f920dc85697c2d9665b31e25b36767884ecd) Thanks [@dependabot](https://github.com/apps/dependabot)! - chore(deps): Bump @aws-sdk/credential-providers from 3.1090.0 to 3.1094.0
|
|
23
|
+
|
|
3
24
|
## 3.1.0
|
|
4
25
|
|
|
5
26
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -203,8 +203,7 @@ copyright notice and license text in any copy of the software or substantial por
|
|
|
203
203
|
|
|
204
204
|
## Support
|
|
205
205
|
|
|
206
|
-
For bug reports and feature requests, please use the [GitHub Issues](https://github.com/bourquep/mysa2mqtt/issues)
|
|
207
|
-
page.
|
|
206
|
+
For bug reports and feature requests, please use the [GitHub Issues](https://github.com/bourquep/mysa2mqtt/issues) page.
|
|
208
207
|
|
|
209
208
|
For general questions and discussions, join our [Discussion Forum](https://github.com/bourquep/mysa2mqtt/discussions).
|
|
210
209
|
|
|
@@ -216,6 +215,6 @@ protocol which is being used by this library.
|
|
|
216
215
|
|
|
217
216
|
## Contributors ✨
|
|
218
217
|
|
|
219
|
-
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors)
|
|
220
|
-
|
|
221
|
-
|
|
218
|
+
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. See the
|
|
219
|
+
[contributor list](https://github.com/bourquep/mysa2mqtt#contributors-) in the repository README. Contributions of any
|
|
220
|
+
kind welcome!
|
package/dist/index.d.cts
CHANGED
|
@@ -187,8 +187,8 @@ declare class EventEmitter<TEvents extends Record<string, any>> implements NodeJ
|
|
|
187
187
|
removeAllListeners<TEventName extends keyof TEvents & string>(eventName?: TEventName | undefined): this;
|
|
188
188
|
setMaxListeners(n: number): this;
|
|
189
189
|
getMaxListeners(): number;
|
|
190
|
-
listeners<TEventName extends keyof TEvents & string>(eventName: TEventName):
|
|
191
|
-
rawListeners<TEventName extends keyof TEvents & string>(eventName: TEventName):
|
|
190
|
+
listeners<TEventName extends keyof TEvents & string>(eventName: TEventName): ((...args: any[]) => void)[];
|
|
191
|
+
rawListeners<TEventName extends keyof TEvents & string>(eventName: TEventName): ((...args: any[]) => void)[];
|
|
192
192
|
listenerCount<TEventName extends keyof TEvents & string>(eventName: TEventName, listener?: (...args: TEvents[TEventName]) => void): number;
|
|
193
193
|
prependListener<TEventName extends keyof TEvents & string>(eventName: TEventName, listener: (...args: TEvents[TEventName]) => void): this;
|
|
194
194
|
prependOnceListener<TEventName extends keyof TEvents & string>(eventName: TEventName, listener: (...args: TEvents[TEventName]) => void): this;
|
|
@@ -225,6 +225,8 @@ interface SupportedCaps {
|
|
|
225
225
|
[modeId: string]: {
|
|
226
226
|
/** Array of available temperature setpoints for this mode */
|
|
227
227
|
temperatures: number[];
|
|
228
|
+
/** Array of supported raw fan speed (fn) values for this mode, if any */
|
|
229
|
+
fanSpeeds?: number[];
|
|
228
230
|
};
|
|
229
231
|
};
|
|
230
232
|
/** Version string of the capability definition */
|
package/dist/index.d.ts
CHANGED
|
@@ -187,8 +187,8 @@ declare class EventEmitter<TEvents extends Record<string, any>> implements NodeJ
|
|
|
187
187
|
removeAllListeners<TEventName extends keyof TEvents & string>(eventName?: TEventName | undefined): this;
|
|
188
188
|
setMaxListeners(n: number): this;
|
|
189
189
|
getMaxListeners(): number;
|
|
190
|
-
listeners<TEventName extends keyof TEvents & string>(eventName: TEventName):
|
|
191
|
-
rawListeners<TEventName extends keyof TEvents & string>(eventName: TEventName):
|
|
190
|
+
listeners<TEventName extends keyof TEvents & string>(eventName: TEventName): ((...args: any[]) => void)[];
|
|
191
|
+
rawListeners<TEventName extends keyof TEvents & string>(eventName: TEventName): ((...args: any[]) => void)[];
|
|
192
192
|
listenerCount<TEventName extends keyof TEvents & string>(eventName: TEventName, listener?: (...args: TEvents[TEventName]) => void): number;
|
|
193
193
|
prependListener<TEventName extends keyof TEvents & string>(eventName: TEventName, listener: (...args: TEvents[TEventName]) => void): this;
|
|
194
194
|
prependOnceListener<TEventName extends keyof TEvents & string>(eventName: TEventName, listener: (...args: TEvents[TEventName]) => void): this;
|
|
@@ -225,6 +225,8 @@ interface SupportedCaps {
|
|
|
225
225
|
[modeId: string]: {
|
|
226
226
|
/** Array of available temperature setpoints for this mode */
|
|
227
227
|
temperatures: number[];
|
|
228
|
+
/** Array of supported raw fan speed (fn) values for this mode, if any */
|
|
229
|
+
fanSpeeds?: number[];
|
|
228
230
|
};
|
|
229
231
|
};
|
|
230
232
|
/** Version string of the capability definition */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mysa-js-sdk",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "A JavaScript SDK for accessing Mysa smart thermostats.",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"build:docs": "typedoc"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@aws-sdk/client-iot": "3.
|
|
54
|
-
"@aws-sdk/credential-providers": "3.
|
|
53
|
+
"@aws-sdk/client-iot": "3.1094.0",
|
|
54
|
+
"@aws-sdk/credential-providers": "3.1094.0",
|
|
55
55
|
"amazon-cognito-identity-js": "6.3.20",
|
|
56
56
|
"aws-iot-device-sdk-v2": "1.27.0",
|
|
57
57
|
"dayjs": "1.11.21",
|