@matterbridge/core 3.8.0 → 3.8.1-dev-20260606-d6bb335
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,6 +1,7 @@
|
|
|
1
1
|
import { DoorLockServer } from '@matter/node/behaviors/door-lock';
|
|
2
2
|
import { DoorLock } from '@matter/types/clusters/door-lock';
|
|
3
3
|
declare const MatterbridgeDoorLockServer_base: import("@matter/node").ClusterBehavior.Type<import("@matter/node").ClusterBehavior.Type<typeof DoorLockServer, import("@matter/types").ClusterType.WithSupportedFeatures<DoorLock, {
|
|
4
|
+
user: true;
|
|
4
5
|
pinCredential: true;
|
|
5
6
|
rfidCredential: false;
|
|
6
7
|
fingerCredentials: false;
|
|
@@ -8,13 +9,13 @@ declare const MatterbridgeDoorLockServer_base: import("@matter/node").ClusterBeh
|
|
|
8
9
|
doorPositionSensor: false;
|
|
9
10
|
faceCredentials: false;
|
|
10
11
|
credentialOverTheAirAccess: false;
|
|
11
|
-
user: true;
|
|
12
12
|
yearDayAccessSchedules: false;
|
|
13
13
|
holidaySchedules: false;
|
|
14
14
|
unbolting: false;
|
|
15
15
|
aliroProvisioning: false;
|
|
16
16
|
aliroBleuwb: false;
|
|
17
17
|
}>, import("@matter/types").ClusterType.Concrete, typeof import("@matter/node/behaviors/door-lock").DoorLockBaseServer.Internal, "doorLock">, import("@matter/types").ClusterType.WithEnabledAttributes<import("@matter/types").ClusterType.WithEnabledEvents<import("@matter/types").ClusterType.WithSupportedFeatures<DoorLock, {
|
|
18
|
+
user: true;
|
|
18
19
|
pinCredential: true;
|
|
19
20
|
rfidCredential: false;
|
|
20
21
|
fingerCredentials: false;
|
|
@@ -22,7 +23,6 @@ declare const MatterbridgeDoorLockServer_base: import("@matter/node").ClusterBeh
|
|
|
22
23
|
doorPositionSensor: false;
|
|
23
24
|
faceCredentials: false;
|
|
24
25
|
credentialOverTheAirAccess: false;
|
|
25
|
-
user: true;
|
|
26
26
|
yearDayAccessSchedules: false;
|
|
27
27
|
holidaySchedules: false;
|
|
28
28
|
unbolting: false;
|
|
@@ -56,10 +56,10 @@ export function getPlatformMatterbridge() {
|
|
|
56
56
|
matterbridgePluginDirectory: path.join(HOMEDIR, 'Matterbridge'),
|
|
57
57
|
matterbridgeCertDirectory: path.join(HOMEDIR, '.mattercert'),
|
|
58
58
|
globalModulesDirectory: path.join(HOMEDIR, 'node_modules'),
|
|
59
|
-
matterbridgeVersion: '3.8.
|
|
60
|
-
matterbridgeLatestVersion: '3.8.
|
|
61
|
-
matterbridgeDevVersion: '3.8.
|
|
62
|
-
frontendVersion: '3.8.
|
|
59
|
+
matterbridgeVersion: '3.8.1',
|
|
60
|
+
matterbridgeLatestVersion: '3.8.1',
|
|
61
|
+
matterbridgeDevVersion: '3.8.1',
|
|
62
|
+
frontendVersion: '3.8.1',
|
|
63
63
|
bridgeMode: '',
|
|
64
64
|
restartMode: '',
|
|
65
65
|
virtualMode: 'mounted_switch',
|
|
@@ -144,8 +144,9 @@ export async function createServerNode(port, deviceType = DeviceTypeId(0x000e),
|
|
|
144
144
|
vendorId: VendorId(0xfff1),
|
|
145
145
|
vendorName: 'Matterbridge',
|
|
146
146
|
productId: 0x8000,
|
|
147
|
-
productName: 'Matterbridge ' + NAME,
|
|
148
|
-
|
|
147
|
+
productName: ('Matterbridge ' + NAME).slice(0, 32),
|
|
148
|
+
productLabel: ('Label ' + NAME).slice(0, 64),
|
|
149
|
+
nodeLabel: (NAME + 'ServerNode').slice(0, 32),
|
|
149
150
|
hardwareVersion: 1,
|
|
150
151
|
softwareVersion: 1,
|
|
151
152
|
reachable: true,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const destroyMatterbridgePlatformSpy: import("jest-mock").SpiedGetter<string | boolean | import("node-ansi-logger").AnsiLogger |
|
|
1
|
+
export declare const destroyMatterbridgePlatformSpy: import("jest-mock").SpiedGetter<string | boolean | import("node-ansi-logger").AnsiLogger | import("../matterbridgePlatform.js").PlatformConfig | import("../matterbridgePlatform.js").PlatformMatterbridge | Promise<void> | import("node-persist-manager").NodeStorage> | import("jest-mock").SpiedSetter<string | boolean | import("node-ansi-logger").AnsiLogger | import("../matterbridgePlatform.js").PlatformConfig | import("../matterbridgePlatform.js").PlatformMatterbridge | Promise<void> | import("node-persist-manager").NodeStorage>;
|
|
2
2
|
export declare const onStartMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(reason?: string) => Promise<void>>;
|
|
3
3
|
export declare const onConfigureMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<() => Promise<void>>;
|
|
4
4
|
export declare const onShutdownMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(reason?: string) => Promise<void>>;
|
|
@@ -24,7 +24,7 @@ export declare const registerVirtualDeviceMatterbridgePlatformSpy: import("jest-
|
|
|
24
24
|
export declare const registerDeviceMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(device: import("../matterbridgeEndpoint.js").MatterbridgeEndpoint) => Promise<void>>;
|
|
25
25
|
export declare const unregisterDeviceMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(device: import("../matterbridgeEndpoint.js").MatterbridgeEndpoint) => Promise<void>>;
|
|
26
26
|
export declare const unregisterAllDevicesMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(delay?: number) => Promise<void>>;
|
|
27
|
-
export declare const saveSelectsMatterbridgePlatformSpy: import("jest-mock").SpiedGetter<string | boolean | import("node-ansi-logger").AnsiLogger |
|
|
27
|
+
export declare const saveSelectsMatterbridgePlatformSpy: import("jest-mock").SpiedGetter<string | boolean | import("node-ansi-logger").AnsiLogger | import("../matterbridgePlatform.js").PlatformConfig | import("../matterbridgePlatform.js").PlatformMatterbridge | Promise<void> | import("node-persist-manager").NodeStorage> | import("jest-mock").SpiedSetter<string | boolean | import("node-ansi-logger").AnsiLogger | import("../matterbridgePlatform.js").PlatformConfig | import("../matterbridgePlatform.js").PlatformMatterbridge | Promise<void> | import("node-persist-manager").NodeStorage>;
|
|
28
28
|
export declare const clearSelectMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<() => Promise<void>>;
|
|
29
29
|
export declare const clearDeviceSelectMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(serial: string) => Promise<void>>;
|
|
30
30
|
export declare const clearEntitySelectMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(name: string) => Promise<void>>;
|
|
@@ -56,5 +56,5 @@ export declare const getSelectEntitiesMatterbridgePlatformSpy: import("jest-mock
|
|
|
56
56
|
export declare const verifyMatterbridgeVersionMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(requiredVersion: string, destroy?: boolean) => boolean>;
|
|
57
57
|
export declare const validateDeviceMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(device: string | string[], log?: boolean) => boolean>;
|
|
58
58
|
export declare const validateEntityMatterbridgePlatformSpy: import("jest-mock").SpiedFunction<(device: string, entity: string, log?: boolean) => boolean>;
|
|
59
|
-
export declare const clearEndpointNumbersMatterbridgePlatformSpy: import("jest-mock").SpiedGetter<string | boolean | import("node-ansi-logger").AnsiLogger |
|
|
60
|
-
export declare const checkEndpointNumbersMatterbridgePlatformSpy: import("jest-mock").SpiedGetter<string | boolean | import("node-ansi-logger").AnsiLogger |
|
|
59
|
+
export declare const clearEndpointNumbersMatterbridgePlatformSpy: import("jest-mock").SpiedGetter<string | boolean | import("node-ansi-logger").AnsiLogger | import("../matterbridgePlatform.js").PlatformConfig | import("../matterbridgePlatform.js").PlatformMatterbridge | Promise<void> | import("node-persist-manager").NodeStorage> | import("jest-mock").SpiedSetter<string | boolean | import("node-ansi-logger").AnsiLogger | import("../matterbridgePlatform.js").PlatformConfig | import("../matterbridgePlatform.js").PlatformMatterbridge | Promise<void> | import("node-persist-manager").NodeStorage>;
|
|
60
|
+
export declare const checkEndpointNumbersMatterbridgePlatformSpy: import("jest-mock").SpiedGetter<string | boolean | import("node-ansi-logger").AnsiLogger | import("../matterbridgePlatform.js").PlatformConfig | import("../matterbridgePlatform.js").PlatformMatterbridge | Promise<void> | import("node-persist-manager").NodeStorage> | import("jest-mock").SpiedSetter<string | boolean | import("node-ansi-logger").AnsiLogger | import("../matterbridgePlatform.js").PlatformConfig | import("../matterbridgePlatform.js").PlatformMatterbridge | Promise<void> | import("node-persist-manager").NodeStorage>;
|
|
@@ -109,7 +109,7 @@ export async function createMatterbridgeEnvironment() {
|
|
|
109
109
|
matterbridge = await Matterbridge.loadInstance(false);
|
|
110
110
|
expect(matterbridge).toBeDefined();
|
|
111
111
|
expect(matterbridge).toBeInstanceOf(Matterbridge);
|
|
112
|
-
matterbridge.matterbridgeVersion = '3.8.
|
|
112
|
+
matterbridge.matterbridgeVersion = '3.8.1';
|
|
113
113
|
matterbridge.bridgeMode = 'bridge';
|
|
114
114
|
matterbridge.rootDirectory = path.join(HOMEDIR);
|
|
115
115
|
matterbridge.homeDirectory = path.join(HOMEDIR);
|
|
@@ -821,28 +821,28 @@ export class MatterbridgeEndpoint extends Endpoint {
|
|
|
821
821
|
return this;
|
|
822
822
|
}
|
|
823
823
|
async setWindowCoveringTargetAsCurrentAndStopped() {
|
|
824
|
-
const position = this.getAttribute(WindowCovering
|
|
824
|
+
const position = this.getAttribute(WindowCovering, 'currentPositionLiftPercent100ths', this.log);
|
|
825
825
|
if (isValidNumber(position, 0, 10000)) {
|
|
826
|
-
await this.setAttribute(WindowCovering
|
|
827
|
-
await this.setAttribute(WindowCovering
|
|
826
|
+
await this.setAttribute(WindowCovering, 'targetPositionLiftPercent100ths', position, this.log);
|
|
827
|
+
await this.setAttribute(WindowCovering, 'operationalStatus', {
|
|
828
828
|
global: WindowCovering.MovementStatus.Stopped,
|
|
829
829
|
lift: WindowCovering.MovementStatus.Stopped,
|
|
830
830
|
tilt: WindowCovering.MovementStatus.Stopped,
|
|
831
831
|
}, this.log);
|
|
832
832
|
}
|
|
833
833
|
this.log.debug(`Set WindowCovering currentPositionLiftPercent100ths and targetPositionLiftPercent100ths to ${position} and operationalStatus to Stopped.`);
|
|
834
|
-
if (this.hasAttributeServer(WindowCovering
|
|
835
|
-
const position = this.getAttribute(WindowCovering
|
|
834
|
+
if (this.hasAttributeServer(WindowCovering, 'currentPositionTiltPercent100ths')) {
|
|
835
|
+
const position = this.getAttribute(WindowCovering, 'currentPositionTiltPercent100ths', this.log);
|
|
836
836
|
if (isValidNumber(position, 0, 10000)) {
|
|
837
|
-
await this.setAttribute(WindowCovering
|
|
837
|
+
await this.setAttribute(WindowCovering, 'targetPositionTiltPercent100ths', position, this.log);
|
|
838
838
|
}
|
|
839
839
|
this.log.debug(`Set WindowCovering currentPositionTiltPercent100ths and targetPositionTiltPercent100ths to ${position} and operationalStatus to Stopped.`);
|
|
840
840
|
}
|
|
841
841
|
}
|
|
842
842
|
async setWindowCoveringCurrentTargetStatus(current, target, status) {
|
|
843
|
-
await this.setAttribute(WindowCovering
|
|
844
|
-
await this.setAttribute(WindowCovering
|
|
845
|
-
await this.setAttribute(WindowCovering
|
|
843
|
+
await this.setAttribute(WindowCovering, 'currentPositionLiftPercent100ths', current, this.log);
|
|
844
|
+
await this.setAttribute(WindowCovering, 'targetPositionLiftPercent100ths', target, this.log);
|
|
845
|
+
await this.setAttribute(WindowCovering, 'operationalStatus', {
|
|
846
846
|
global: status,
|
|
847
847
|
lift: status,
|
|
848
848
|
tilt: status,
|
|
@@ -850,7 +850,7 @@ export class MatterbridgeEndpoint extends Endpoint {
|
|
|
850
850
|
this.log.debug(`Set WindowCovering currentPositionLiftPercent100ths: ${current}, targetPositionLiftPercent100ths: ${target} and operationalStatus: ${status}.`);
|
|
851
851
|
}
|
|
852
852
|
async setWindowCoveringStatus(status) {
|
|
853
|
-
await this.setAttribute(WindowCovering
|
|
853
|
+
await this.setAttribute(WindowCovering, 'operationalStatus', {
|
|
854
854
|
global: status,
|
|
855
855
|
lift: status,
|
|
856
856
|
tilt: status,
|
|
@@ -858,19 +858,19 @@ export class MatterbridgeEndpoint extends Endpoint {
|
|
|
858
858
|
this.log.debug(`Set WindowCovering operationalStatus: ${status}`);
|
|
859
859
|
}
|
|
860
860
|
getWindowCoveringStatus() {
|
|
861
|
-
const status = this.getAttribute(WindowCovering
|
|
861
|
+
const status = this.getAttribute(WindowCovering, 'operationalStatus', this.log);
|
|
862
862
|
if (isValidObject(status, 3) && 'global' in status && typeof status.global === 'number') {
|
|
863
863
|
this.log.debug(`Get WindowCovering operationalStatus: ${status.global}`);
|
|
864
864
|
return status.global;
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
867
|
async setWindowCoveringTargetAndCurrentPosition(liftPosition, tiltPosition) {
|
|
868
|
-
await this.setAttribute(WindowCovering
|
|
869
|
-
await this.setAttribute(WindowCovering
|
|
868
|
+
await this.setAttribute(WindowCovering, 'currentPositionLiftPercent100ths', liftPosition, this.log);
|
|
869
|
+
await this.setAttribute(WindowCovering, 'targetPositionLiftPercent100ths', liftPosition, this.log);
|
|
870
870
|
this.log.debug(`Set WindowCovering currentPositionLiftPercent100ths: ${liftPosition} and targetPositionLiftPercent100ths: ${liftPosition}.`);
|
|
871
|
-
if (tiltPosition && this.hasAttributeServer(WindowCovering
|
|
872
|
-
await this.setAttribute(WindowCovering
|
|
873
|
-
await this.setAttribute(WindowCovering
|
|
871
|
+
if (tiltPosition && this.hasAttributeServer(WindowCovering, 'currentPositionTiltPercent100ths')) {
|
|
872
|
+
await this.setAttribute(WindowCovering, 'currentPositionTiltPercent100ths', tiltPosition, this.log);
|
|
873
|
+
await this.setAttribute(WindowCovering, 'targetPositionTiltPercent100ths', tiltPosition, this.log);
|
|
874
874
|
this.log.debug(`Set WindowCovering currentPositionTiltPercent100ths: ${tiltPosition} and targetPositionTiltPercent100ths: ${tiltPosition}.`);
|
|
875
875
|
}
|
|
876
876
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matterbridge/core",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.1-dev-20260606-d6bb335",
|
|
4
4
|
"description": "Matterbridge core library",
|
|
5
5
|
"author": "https://github.com/Luligu",
|
|
6
6
|
"homepage": "https://matterbridge.io/",
|
|
@@ -130,10 +130,10 @@
|
|
|
130
130
|
],
|
|
131
131
|
"dependencies": {
|
|
132
132
|
"@matter/main": "0.17.1",
|
|
133
|
-
"@matterbridge/dgram": "3.8.
|
|
134
|
-
"@matterbridge/thread": "3.8.
|
|
135
|
-
"@matterbridge/types": "3.8.
|
|
136
|
-
"@matterbridge/utils": "3.8.
|
|
133
|
+
"@matterbridge/dgram": "3.8.1-dev-20260606-d6bb335",
|
|
134
|
+
"@matterbridge/thread": "3.8.1-dev-20260606-d6bb335",
|
|
135
|
+
"@matterbridge/types": "3.8.1-dev-20260606-d6bb335",
|
|
136
|
+
"@matterbridge/utils": "3.8.1-dev-20260606-d6bb335",
|
|
137
137
|
"escape-html": "1.0.3",
|
|
138
138
|
"express": "5.2.1",
|
|
139
139
|
"express-rate-limit": "8.5.2",
|