@matterbridge/core 3.10.1-dev-20260718-bf14064 → 3.10.1-dev-20260719-5fc5a0c

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.
@@ -1,5 +1,6 @@
1
1
  import { ClosureControlServer } from '@matter/node/behaviors/closure-control';
2
2
  import { ClosureControl } from '@matter/types/clusters/closure-control';
3
+ import type { Semtag } from '@matter/types/globals';
3
4
  import { MatterbridgeEndpoint } from '../matterbridgeEndpoint.js';
4
5
  declare const MatterbridgeClosureControlServer_base: import("@matter/node").ClusterBehavior.Type<typeof ClosureControlServer, import("@matter/types").ClusterType.WithSupportedFeatures<ClosureControl, {
5
6
  calibration: false;
@@ -17,7 +18,13 @@ export declare class MatterbridgeClosureControlServer extends MatterbridgeClosur
17
18
  stop: () => Promise<void>;
18
19
  }
19
20
  export interface ClosureOptions {
21
+ countdownTime?: number;
20
22
  mainState?: ClosureControl.MainState;
23
+ currentErrorList?: ClosureControl.ClosureError[];
24
+ overallCurrentState?: ClosureControl.OverallCurrentState;
25
+ overallTargetState?: ClosureControl.OverallTargetState;
26
+ latchControlModes?: ClosureControl.LatchControlModes;
27
+ tagList?: Semtag[];
21
28
  }
22
29
  export declare class Closure extends MatterbridgeEndpoint {
23
30
  constructor(name: string, serial: string, options?: ClosureOptions);
@@ -40,15 +40,25 @@ export class MatterbridgeClosureControlServer extends ClosureControlServer.with(
40
40
  }
41
41
  export class Closure extends MatterbridgeEndpoint {
42
42
  constructor(name, serial, options = {}) {
43
- super([closure], { id: `${name.replaceAll(' ', '')}-${serial.replaceAll(' ', '')}` });
43
+ super([closure], { id: `${name.replaceAll(' ', '')}-${serial.replaceAll(' ', '')}`, tagList: options.tagList });
44
44
  this.createDefaultIdentifyClusterServer();
45
45
  this.createDefaultBasicInformationClusterServer(name, serial, 0xfff1, 'Matterbridge', 0x8000, 'Matterbridge Closure');
46
46
  this.behaviors.require(MatterbridgeClosureControlServer, {
47
+ countdownTime: options.countdownTime ?? 0,
47
48
  mainState: options.mainState ?? ClosureControl.MainState.Stopped,
48
49
  currentErrorList: [],
49
- overallCurrentState: null,
50
- overallTargetState: null,
51
- countdownTime: null,
50
+ overallCurrentState: options.overallCurrentState ?? {
51
+ position: ClosureControl.CurrentPosition.FullyClosed,
52
+ latch: true,
53
+ speed: ThreeLevelAuto.Auto,
54
+ secureState: true,
55
+ },
56
+ overallTargetState: options.overallTargetState ?? {
57
+ position: ClosureControl.TargetPosition.MoveToFullyClosed,
58
+ latch: true,
59
+ speed: ThreeLevelAuto.Auto,
60
+ },
61
+ latchControlModes: options.latchControlModes ?? { remoteLatching: true, remoteUnlatching: true },
52
62
  });
53
63
  }
54
64
  getMainState() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matterbridge/core",
3
- "version": "3.10.1-dev-20260718-bf14064",
3
+ "version": "3.10.1-dev-20260719-5fc5a0c",
4
4
  "description": "Matterbridge core library",
5
5
  "author": "https://github.com/Luligu",
6
6
  "homepage": "https://matterbridge.io/",
@@ -132,10 +132,10 @@
132
132
  },
133
133
  "dependencies": {
134
134
  "@matter/main": "0.17.6",
135
- "@matterbridge/dgram": "3.10.1-dev-20260718-bf14064",
136
- "@matterbridge/thread": "3.10.1-dev-20260718-bf14064",
137
- "@matterbridge/types": "3.10.1-dev-20260718-bf14064",
138
- "@matterbridge/utils": "3.10.1-dev-20260718-bf14064",
135
+ "@matterbridge/dgram": "3.10.1-dev-20260719-5fc5a0c",
136
+ "@matterbridge/thread": "3.10.1-dev-20260719-5fc5a0c",
137
+ "@matterbridge/types": "3.10.1-dev-20260719-5fc5a0c",
138
+ "@matterbridge/utils": "3.10.1-dev-20260719-5fc5a0c",
139
139
  "escape-html": "1.0.3",
140
140
  "express": "5.2.1",
141
141
  "express-rate-limit": "8.6.0",