matterbridge-example-dynamic-platform 2.0.13-dev-20260304-437bf8f → 2.0.13-dev-20260304-83759f2
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 +2 -1
- package/dist/module.js +9 -2
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -40,7 +40,8 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
40
40
|
- [dimmerMountedLegacy]: Add a dimmer Mounted Switch legacy device.
|
|
41
41
|
- [solarPower]: Add four panels to the Solar Power.
|
|
42
42
|
- [soilSensor]: Add a Soil Sensor (Matter 1.5.0).
|
|
43
|
-
- [IrrigationSystem]: Add
|
|
43
|
+
- [IrrigationSystem]: Add a simple Irrigation System (Matter 1.5.0).
|
|
44
|
+
- [IrrigationSystem]: Add an Irrigation System with four zones (Matter 1.5.0).
|
|
44
45
|
|
|
45
46
|
### Changed
|
|
46
47
|
|
package/dist/module.js
CHANGED
|
@@ -32,6 +32,7 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
|
32
32
|
pressure;
|
|
33
33
|
flow;
|
|
34
34
|
soil;
|
|
35
|
+
irrigation;
|
|
35
36
|
irrigationSystem;
|
|
36
37
|
select;
|
|
37
38
|
climate;
|
|
@@ -162,9 +163,15 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
|
162
163
|
.createDefaultPowerSourceReplaceableBatteryClusterServer(80, PowerSource.BatChargeLevel.Ok, 3050, 'AA', 1, PowerSource.BatReplaceability.UserReplaceable)
|
|
163
164
|
.addRequiredClusterServers();
|
|
164
165
|
this.flow = await this.addDevice(this.flow);
|
|
165
|
-
this.soil = new SoilSensor('Soil Sensor', 'SOI000067', { soilMoistureMeasuredValue: 45 });
|
|
166
|
+
this.soil = new SoilSensor('Soil Sensor', 'SOI000067', { soilMoistureMeasuredValue: 45, temperatureMeasuredValue: 3500 });
|
|
166
167
|
this.soil = await this.addDevice(this.soil);
|
|
167
|
-
this.
|
|
168
|
+
this.irrigation = new IrrigationSystem('Irrigation System', 'IRR000068', { singleZone: true, flowMeasuredValue: 15 });
|
|
169
|
+
this.irrigation = (await this.addDevice(this.irrigation));
|
|
170
|
+
this.irrigationSystem = new IrrigationSystem('Irrigation System 4 zones', 'IRR000069', { flowMeasuredValue: 60 })
|
|
171
|
+
.addZone(NumberTag.One)
|
|
172
|
+
.addZone(NumberTag.Two)
|
|
173
|
+
.addZone(NumberTag.Three)
|
|
174
|
+
.addZone(NumberTag.Four);
|
|
168
175
|
this.irrigationSystem = (await this.addDevice(this.irrigationSystem));
|
|
169
176
|
this.climate = new MatterbridgeEndpoint([bridgedNode, powerSource], { id: 'Climate' }, this.config.debug)
|
|
170
177
|
.createDefaultBridgedDeviceBasicInformationClusterServer('Climate', 'CLI00008', 0xfff1, 'Matterbridge', 'Matterbridge Climate')
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-example-dynamic-platform",
|
|
3
|
-
"version": "2.0.13-dev-20260304-
|
|
3
|
+
"version": "2.0.13-dev-20260304-83759f2",
|
|
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-20260304-
|
|
9
|
+
"version": "2.0.13-dev-20260304-83759f2",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"node-ansi-logger": "3.2.0",
|
package/package.json
CHANGED