matterbridge-example-accessory-platform 2.0.10 → 2.0.11-dev-20260319-07bb275

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 CHANGED
@@ -26,6 +26,26 @@ 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] - Dev branch
30
+
31
+ ### Added
32
+
33
+ - [package]: Add `@eslint/json`.
34
+ - [package]: Add `@eslint/markdown`.
35
+ - [package]: Add `CONTRIBUTING.md`.
36
+ - [package]: Add `STYLEGUIDE.md`.
37
+
38
+ ### Changed
39
+
40
+ - [package]: Update dependencies.
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
+
47
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
48
+
29
49
  ## [2.0.10] - 2026-02-27
30
50
 
31
51
  ### Added
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
- await this.cover?.setWindowCoveringTargetAsCurrentAndStopped();
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
- await this.cover?.setWindowCoveringCurrentTargetStatus(0, 0, WindowCovering.MovementStatus.Stopped);
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
- await this.cover?.setWindowCoveringCurrentTargetStatus(10000, 10000, WindowCovering.MovementStatus.Stopped);
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
- await this.cover?.setWindowCoveringCurrentTargetStatus(liftPercent100thsValue, liftPercent100thsValue, WindowCovering.MovementStatus.Stopped);
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() {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "matterbridge-example-accessory-platform",
3
- "version": "2.0.10",
3
+ "version": "2.0.11-dev-20260319-07bb275",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "matterbridge-example-accessory-platform",
9
- "version": "2.0.10",
9
+ "version": "2.0.11-dev-20260319-07bb275",
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.10",
3
+ "version": "2.0.11-dev-20260319-07bb275",
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.2",
70
+ "eslint": "10.0.3",
71
71
  "@eslint/js": "10.0.1"
72
72
  }
73
73
  }