matterbridge-example-dynamic-platform 2.0.13-dev-20260302-b418379 → 2.0.13-dev-20260302-e8d75fe
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 +3 -3
- package/dist/module.js +14 -7
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -30,8 +30,8 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
30
30
|
|
|
31
31
|
### Dev Breaking Changes
|
|
32
32
|
|
|
33
|
-
- [oven]: Refactor oven class to use TemperatureNumber for TemperatureControlledCabinet device type.
|
|
34
|
-
- [refrigerator]: Refactor refrigerator class to use TemperatureNumber for TemperatureControlledCabinet device type.
|
|
33
|
+
- [oven]: Refactor oven class to use TemperatureNumber for TemperatureControlledCabinet device type (matter 1.4.2 conformance).
|
|
34
|
+
- [refrigerator]: Refactor refrigerator class to use TemperatureNumber for TemperatureControlledCabinet device type (matter 1.4.2 conformance).
|
|
35
35
|
|
|
36
36
|
### Added
|
|
37
37
|
|
|
@@ -39,7 +39,7 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
39
39
|
|
|
40
40
|
### Changed
|
|
41
41
|
|
|
42
|
-
- [matterbridge]: Require `matterbridge` v.3.
|
|
42
|
+
- [matterbridge]: Require `matterbridge` v.3.6.0.
|
|
43
43
|
- [package]: Update dependencies.
|
|
44
44
|
- [package]: Bump package to `automator` v.3.1.1.
|
|
45
45
|
- [package]: Add `@eslint/json`.
|
package/dist/module.js
CHANGED
|
@@ -100,8 +100,8 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
|
100
100
|
constructor(matterbridge, log, config) {
|
|
101
101
|
super(matterbridge, log, config);
|
|
102
102
|
this.config = config;
|
|
103
|
-
if (this.verifyMatterbridgeVersion === undefined || typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('3.
|
|
104
|
-
throw new Error(`This plugin requires Matterbridge version >= "3.
|
|
103
|
+
if (this.verifyMatterbridgeVersion === undefined || typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('3.6.0')) {
|
|
104
|
+
throw new Error(`This plugin requires Matterbridge version >= "3.6.0". Please update Matterbridge from ${this.matterbridge.matterbridgeVersion} to the latest version in the frontend.`);
|
|
105
105
|
}
|
|
106
106
|
this.log.info('Initializing platform:', this.config.name);
|
|
107
107
|
}
|
|
@@ -491,6 +491,7 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
|
491
491
|
.createDefaultBridgedDeviceBasicInformationClusterServer('Bridged outlet', 'SOU00064', 0xfff1, 'Matterbridge', 'Matterbridge Bridged Outlet')
|
|
492
492
|
.createDefaultPowerSourceWiredClusterServer()
|
|
493
493
|
.addRequiredClusterServers();
|
|
494
|
+
this.smartBridgedOutlet.addFixedLabel('composed', 'Bridged device');
|
|
494
495
|
this.smartBridgedOutlet
|
|
495
496
|
.addChildDeviceTypeWithClusterServer('Plug 1', [onOffOutlet, bridgedNode], [OnOffCluster.id])
|
|
496
497
|
.createDefaultBridgedDeviceBasicInformationClusterServer('Plug 1', 'SOU00064-1', 0xfff1, 'Matterbridge', 'Matterbridge Bridged Outlet')
|
|
@@ -1176,13 +1177,15 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
|
1176
1177
|
.createDefaultTvocMeasurementClusterServer(100);
|
|
1177
1178
|
this.airQuality = await this.addDevice(this.airQuality);
|
|
1178
1179
|
this.momentarySwitch = new MatterbridgeEndpoint([bridgedNode, powerSource], { id: 'Momentary switch composed' }, this.config.debug)
|
|
1179
|
-
.createDefaultBridgedDeviceBasicInformationClusterServer('Momentary switch', 'MOS00041', 0xfff1, 'Matterbridge', 'Matterbridge
|
|
1180
|
+
.createDefaultBridgedDeviceBasicInformationClusterServer('Momentary switch', 'MOS00041', 0xfff1, 'Matterbridge', 'Matterbridge Momentary Switch')
|
|
1180
1181
|
.createDefaultPowerSourceReplaceableBatteryClusterServer(50, PowerSource.BatChargeLevel.Ok, 2900, 'CR2450', 1);
|
|
1181
1182
|
this.momentarySwitch
|
|
1182
1183
|
.addChildDeviceType('Momentary switch 1', [genericSwitch], {
|
|
1183
1184
|
tagList: [
|
|
1184
1185
|
{ mfgCode: null, namespaceId: NumberTag.One.namespaceId, tag: NumberTag.One.tag, label: null },
|
|
1185
1186
|
{ mfgCode: null, namespaceId: PositionTag.Top.namespaceId, tag: PositionTag.Top.tag, label: null },
|
|
1187
|
+
{ mfgCode: null, namespaceId: PositionTag.Left.namespaceId, tag: PositionTag.Left.tag, label: null },
|
|
1188
|
+
{ mfgCode: null, namespaceId: AreaNamespaceTag.LivingRoom.namespaceId, tag: AreaNamespaceTag.LivingRoom.tag, label: null },
|
|
1186
1189
|
],
|
|
1187
1190
|
})
|
|
1188
1191
|
.createDefaultIdentifyClusterServer()
|
|
@@ -1192,6 +1195,8 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
|
1192
1195
|
tagList: [
|
|
1193
1196
|
{ mfgCode: null, namespaceId: NumberTag.Two.namespaceId, tag: NumberTag.Two.tag, label: null },
|
|
1194
1197
|
{ mfgCode: null, namespaceId: PositionTag.Middle.namespaceId, tag: PositionTag.Middle.tag, label: null },
|
|
1198
|
+
{ mfgCode: null, namespaceId: PositionTag.Left.namespaceId, tag: PositionTag.Left.tag, label: null },
|
|
1199
|
+
{ mfgCode: null, namespaceId: AreaNamespaceTag.LivingRoom.namespaceId, tag: AreaNamespaceTag.LivingRoom.tag, label: null },
|
|
1195
1200
|
],
|
|
1196
1201
|
})
|
|
1197
1202
|
.createDefaultIdentifyClusterServer()
|
|
@@ -1201,6 +1206,8 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
|
1201
1206
|
tagList: [
|
|
1202
1207
|
{ mfgCode: null, namespaceId: NumberTag.Three.namespaceId, tag: NumberTag.Three.tag, label: null },
|
|
1203
1208
|
{ mfgCode: null, namespaceId: PositionTag.Bottom.namespaceId, tag: PositionTag.Bottom.tag, label: null },
|
|
1209
|
+
{ mfgCode: null, namespaceId: PositionTag.Left.namespaceId, tag: PositionTag.Left.tag, label: null },
|
|
1210
|
+
{ mfgCode: null, namespaceId: AreaNamespaceTag.LivingRoom.namespaceId, tag: AreaNamespaceTag.LivingRoom.tag, label: null },
|
|
1204
1211
|
],
|
|
1205
1212
|
})
|
|
1206
1213
|
.createDefaultIdentifyClusterServer()
|
|
@@ -1209,9 +1216,9 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
|
1209
1216
|
.addChildDeviceType('Momentary switch 4', [genericSwitch], {
|
|
1210
1217
|
tagList: [
|
|
1211
1218
|
{ mfgCode: null, namespaceId: NumberTag.Four.namespaceId, tag: NumberTag.Four.tag, label: null },
|
|
1212
|
-
{ mfgCode: null, namespaceId: PositionTag.
|
|
1219
|
+
{ mfgCode: null, namespaceId: PositionTag.Top.namespaceId, tag: PositionTag.Top.tag, label: null },
|
|
1220
|
+
{ mfgCode: null, namespaceId: PositionTag.Right.namespaceId, tag: PositionTag.Right.tag, label: null },
|
|
1213
1221
|
{ mfgCode: null, namespaceId: SwitchesTag.Custom.namespaceId, tag: SwitchesTag.Custom.tag, label: 'Turn on' },
|
|
1214
|
-
{ mfgCode: null, namespaceId: LocationTag.Indoor.namespaceId, tag: LocationTag.Indoor.tag, label: null },
|
|
1215
1222
|
{ mfgCode: null, namespaceId: AreaNamespaceTag.Bedroom.namespaceId, tag: AreaNamespaceTag.Bedroom.tag, label: null },
|
|
1216
1223
|
],
|
|
1217
1224
|
})
|
|
@@ -1222,8 +1229,8 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
|
1222
1229
|
tagList: [
|
|
1223
1230
|
{ mfgCode: null, namespaceId: NumberTag.Five.namespaceId, tag: NumberTag.Five.tag, label: null },
|
|
1224
1231
|
{ mfgCode: null, namespaceId: PositionTag.Middle.namespaceId, tag: PositionTag.Middle.tag, label: null },
|
|
1232
|
+
{ mfgCode: null, namespaceId: PositionTag.Right.namespaceId, tag: PositionTag.Right.tag, label: null },
|
|
1225
1233
|
{ mfgCode: null, namespaceId: SwitchesTag.Custom.namespaceId, tag: SwitchesTag.Custom.tag, label: 'Turn off' },
|
|
1226
|
-
{ mfgCode: null, namespaceId: LocationTag.Indoor.namespaceId, tag: LocationTag.Indoor.tag, label: null },
|
|
1227
1234
|
{ mfgCode: null, namespaceId: AreaNamespaceTag.Bedroom.namespaceId, tag: AreaNamespaceTag.Bedroom.tag, label: null },
|
|
1228
1235
|
],
|
|
1229
1236
|
})
|
|
@@ -1234,8 +1241,8 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
|
1234
1241
|
tagList: [
|
|
1235
1242
|
{ mfgCode: null, namespaceId: NumberTag.Seven.namespaceId, tag: NumberTag.Seven.tag, label: null },
|
|
1236
1243
|
{ mfgCode: null, namespaceId: PositionTag.Bottom.namespaceId, tag: PositionTag.Bottom.tag, label: null },
|
|
1244
|
+
{ mfgCode: null, namespaceId: PositionTag.Right.namespaceId, tag: PositionTag.Right.tag, label: null },
|
|
1237
1245
|
{ mfgCode: null, namespaceId: SwitchesTag.Custom.namespaceId, tag: SwitchesTag.Custom.tag, label: 'Toggle' },
|
|
1238
|
-
{ mfgCode: null, namespaceId: LocationTag.Indoor.namespaceId, tag: LocationTag.Indoor.tag, label: null },
|
|
1239
1246
|
{ mfgCode: null, namespaceId: AreaNamespaceTag.Bedroom.namespaceId, tag: AreaNamespaceTag.Bedroom.tag, label: null },
|
|
1240
1247
|
],
|
|
1241
1248
|
})
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-example-dynamic-platform",
|
|
3
|
-
"version": "2.0.13-dev-20260302-
|
|
3
|
+
"version": "2.0.13-dev-20260302-e8d75fe",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge-example-dynamic-platform",
|
|
9
|
-
"version": "2.0.13-dev-20260302-
|
|
9
|
+
"version": "2.0.13-dev-20260302-e8d75fe",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"node-ansi-logger": "3.2.0",
|
package/package.json
CHANGED