matterbridge-example-dynamic-platform 2.0.13-dev-20260304-83759f2 → 2.0.13-dev-20260307-b7b9cb3
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 +1 -1
- package/dist/module.js +23 -11
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -26,7 +26,7 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
26
26
|
|
|
27
27
|
<a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="120"></a>
|
|
28
28
|
|
|
29
|
-
## [2.0.13] -
|
|
29
|
+
## [2.0.13] - 2026-03-06
|
|
30
30
|
|
|
31
31
|
### Dev Breaking Changes
|
|
32
32
|
|
package/dist/module.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aggregator, airPurifier, airQualitySensor, bridgedNode, colorTemperatureLight, contactSensor, coverDevice, dimmableLight, dimmableMountedSwitch, dimmableOutlet, doorLockDevice, electricalSensor, extendedColorLight, fanDevice, flowSensor, genericSwitch, humiditySensor, lightSensor, MatterbridgeDynamicPlatform, MatterbridgeEndpoint, modeSelect, occupancySensor, onOffLight, onOffMountedSwitch, onOffOutlet, onOffSwitch, powerSource, pressureSensor, pumpDevice, rainSensor, smokeCoAlarm, temperatureSensor, thermostatDevice, waterFreezeDetector, waterLeakDetector, waterValve, } from 'matterbridge';
|
|
1
|
+
import { aggregator, airPurifier, airQualitySensor, bridgedNode, colorTemperatureLight, contactSensor, coverDevice, dimmableLight, dimmableMountedSwitch, dimmableOutlet, doorLockDevice, electricalSensor, extendedColorLight, fanDevice, flowSensor, genericSwitch, getSemtag, humiditySensor, lightSensor, MatterbridgeDynamicPlatform, MatterbridgeEndpoint, modeSelect, occupancySensor, onOffLight, onOffMountedSwitch, onOffOutlet, onOffSwitch, powerSource, pressureSensor, pumpDevice, rainSensor, smokeCoAlarm, temperatureSensor, thermostatDevice, waterFreezeDetector, waterLeakDetector, waterValve, } from 'matterbridge';
|
|
2
2
|
import { AirConditioner, BasicVideoPlayer, BatteryStorage, Cooktop, Dishwasher, Evse, ExtractorHood, HeatPump, IrrigationSystem, LaundryDryer, LaundryWasher, MicrowaveOven, Oven, Refrigerator, RoboticVacuumCleaner, SoilSensor, SolarPower, Speaker, WaterHeater, } from 'matterbridge/devices';
|
|
3
3
|
import { debugStringify } from 'matterbridge/logger';
|
|
4
4
|
import { AreaNamespaceTag, LocationTag, NumberTag, PositionTag, RefrigeratorTag, SwitchesTag, UINT16_MAX, UINT32_MAX } from 'matterbridge/matter';
|
|
@@ -163,9 +163,9 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
|
163
163
|
.createDefaultPowerSourceReplaceableBatteryClusterServer(80, PowerSource.BatChargeLevel.Ok, 3050, 'AA', 1, PowerSource.BatReplaceability.UserReplaceable)
|
|
164
164
|
.addRequiredClusterServers();
|
|
165
165
|
this.flow = await this.addDevice(this.flow);
|
|
166
|
-
this.soil = new SoilSensor('Soil Sensor', 'SOI000067', { soilMoistureMeasuredValue: 45, temperatureMeasuredValue: 3500 });
|
|
166
|
+
this.soil = new SoilSensor('Soil Sensor', 'SOI000067', { soilMoistureMeasuredValue: 45, temperatureMeasuredValue: 3500, batteryPowered: true });
|
|
167
167
|
this.soil = await this.addDevice(this.soil);
|
|
168
|
-
this.irrigation = new IrrigationSystem('Irrigation System', 'IRR000068', { singleZone: true, flowMeasuredValue: 15 });
|
|
168
|
+
this.irrigation = new IrrigationSystem('Irrigation System', 'IRR000068', { singleZone: true, batteryPowered: true, flowMeasuredValue: 15 });
|
|
169
169
|
this.irrigation = (await this.addDevice(this.irrigation));
|
|
170
170
|
this.irrigationSystem = new IrrigationSystem('Irrigation System 4 zones', 'IRR000069', { flowMeasuredValue: 60 })
|
|
171
171
|
.addZone(NumberTag.One)
|
|
@@ -520,25 +520,25 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
|
520
520
|
this.smartOutlet
|
|
521
521
|
.addChildDeviceTypeWithClusterServer('Socket 1', onOffOutlet, [OnOffCluster.id], {
|
|
522
522
|
id: 'Socket1',
|
|
523
|
-
tagList: [
|
|
523
|
+
tagList: [getSemtag(NumberTag.One)],
|
|
524
524
|
})
|
|
525
525
|
.addRequiredClusterServers();
|
|
526
526
|
this.smartOutlet
|
|
527
527
|
.addChildDeviceTypeWithClusterServer('Socket 2', onOffOutlet, [OnOffCluster.id], {
|
|
528
528
|
id: 'Socket2',
|
|
529
|
-
tagList: [
|
|
529
|
+
tagList: [getSemtag(NumberTag.Two)],
|
|
530
530
|
})
|
|
531
531
|
.addRequiredClusterServers();
|
|
532
532
|
this.smartOutlet
|
|
533
533
|
.addChildDeviceTypeWithClusterServer('Socket 3', onOffOutlet, [OnOffCluster.id], {
|
|
534
534
|
id: 'Socket3',
|
|
535
|
-
tagList: [
|
|
535
|
+
tagList: [getSemtag(NumberTag.Three)],
|
|
536
536
|
})
|
|
537
537
|
.addRequiredClusterServers();
|
|
538
538
|
this.smartOutlet
|
|
539
539
|
.addChildDeviceTypeWithClusterServer('Socket 4', onOffOutlet, [OnOffCluster.id], {
|
|
540
540
|
id: 'Socket4',
|
|
541
|
-
tagList: [
|
|
541
|
+
tagList: [getSemtag(NumberTag.Four)],
|
|
542
542
|
})
|
|
543
543
|
.addRequiredClusterServers();
|
|
544
544
|
this.smartOutlet = await this.addDevice(this.smartOutlet);
|
|
@@ -548,19 +548,31 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
|
548
548
|
.addRequiredClusterServers();
|
|
549
549
|
this.smartBridgedOutlet.addFixedLabel('composed', 'Bridged device');
|
|
550
550
|
this.smartBridgedOutlet
|
|
551
|
-
.addChildDeviceTypeWithClusterServer('Plug 1', [onOffOutlet, bridgedNode], [OnOffCluster.id]
|
|
551
|
+
.addChildDeviceTypeWithClusterServer('Plug 1', [onOffOutlet, bridgedNode], [OnOffCluster.id], {
|
|
552
|
+
id: 'Plug1',
|
|
553
|
+
tagList: [getSemtag(NumberTag.One)],
|
|
554
|
+
})
|
|
552
555
|
.createDefaultBridgedDeviceBasicInformationClusterServer('Plug 1', 'BOU00064-1', 0xfff1, 'Matterbridge', 'Matterbridge Bridged Outlet')
|
|
553
556
|
.addRequiredClusterServers();
|
|
554
557
|
this.smartBridgedOutlet
|
|
555
|
-
.addChildDeviceTypeWithClusterServer('Plug 2', [onOffOutlet, bridgedNode], [OnOffCluster.id]
|
|
558
|
+
.addChildDeviceTypeWithClusterServer('Plug 2', [onOffOutlet, bridgedNode], [OnOffCluster.id], {
|
|
559
|
+
id: 'Plug2',
|
|
560
|
+
tagList: [getSemtag(NumberTag.Two)],
|
|
561
|
+
})
|
|
556
562
|
.createDefaultBridgedDeviceBasicInformationClusterServer('Plug 2', 'BOU00064-2', 0xfff1, 'Matterbridge', 'Matterbridge Bridged Outlet')
|
|
557
563
|
.addRequiredClusterServers();
|
|
558
564
|
this.smartBridgedOutlet
|
|
559
|
-
.addChildDeviceTypeWithClusterServer('Plug 3', [onOffOutlet, bridgedNode], [OnOffCluster.id]
|
|
565
|
+
.addChildDeviceTypeWithClusterServer('Plug 3', [onOffOutlet, bridgedNode], [OnOffCluster.id], {
|
|
566
|
+
id: 'Plug3',
|
|
567
|
+
tagList: [getSemtag(NumberTag.Three)],
|
|
568
|
+
})
|
|
560
569
|
.createDefaultBridgedDeviceBasicInformationClusterServer('Plug 3', 'BOU00064-3', 0xfff1, 'Matterbridge', 'Matterbridge Bridged Outlet')
|
|
561
570
|
.addRequiredClusterServers();
|
|
562
571
|
this.smartBridgedOutlet
|
|
563
|
-
.addChildDeviceTypeWithClusterServer('Plug 4', [onOffOutlet, bridgedNode], [OnOffCluster.id]
|
|
572
|
+
.addChildDeviceTypeWithClusterServer('Plug 4', [onOffOutlet, bridgedNode], [OnOffCluster.id], {
|
|
573
|
+
id: 'Plug4',
|
|
574
|
+
tagList: [getSemtag(NumberTag.Four)],
|
|
575
|
+
})
|
|
564
576
|
.createDefaultBridgedDeviceBasicInformationClusterServer('Plug 4', 'BOU00064-4', 0xfff1, 'Matterbridge', 'Matterbridge Bridged Outlet')
|
|
565
577
|
.addRequiredClusterServers();
|
|
566
578
|
this.smartBridgedOutlet = await this.addDevice(this.smartBridgedOutlet);
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-example-dynamic-platform",
|
|
3
|
-
"version": "2.0.13-dev-
|
|
3
|
+
"version": "2.0.13-dev-20260307-b7b9cb3",
|
|
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-
|
|
9
|
+
"version": "2.0.13-dev-20260307-b7b9cb3",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"node-ansi-logger": "3.2.0",
|
package/package.json
CHANGED