matterbridge-example-dynamic-platform 2.0.1-dev-20251111-59f5416 → 2.0.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 +3 -3
- package/dist/module.js +5 -9
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -25,13 +25,13 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
25
25
|
<img src="bmc-button.svg" alt="Buy me a coffee" width="120">
|
|
26
26
|
</a>
|
|
27
27
|
|
|
28
|
-
## [2.0.1] - 2025-11-
|
|
28
|
+
## [2.0.1] - 2025-11-13
|
|
29
29
|
|
|
30
30
|
### Changed
|
|
31
31
|
|
|
32
32
|
- [package]: Updated dependencies.
|
|
33
|
-
- [package]: Bumped package to automator v.
|
|
34
|
-
- [jest]: Updated jestHelpers to v.
|
|
33
|
+
- [package]: Bumped package to automator v.2.0.12.
|
|
34
|
+
- [jest]: Updated jestHelpers to v.1.0.12.
|
|
35
35
|
- [workflows]: Use shallow clones and --no-fund --no-audit for faster builds.
|
|
36
36
|
|
|
37
37
|
<a href="https://www.buymeacoffee.com/luligugithub">
|
package/dist/module.js
CHANGED
|
@@ -642,23 +642,19 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
|
642
642
|
if (context.offline === true)
|
|
643
643
|
return;
|
|
644
644
|
if (newValue === FanControl.FanMode.Off) {
|
|
645
|
-
this.airPurifier?.setAttribute(FanControl.Cluster.id, '
|
|
645
|
+
this.airPurifier?.setAttribute(FanControl.Cluster.id, 'percentSetting', 0, this.airPurifier?.log);
|
|
646
646
|
this.airPurifier?.setAttribute(FanControl.Cluster.id, 'percentCurrent', 0, this.airPurifier?.log);
|
|
647
647
|
}
|
|
648
648
|
else if (newValue === FanControl.FanMode.Low) {
|
|
649
|
-
this.airPurifier?.setAttribute(FanControl.Cluster.id, '
|
|
649
|
+
this.airPurifier?.setAttribute(FanControl.Cluster.id, 'percentSetting', 33, this.airPurifier?.log);
|
|
650
650
|
this.airPurifier?.setAttribute(FanControl.Cluster.id, 'percentCurrent', 33, this.airPurifier?.log);
|
|
651
651
|
}
|
|
652
652
|
else if (newValue === FanControl.FanMode.Medium) {
|
|
653
|
-
this.airPurifier?.setAttribute(FanControl.Cluster.id, '
|
|
653
|
+
this.airPurifier?.setAttribute(FanControl.Cluster.id, 'percentSetting', 66, this.airPurifier?.log);
|
|
654
654
|
this.airPurifier?.setAttribute(FanControl.Cluster.id, 'percentCurrent', 66, this.airPurifier?.log);
|
|
655
655
|
}
|
|
656
|
-
else if (newValue === FanControl.FanMode.High) {
|
|
657
|
-
this.airPurifier?.setAttribute(FanControl.Cluster.id, '
|
|
658
|
-
this.airPurifier?.setAttribute(FanControl.Cluster.id, 'percentCurrent', 100, this.airPurifier?.log);
|
|
659
|
-
}
|
|
660
|
-
else if (newValue === FanControl.FanMode.On) {
|
|
661
|
-
this.airPurifier?.setAttribute(FanControl.Cluster.id, 'percentSettings', 100, this.airPurifier?.log);
|
|
656
|
+
else if (newValue === FanControl.FanMode.High || newValue === FanControl.FanMode.On || newValue === FanControl.FanMode.Auto) {
|
|
657
|
+
this.airPurifier?.setAttribute(FanControl.Cluster.id, 'percentSetting', 100, this.airPurifier?.log);
|
|
662
658
|
this.airPurifier?.setAttribute(FanControl.Cluster.id, 'percentCurrent', 100, this.airPurifier?.log);
|
|
663
659
|
}
|
|
664
660
|
}, this.airPurifier.log);
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-example-dynamic-platform",
|
|
3
|
-
"version": "2.0.1
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge-example-dynamic-platform",
|
|
9
|
-
"version": "2.0.1
|
|
9
|
+
"version": "2.0.1",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"node-ansi-logger": "3.1.1",
|