matterbridge-example-accessory-platform 2.0.15-dev-20260605-b20d1c2 → 2.0.16

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
@@ -28,7 +28,7 @@ If you like this project and find it useful, please consider giving it a star on
28
28
 
29
29
  <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="120"></a>
30
30
 
31
- ## [2.0.15] - Dev branch
31
+ ## [2.0.16] - 2026-05-06
32
32
 
33
33
  ### Breaking changes
34
34
 
@@ -42,6 +42,7 @@ If you like this project and find it useful, please consider giving it a star on
42
42
 
43
43
  - [package]: Update dependencies.
44
44
  - [package]: Bump package to `automator` v.3.1.11.
45
+
45
46
  - [package]: Bump `@eslint/json` to v.2.0.0.
46
47
  - [package]: Bump `@eslint/markdown` to v.8.0.2.
47
48
  - [package]: Bump `@types/node` to v.25.9.1.
@@ -54,6 +55,7 @@ If you like this project and find it useful, please consider giving it a star on
54
55
  - [package]: Bump `ts-jest` to v.29.4.11.
55
56
  - [package]: Bump `typescript-eslint` to v.8.60.1.
56
57
  - [package]: Bump `vitest` to v.4.1.8.
58
+
57
59
  - [oxlint]: Bump `oxlint` config to v.1.0.2.
58
60
  - [oxfmt]: Bump `oxfmt` config to v.1.0.2.
59
61
  - [jest]: Bump `jest` config to v.2.0.2.
@@ -66,6 +68,7 @@ If you like this project and find it useful, please consider giving it a star on
66
68
  - [workflow]: Bump `.github\workflows\build.yml` config to v.2.0.4.
67
69
  - [workflow]: Bump `.github\workflows\codecov.yml` config to v.2.0.4.
68
70
  - [workflow]: Bump `.github\workflows\publish.yml` config to v.2.0.4.
71
+
69
72
  - [claude]: Move CLAUDE.md in the repo root.
70
73
  - [claude]: Add .claude/settings.json with permissions configuration.
71
74
 
package/dist/module.js CHANGED
@@ -9,23 +9,19 @@ export class ExampleMatterbridgeAccessoryPlatform extends MatterbridgeAccessoryP
9
9
  coverInterval;
10
10
  constructor(matterbridge, log, config) {
11
11
  super(matterbridge, log, config);
12
- if (typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('3.4.0')) {
13
- throw new Error(`This plugin requires Matterbridge version >= "3.4.0". Please update Matterbridge from ${this.matterbridge.matterbridgeVersion} to the latest version in the frontend.`);
12
+ if (typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('3.8.0')) {
13
+ throw new Error(`This plugin requires Matterbridge version >= "3.8.0". Please update Matterbridge from ${this.matterbridge.matterbridgeVersion} to the latest version in the frontend.`);
14
14
  }
15
15
  this.log.info('Initializing platform:', this.config.name);
16
16
  }
17
17
  async onStart(reason) {
18
18
  this.log.info('onStart called with reason:', reason ?? 'none');
19
- this.cover = new MatterbridgeEndpoint([coverDevice, powerSource], { id: 'Cover example device' }, this.config.debug);
20
- this.cover.log.logName = 'Cover example device';
21
- this.cover.createDefaultIdentifyClusterServer();
22
- this.cover.createDefaultBasicInformationClusterServer('Cover example device', `0x59108853594`, 0xfff1, 'Matterbridge', 0x0001, 'Matterbridge Cover', parseInt(this.version.replace(/\D/g, '')), this.version, parseInt(this.matterbridge.matterbridgeVersion.replace(/\D/g, '')), this.matterbridge.matterbridgeVersion);
23
- this.cover.createDefaultWindowCoveringClusterServer(10000);
24
- this.cover.createDefaultPowerSourceWiredClusterServer();
25
- if (this.verifyMatterbridgeVersion('3.8.0', false))
26
- this.cover.addRequiredClusters();
27
- else
28
- this.cover.addRequiredClusterServers();
19
+ this.cover = new MatterbridgeEndpoint([coverDevice, powerSource], { id: 'Cover example device' }, this.config.debug)
20
+ .createDefaultIdentifyClusterServer()
21
+ .createDefaultBasicInformationClusterServer('Cover example device', `0x59108853594`, 0xfff1, 'Matterbridge', 0x0001, 'Matterbridge Cover', parseInt(this.version.replace(/\D/g, '')), this.version, parseInt(this.matterbridge.matterbridgeVersion.replace(/\D/g, '')), this.matterbridge.matterbridgeVersion)
22
+ .createDefaultWindowCoveringClusterServer(10000)
23
+ .createDefaultPowerSourceWiredClusterServer()
24
+ .addRequiredClusters();
29
25
  await this.registerDevice(this.cover);
30
26
  this.cover.addCommandHandler('identify', ({ request: { identifyTime } }) => {
31
27
  this.cover?.log.info(`Command identify called identifyTime: ${identifyTime}`);
@@ -88,7 +84,7 @@ export class ExampleMatterbridgeAccessoryPlatform extends MatterbridgeAccessoryP
88
84
  async intervalHandler() {
89
85
  if (!this.cover)
90
86
  return;
91
- let position = this.cover.getAttribute(WindowCovering.Cluster.id, 'currentPositionLiftPercent100ths', this.log);
87
+ let position = this.cover.getAttribute(WindowCovering, 'currentPositionLiftPercent100ths', this.log);
92
88
  this.log.info(`Get liftPercent100thsValue ${position}`);
93
89
  if (!isValidNumber(position, 0, 10000))
94
90
  return;
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "matterbridge-example-accessory-platform",
3
- "version": "2.0.15-dev-20260605-b20d1c2",
3
+ "version": "2.0.16",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "matterbridge-example-accessory-platform",
9
- "version": "2.0.15-dev-20260605-b20d1c2",
9
+ "version": "2.0.16",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "node-ansi-logger": "3.2.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matterbridge-example-accessory-platform",
3
- "version": "2.0.15-dev-20260605-b20d1c2",
3
+ "version": "2.0.16",
4
4
  "description": "Matterbridge accessory plugin",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",