matterbridge-example-accessory-platform 2.0.16 → 2.0.17-dev-20260614-24bad61

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,6 +28,10 @@ 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.17] - Dev branch
32
+
33
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
34
+
31
35
  ## [2.0.16] - 2026-05-06
32
36
 
33
37
  ### Breaking changes
package/dist/module.js CHANGED
@@ -1,4 +1,4 @@
1
- import { coverDevice, MatterbridgeAccessoryPlatform, MatterbridgeEndpoint, powerSource } from 'matterbridge';
1
+ import { windowCovering, MatterbridgeAccessoryPlatform, MatterbridgeEndpoint, powerSource } from 'matterbridge';
2
2
  import { WindowCovering } from 'matterbridge/matter/clusters';
3
3
  import { fireAndForget, isValidNumber } from 'matterbridge/utils';
4
4
  export default function initializePlugin(matterbridge, log, config) {
@@ -16,9 +16,9 @@ export class ExampleMatterbridgeAccessoryPlatform extends MatterbridgeAccessoryP
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)
19
+ this.cover = new MatterbridgeEndpoint([windowCovering, powerSource], { id: 'Cover example device' }, this.config.debug)
20
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)
21
+ .createDefaultBasicInformationClusterServer('Cover example device', `0x59108853594`, 0xfff1, 'Matterbridge', 0x0001, 'Matterbridge Cover', Number.parseInt(this.version.replace(/\D/g, '')), this.version, Number.parseInt(this.matterbridge.matterbridgeVersion.replace(/\D/g, '')), this.matterbridge.matterbridgeVersion)
22
22
  .createDefaultWindowCoveringClusterServer(10000)
23
23
  .createDefaultPowerSourceWiredClusterServer()
24
24
  .addRequiredClusters();
@@ -78,7 +78,7 @@ export class ExampleMatterbridgeAccessoryPlatform extends MatterbridgeAccessoryP
78
78
  this.coverInterval = undefined;
79
79
  await super.onShutdown(reason);
80
80
  this.log.info('onShutdown called with reason:', reason ?? 'none');
81
- if (this.config.unregisterOnShutdown === true)
81
+ if (this.config.unregisterOnShutdown)
82
82
  await this.unregisterAllDevices();
83
83
  }
84
84
  async intervalHandler() {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "matterbridge-example-accessory-platform",
3
- "version": "2.0.16",
3
+ "version": "2.0.17-dev-20260614-24bad61",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "matterbridge-example-accessory-platform",
9
- "version": "2.0.16",
9
+ "version": "2.0.17-dev-20260614-24bad61",
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.16",
3
+ "version": "2.0.17-dev-20260614-24bad61",
4
4
  "description": "Matterbridge accessory plugin",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",