matterbridge-example-dynamic-platform 3.0.2-dev-20260719-636d720 → 3.0.2-dev-20260719-bbce2ee
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 +5 -1
- package/README.md +2 -1
- package/dist/module.js +3 -4
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -31,7 +31,11 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
31
31
|
|
|
32
32
|
### Breaking changes
|
|
33
33
|
|
|
34
|
-
- [matterbridge]: Require matterbridge v.3.10.
|
|
34
|
+
- [matterbridge]: Require matterbridge v.3.10.1 with matter v.1.6.0 and matter.js v.0.17.6.
|
|
35
|
+
|
|
36
|
+
### Added
|
|
37
|
+
|
|
38
|
+
- [platform]: Add `closureGarageDoor` device.
|
|
35
39
|
|
|
36
40
|
<a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
|
|
37
41
|
|
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
Matterbridge dynamic platform example plugin is a template to develop your own plugin using the dynamic platform.
|
|
25
25
|
|
|
26
|
-
It exposes
|
|
26
|
+
It exposes 71 virtual devices:
|
|
27
27
|
|
|
28
28
|
- a door contact sensor
|
|
29
29
|
- a motion sensor
|
|
@@ -95,6 +95,7 @@ It exposes 70 virtual devices:
|
|
|
95
95
|
- a soil sensor (Matter 1.5.0)
|
|
96
96
|
- an irrigation system (Matter 1.5.0)
|
|
97
97
|
- an irrigation system with four zones (Matter 1.5.0)
|
|
98
|
+
- a closure device (Matter 1.5.0, supported by SmartThings)
|
|
98
99
|
|
|
99
100
|
All these devices continuously change their state and position. The plugin also shows how to use all the command handlers (so you can control all the devices), how to subscribe to attributes, and how to trigger events.
|
|
100
101
|
|
package/dist/module.js
CHANGED
|
@@ -107,8 +107,8 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
|
107
107
|
constructor(matterbridge, log, config) {
|
|
108
108
|
super(matterbridge, log, config);
|
|
109
109
|
this.config = config;
|
|
110
|
-
if (typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('3.10.
|
|
111
|
-
throw new Error(`This plugin requires Matterbridge version >= "3.10.
|
|
110
|
+
if (typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('3.10.1')) {
|
|
111
|
+
throw new Error(`This plugin requires Matterbridge version >= "3.10.1". Please update Matterbridge from ${this.matterbridge.matterbridgeVersion} to the latest version in the frontend.`);
|
|
112
112
|
}
|
|
113
113
|
this.log.info('Initializing platform:', this.config.name);
|
|
114
114
|
}
|
|
@@ -176,8 +176,7 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
|
176
176
|
.addZone(CommonNumberTag.Four);
|
|
177
177
|
this.irrigationSystem = (await this.addDevice(this.irrigationSystem));
|
|
178
178
|
this.closureGarageDoor = new Closure('Garage Door', 'GAR000071', {
|
|
179
|
-
|
|
180
|
-
tagList: this.matterbridge.matterbridgeVersion === '3.10.0' ? undefined : [getSemtag(ClosureTag.GarageDoor)],
|
|
179
|
+
tagList: [getSemtag(ClosureTag.GarageDoor)],
|
|
181
180
|
});
|
|
182
181
|
this.closureGarageDoor = (await this.addDevice(this.closureGarageDoor));
|
|
183
182
|
this.closureGarageDoor?.addCommandHandler('ClosureControl.moveTo', ({ request: { position, latch, speed } }) => {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-example-dynamic-platform",
|
|
3
|
-
"version": "3.0.2-dev-20260719-
|
|
3
|
+
"version": "3.0.2-dev-20260719-bbce2ee",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge-example-dynamic-platform",
|
|
9
|
-
"version": "3.0.2-dev-20260719-
|
|
9
|
+
"version": "3.0.2-dev-20260719-bbce2ee",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"node-ansi-logger": "3.3.0",
|
package/package.json
CHANGED