matterbridge-example-dynamic-platform 3.0.4-dev-20260913-29dba72 → 3.0.4-dev-20260914-aab53d4
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/dist/module.js +8 -8
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -102,10 +102,10 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
|
102
102
|
if (typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('3.10.10')) {
|
|
103
103
|
throw new Error(`This plugin requires Matterbridge version >= "3.10.10". Please update Matterbridge from ${this.matterbridge.matterbridgeVersion} to the latest version in the frontend.`);
|
|
104
104
|
}
|
|
105
|
-
this.log.info(
|
|
105
|
+
this.log.info(`Initializing platform ${this.config.name}...`);
|
|
106
106
|
}
|
|
107
107
|
async onStart(reason) {
|
|
108
|
-
this.log.info(
|
|
108
|
+
this.log.info(`Starting platform ${this.config.name} with reason: ${reason ?? 'no reason provided'}...`);
|
|
109
109
|
await this.ready;
|
|
110
110
|
await this.clearSelect();
|
|
111
111
|
this.door = new MatterbridgeEndpoint([contactSensor, bridgedNode, powerSource], { id: 'Door' }, this.config.debug)
|
|
@@ -674,28 +674,28 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
|
674
674
|
id: 'Plug1',
|
|
675
675
|
tagList: [getSemtag(CommonNumberTag.One)],
|
|
676
676
|
})
|
|
677
|
-
.createDefaultBridgedDeviceBasicInformationClusterServer('Plug
|
|
677
|
+
.createDefaultBridgedDeviceBasicInformationClusterServer('Plug TV', 'BOU00064-1', 0xfff1, 'Matterbridge', 'Matterbridge Bridged Outlet')
|
|
678
678
|
.addRequiredClusterServers();
|
|
679
679
|
this.smartBridgedOutlet
|
|
680
680
|
.addChildDeviceTypeWithClusterServer('Plug 2', [onOffPlugInUnit, bridgedNode], [OnOff.id], {
|
|
681
681
|
id: 'Plug2',
|
|
682
682
|
tagList: [getSemtag(CommonNumberTag.Two)],
|
|
683
683
|
})
|
|
684
|
-
.createDefaultBridgedDeviceBasicInformationClusterServer('Plug
|
|
684
|
+
.createDefaultBridgedDeviceBasicInformationClusterServer('Plug Speaker', 'BOU00064-2', 0xfff1, 'Matterbridge', 'Matterbridge Bridged Outlet')
|
|
685
685
|
.addRequiredClusterServers();
|
|
686
686
|
this.smartBridgedOutlet
|
|
687
687
|
.addChildDeviceTypeWithClusterServer('Plug 3', [onOffPlugInUnit, bridgedNode], [OnOff.id], {
|
|
688
688
|
id: 'Plug3',
|
|
689
689
|
tagList: [getSemtag(CommonNumberTag.Three)],
|
|
690
690
|
})
|
|
691
|
-
.createDefaultBridgedDeviceBasicInformationClusterServer('Plug
|
|
691
|
+
.createDefaultBridgedDeviceBasicInformationClusterServer('Plug Satellite', 'BOU00064-3', 0xfff1, 'Matterbridge', 'Matterbridge Bridged Outlet')
|
|
692
692
|
.addRequiredClusterServers();
|
|
693
693
|
this.smartBridgedOutlet
|
|
694
694
|
.addChildDeviceTypeWithClusterServer('Plug 4', [onOffPlugInUnit, bridgedNode], [OnOff.id], {
|
|
695
695
|
id: 'Plug4',
|
|
696
696
|
tagList: [getSemtag(CommonNumberTag.Four)],
|
|
697
697
|
})
|
|
698
|
-
.createDefaultBridgedDeviceBasicInformationClusterServer('Plug
|
|
698
|
+
.createDefaultBridgedDeviceBasicInformationClusterServer('Plug Netflix', 'BOU00064-4', 0xfff1, 'Matterbridge', 'Matterbridge Bridged Outlet')
|
|
699
699
|
.addRequiredClusterServers();
|
|
700
700
|
this.smartBridgedOutlet = await this.addDevice(this.smartBridgedOutlet);
|
|
701
701
|
this.coverLift = new MatterbridgeEndpoint([windowCovering, bridgedNode, powerSource], { id: 'CoverLift' }, this.config.debug)
|
|
@@ -1946,7 +1946,7 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
|
1946
1946
|
}
|
|
1947
1947
|
async onConfigure() {
|
|
1948
1948
|
await super.onConfigure();
|
|
1949
|
-
this.log.info(
|
|
1949
|
+
this.log.info(`Configuring platform ${this.config.name}...`);
|
|
1950
1950
|
if (this.config.useInterval) {
|
|
1951
1951
|
this.addInterval(async () => {
|
|
1952
1952
|
this.log.info(`Appliances animation phase ${this.phase}`);
|
|
@@ -2629,7 +2629,7 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
|
2629
2629
|
async onShutdown(reason) {
|
|
2630
2630
|
this.clearIntervals();
|
|
2631
2631
|
await super.onShutdown(reason);
|
|
2632
|
-
this.log.info(
|
|
2632
|
+
this.log.info(`Shutting down platform ${this.config.name} with reason: ${reason ?? 'no reason provided'}...`);
|
|
2633
2633
|
if (this.config.unregisterOnShutdown)
|
|
2634
2634
|
await this.unregisterAllDevices(500);
|
|
2635
2635
|
}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-example-dynamic-platform",
|
|
3
|
-
"version": "3.0.4-dev-
|
|
3
|
+
"version": "3.0.4-dev-20260914-aab53d4",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge-example-dynamic-platform",
|
|
9
|
-
"version": "3.0.4-dev-
|
|
9
|
+
"version": "3.0.4-dev-20260914-aab53d4",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"node-ansi-logger": "3.3.1",
|
package/package.json
CHANGED