matterbridge-example-accessory-platform 2.0.11-dev-20260318-d475c11 → 2.0.11
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 +8 -4
- package/dist/module.js +28 -8
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -26,7 +26,7 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
26
26
|
|
|
27
27
|
<a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="120"></a>
|
|
28
28
|
|
|
29
|
-
## [2.0.11] -
|
|
29
|
+
## [2.0.11] - 2026-03-20
|
|
30
30
|
|
|
31
31
|
### Added
|
|
32
32
|
|
|
@@ -38,9 +38,13 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
38
38
|
### Changed
|
|
39
39
|
|
|
40
40
|
- [package]: Update dependencies.
|
|
41
|
-
- [package]: Bump package to `automator` v.3.1.
|
|
42
|
-
- [
|
|
43
|
-
- [
|
|
41
|
+
- [package]: Bump package to `automator` v.3.1.3.
|
|
42
|
+
- [devcontainer]: Update `Dev Container` configuration.
|
|
43
|
+
- [devcontainer]: Add postStartCommand to the `Dev Container` configuration.
|
|
44
|
+
- [package]: Refactor `build.yml` to use matterbridge dev branch for push and main for pull requests.
|
|
45
|
+
- [package]: Add `type checking` script for Jest tests.
|
|
46
|
+
- [package]: Update actions versions in workflows.
|
|
47
|
+
- [package]: Bump `eslint` to v.10.1.0.
|
|
44
48
|
|
|
45
49
|
<a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
|
|
46
50
|
|
package/dist/module.js
CHANGED
|
@@ -26,21 +26,41 @@ export class ExampleMatterbridgeAccessoryPlatform extends MatterbridgeAccessoryP
|
|
|
26
26
|
this.cover.addCommandHandler('identify', async ({ request: { identifyTime } }) => {
|
|
27
27
|
this.cover?.log.info(`Command identify called identifyTime: ${identifyTime}`);
|
|
28
28
|
});
|
|
29
|
-
this.cover.addCommandHandler('stopMotion', async () => {
|
|
29
|
+
this.cover.addCommandHandler('stopMotion', async ({ attributes }) => {
|
|
30
30
|
this.cover?.log.info(`Command stopMotion called`);
|
|
31
|
-
|
|
31
|
+
attributes.targetPositionLiftPercent100ths = attributes.currentPositionLiftPercent100ths;
|
|
32
|
+
attributes.operationalStatus = {
|
|
33
|
+
global: WindowCovering.MovementStatus.Stopped,
|
|
34
|
+
lift: WindowCovering.MovementStatus.Stopped,
|
|
35
|
+
tilt: WindowCovering.MovementStatus.Stopped,
|
|
36
|
+
};
|
|
32
37
|
});
|
|
33
|
-
this.cover.addCommandHandler('upOrOpen', async () => {
|
|
38
|
+
this.cover.addCommandHandler('upOrOpen', async ({ attributes }) => {
|
|
34
39
|
this.cover?.log.info(`Command upOrOpen called`);
|
|
35
|
-
|
|
40
|
+
attributes.currentPositionLiftPercent100ths = 0;
|
|
41
|
+
attributes.operationalStatus = {
|
|
42
|
+
global: WindowCovering.MovementStatus.Stopped,
|
|
43
|
+
lift: WindowCovering.MovementStatus.Stopped,
|
|
44
|
+
tilt: WindowCovering.MovementStatus.Stopped,
|
|
45
|
+
};
|
|
36
46
|
});
|
|
37
|
-
this.cover.addCommandHandler('downOrClose', async () => {
|
|
47
|
+
this.cover.addCommandHandler('downOrClose', async ({ attributes }) => {
|
|
38
48
|
this.cover?.log.info(`Command downOrClose called`);
|
|
39
|
-
|
|
49
|
+
attributes.currentPositionLiftPercent100ths = 10000;
|
|
50
|
+
attributes.operationalStatus = {
|
|
51
|
+
global: WindowCovering.MovementStatus.Stopped,
|
|
52
|
+
lift: WindowCovering.MovementStatus.Stopped,
|
|
53
|
+
tilt: WindowCovering.MovementStatus.Stopped,
|
|
54
|
+
};
|
|
40
55
|
});
|
|
41
|
-
this.cover.addCommandHandler('goToLiftPercentage', async ({ request: { liftPercent100thsValue } }) => {
|
|
56
|
+
this.cover.addCommandHandler('goToLiftPercentage', async ({ request: { liftPercent100thsValue }, attributes }) => {
|
|
42
57
|
this.cover?.log.info(`Command goToLiftPercentage called request ${liftPercent100thsValue}`);
|
|
43
|
-
|
|
58
|
+
attributes.currentPositionLiftPercent100ths = liftPercent100thsValue;
|
|
59
|
+
attributes.operationalStatus = {
|
|
60
|
+
global: WindowCovering.MovementStatus.Stopped,
|
|
61
|
+
lift: WindowCovering.MovementStatus.Stopped,
|
|
62
|
+
tilt: WindowCovering.MovementStatus.Stopped,
|
|
63
|
+
};
|
|
44
64
|
});
|
|
45
65
|
}
|
|
46
66
|
async onConfigure() {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-example-accessory-platform",
|
|
3
|
-
"version": "2.0.11
|
|
3
|
+
"version": "2.0.11",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge-example-accessory-platform",
|
|
9
|
-
"version": "2.0.11
|
|
9
|
+
"version": "2.0.11",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"node-ansi-logger": "3.2.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-example-accessory-platform",
|
|
3
|
-
"version": "2.0.11
|
|
3
|
+
"version": "2.0.11",
|
|
4
4
|
"description": "Matterbridge accessory plugin",
|
|
5
5
|
"author": "https://github.com/Luligu",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"node-persist-manager": "2.0.1"
|
|
68
68
|
},
|
|
69
69
|
"overrides": {
|
|
70
|
-
"eslint": "10.0
|
|
70
|
+
"eslint": "10.1.0",
|
|
71
71
|
"@eslint/js": "10.0.1"
|
|
72
72
|
}
|
|
73
73
|
}
|