matterbridge-example-accessory-platform 1.1.8 → 1.2.0-dev-20250627-3f2e529
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 +61 -9
- package/README.md +9 -2
- package/dist/platform.js +2 -2
- package/npm-shrinkwrap.json +17 -16
- package/package.json +5 -5
- package/yellow-button.png +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,62 @@
|
|
|
1
|
-
#
|
|
1
|
+
# <img src="matterbridge.svg" alt="Matterbridge Logo" width="64px" height="64px"> Matterbridge accessory platform example plugin changelog
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/matterbridge-example-accessory-platform)
|
|
4
|
+
[](https://www.npmjs.com/package/matterbridge-example-accessory-platform)
|
|
5
|
+
[](https://hub.docker.com/r/luligu/matterbridge)
|
|
6
|
+
[](https://hub.docker.com/r/luligu/matterbridge)
|
|
7
|
+

|
|
8
|
+

|
|
9
|
+
[](https://codecov.io/gh/Luligu/matterbridge-example-accessory-platformr)
|
|
10
|
+
|
|
11
|
+
[](https://www.npmjs.com/package/matterbridge)
|
|
12
|
+
[](https://www.npmjs.com/package/matter-history)
|
|
13
|
+
[](https://www.npmjs.com/package/node-ansi-logger)
|
|
14
|
+
[](https://www.npmjs.com/package/node-persist-manager)
|
|
15
|
+
|
|
16
|
+
---
|
|
2
17
|
|
|
3
18
|
All notable changes to this project will be documented in this file.
|
|
4
19
|
|
|
5
20
|
If you like this project and find it useful, please consider giving it a star on GitHub at https://github.com/Luligu/matterbridge-example-dynamic-platform and sponsoring it.
|
|
6
21
|
|
|
7
|
-
## [1.
|
|
22
|
+
## [1.2.0] - 2025-06-25
|
|
23
|
+
|
|
24
|
+
### Added
|
|
25
|
+
|
|
26
|
+
- [DevContainer]: Added support for the **Matterbridge Dev Container** with an optimized named volume for `node_modules`.
|
|
27
|
+
- [GitHub]: Added GitHub issue templates for bug reports and feature requests.
|
|
28
|
+
- [ESLint]: Refactored the flat config.
|
|
29
|
+
- [ESLint]: Added the plugins `eslint-plugin-promise`, `eslint-plugin-jsdoc`, and `@vitest/eslint-plugin`.
|
|
30
|
+
- [Jest]: Refactored the flat config.
|
|
31
|
+
- [Vitest]: Added Vitest for TypeScript project testing. It will replace Jest, which does not work correctly with ESM module mocks.
|
|
32
|
+
- [JSDoc]: Added missing JSDoc comments, including `@param` and `@returns` tags.
|
|
33
|
+
- [CodeQL]: Added CodeQL badge in the readme.
|
|
34
|
+
- [Codecov]: Added Codecov badge in the readme.
|
|
35
|
+
|
|
36
|
+
### Changed
|
|
37
|
+
|
|
38
|
+
- [package]: Updated package to Automator v. 2.0.1.
|
|
39
|
+
- [package]: Updated dependencies.
|
|
40
|
+
- [storage]: Bumped `node-storage-manager` to 2.0.0.
|
|
41
|
+
- [logger]: Bumped `node-ansi-logger` to 3.1.1.
|
|
42
|
+
|
|
43
|
+
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
44
|
+
<img src="bmc-button.svg" alt="Buy me a coffee" width="80">
|
|
45
|
+
</a>
|
|
46
|
+
|
|
47
|
+
## [1.1.9] - 2025-04-30
|
|
48
|
+
|
|
49
|
+
### Changed
|
|
50
|
+
|
|
51
|
+
- [package]: Require matterbridge 3.0.0.
|
|
52
|
+
- [package]: Updated package.
|
|
53
|
+
- [package]: Updated dependencies.
|
|
54
|
+
|
|
55
|
+
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
56
|
+
<img src="bmc-button.svg" alt="Buy me a coffee" width="80">
|
|
57
|
+
</a>
|
|
58
|
+
|
|
59
|
+
## [1.1.8] - 2025-04-07
|
|
8
60
|
|
|
9
61
|
### Changed
|
|
10
62
|
|
|
@@ -13,7 +65,7 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
13
65
|
- [package]: Updated dependencies.
|
|
14
66
|
|
|
15
67
|
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
16
|
-
<img src="
|
|
68
|
+
<img src="bmc-button.svg" alt="Buy me a coffee" width="80">
|
|
17
69
|
</a>
|
|
18
70
|
|
|
19
71
|
## [1.1.7] - 2025-03-05
|
|
@@ -25,7 +77,7 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
25
77
|
- [package]: Updated dependencies.
|
|
26
78
|
|
|
27
79
|
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
28
|
-
<img src="
|
|
80
|
+
<img src="bmc-button.svg" alt="Buy me a coffee" width="80">
|
|
29
81
|
</a>
|
|
30
82
|
|
|
31
83
|
## [1.1.6] - 2025-02-02
|
|
@@ -37,7 +89,7 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
37
89
|
- [package]: Updated dependencies.
|
|
38
90
|
|
|
39
91
|
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
40
|
-
<img src="
|
|
92
|
+
<img src="bmc-button.svg" alt="Buy me a coffee" width="80">
|
|
41
93
|
</a>
|
|
42
94
|
|
|
43
95
|
## [1.1.4] - 2025-01-21
|
|
@@ -49,7 +101,7 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
49
101
|
- [package]: Updated package.
|
|
50
102
|
|
|
51
103
|
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
52
|
-
<img src="
|
|
104
|
+
<img src="bmc-button.svg" alt="Buy me a coffee" width="80">
|
|
53
105
|
</a>
|
|
54
106
|
|
|
55
107
|
## [1.1.3] - 2024-12-21
|
|
@@ -64,7 +116,7 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
64
116
|
- [package]: Updated package.
|
|
65
117
|
|
|
66
118
|
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
67
|
-
<img src="
|
|
119
|
+
<img src="bmc-button.svg" alt="Buy me a coffee" width="80">
|
|
68
120
|
</a>
|
|
69
121
|
|
|
70
122
|
## [1.1.2] - 2024-12-12
|
|
@@ -76,7 +128,7 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
76
128
|
- [package]: Updated dependencies.
|
|
77
129
|
|
|
78
130
|
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
79
|
-
<img src="
|
|
131
|
+
<img src="bmc-button.svg" alt="Buy me a coffee" width="80">
|
|
80
132
|
</a>
|
|
81
133
|
|
|
82
134
|
## [1.1.0] - 2024-11-25
|
|
@@ -88,7 +140,7 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
88
140
|
- [package]: Updated dependencies.
|
|
89
141
|
|
|
90
142
|
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
91
|
-
<img src="
|
|
143
|
+
<img src="bmc-button.svg" alt="Buy me a coffee" width="80">
|
|
92
144
|
</a>
|
|
93
145
|
|
|
94
146
|
<!-- Commented out section
|
package/README.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
# <img src="
|
|
1
|
+
# <img src="matterbridge.svg" alt="Matterbridge Logo" width="64px" height="64px"> Matterbridge accessory platform example plugin
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/matterbridge-example-accessory-platform)
|
|
4
4
|
[](https://www.npmjs.com/package/matterbridge-example-accessory-platform)
|
|
5
5
|
[](https://hub.docker.com/r/luligu/matterbridge)
|
|
6
6
|
[](https://hub.docker.com/r/luligu/matterbridge)
|
|
7
7
|

|
|
8
|
-

|
|
9
|
+
[](https://codecov.io/gh/Luligu/matterbridge-example-accessory-platform)
|
|
9
10
|
|
|
10
11
|
[](https://www.npmjs.com/package/matterbridge)
|
|
11
12
|
[](https://www.npmjs.com/package/matter-history)
|
|
@@ -18,8 +19,14 @@ Matterbridge accessory platform example plugin is a template to develop your own
|
|
|
18
19
|
|
|
19
20
|
It exposes a cover device that continuously moves position and shows how to use the command handlers (you can control the device).
|
|
20
21
|
|
|
22
|
+
If you want to write your plugin, the easiest way to start create a new plugin is to clone the [Matterbridge Plugin Template](https://github.com/Luligu/matterbridge-plugin-template) which has **Dev Container support for instant development environment** and all tools and extensions (like Node.js, npm, TypeScript, ESLint, Prettier, Jest and Vitest) already loaded and configured.
|
|
23
|
+
|
|
21
24
|
If you like this project and find it useful, please consider giving it a star on GitHub at https://github.com/Luligu/matterbridge-example-accessory-platform and sponsoring it.
|
|
22
25
|
|
|
26
|
+
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
27
|
+
<img src="bmc-button.svg" alt="Buy me a coffee" width="120">
|
|
28
|
+
</a>
|
|
29
|
+
|
|
23
30
|
## Prerequisites
|
|
24
31
|
|
|
25
32
|
### Matterbridge
|
package/dist/platform.js
CHANGED
|
@@ -6,8 +6,8 @@ export class ExampleMatterbridgeAccessoryPlatform extends MatterbridgeAccessoryP
|
|
|
6
6
|
coverInterval;
|
|
7
7
|
constructor(matterbridge, log, config) {
|
|
8
8
|
super(matterbridge, log, config);
|
|
9
|
-
if (this.verifyMatterbridgeVersion === undefined || typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('
|
|
10
|
-
throw new Error(`This plugin requires Matterbridge version >= "
|
|
9
|
+
if (this.verifyMatterbridgeVersion === undefined || typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('3.0.0')) {
|
|
10
|
+
throw new Error(`This plugin requires Matterbridge version >= "3.0.0". Please update Matterbridge from ${this.matterbridge.matterbridgeVersion} to the latest version in the frontend.`);
|
|
11
11
|
}
|
|
12
12
|
this.log.info('Initializing platform:', this.config.name);
|
|
13
13
|
}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-example-accessory-platform",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0-dev-20250627-3f2e529",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge-example-accessory-platform",
|
|
9
|
-
"version": "1.
|
|
10
|
-
"license": "
|
|
9
|
+
"version": "1.2.0-dev-20250627-3f2e529",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"node-ansi-logger": "3.
|
|
13
|
-
"node-persist-manager": "
|
|
12
|
+
"node-ansi-logger": "3.1.1",
|
|
13
|
+
"node-persist-manager": "2.0.0"
|
|
14
14
|
},
|
|
15
15
|
"engines": {
|
|
16
|
-
"node": ">=18.0.0 <19.0.0 || >=20.0.0 <21.0.0 || >=22.0.0"
|
|
16
|
+
"node": ">=18.0.0 <19.0.0 || >=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0"
|
|
17
17
|
},
|
|
18
18
|
"funding": {
|
|
19
19
|
"type": "buymeacoffee",
|
|
@@ -21,12 +21,13 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"node_modules/node-ansi-logger": {
|
|
24
|
-
"version": "3.
|
|
25
|
-
"resolved": "https://registry.npmjs.org/node-ansi-logger/-/node-ansi-logger-3.
|
|
26
|
-
"integrity": "sha512-
|
|
27
|
-
"
|
|
24
|
+
"version": "3.1.1",
|
|
25
|
+
"resolved": "https://registry.npmjs.org/node-ansi-logger/-/node-ansi-logger-3.1.1.tgz",
|
|
26
|
+
"integrity": "sha512-tFeCSxwiRg5XaNda5nC27alzraZP76nLtUk1JDZqb9byhW4WYaSGL7/lmxFHEI16gypQDMEYljuF+wcG+cPPHw==",
|
|
27
|
+
"hasShrinkwrap": true,
|
|
28
|
+
"license": "Apache-2.0",
|
|
28
29
|
"engines": {
|
|
29
|
-
"node": ">=18.0.0"
|
|
30
|
+
"node": ">=18.0.0 <19.0.0 || >=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0"
|
|
30
31
|
},
|
|
31
32
|
"funding": {
|
|
32
33
|
"type": "buymeacoffee",
|
|
@@ -46,15 +47,15 @@
|
|
|
46
47
|
}
|
|
47
48
|
},
|
|
48
49
|
"node_modules/node-persist-manager": {
|
|
49
|
-
"version": "
|
|
50
|
-
"resolved": "https://registry.npmjs.org/node-persist-manager/-/node-persist-manager-
|
|
51
|
-
"integrity": "sha512-
|
|
50
|
+
"version": "2.0.0",
|
|
51
|
+
"resolved": "https://registry.npmjs.org/node-persist-manager/-/node-persist-manager-2.0.0.tgz",
|
|
52
|
+
"integrity": "sha512-jpgOqCCn4ZEnIr4WcvqkyyGmmLJarV6aUyBlDQdG1G84X9UUmOmI1W2OZtc9K0z375CYWhjtGEXaY7GXNiEOfA==",
|
|
52
53
|
"license": "MIT",
|
|
53
54
|
"dependencies": {
|
|
54
|
-
"node-persist": "
|
|
55
|
+
"node-persist": "4.0.4"
|
|
55
56
|
},
|
|
56
57
|
"engines": {
|
|
57
|
-
"node": ">=18.0.0"
|
|
58
|
+
"node": ">=18.0.0 <19.0.0 || >=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0"
|
|
58
59
|
},
|
|
59
60
|
"funding": {
|
|
60
61
|
"type": "buymeacoffee",
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-example-accessory-platform",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0-dev-20250627-3f2e529",
|
|
4
4
|
"description": "Matterbridge accessory plugin",
|
|
5
5
|
"author": "https://github.com/Luligu",
|
|
6
|
-
"license": "
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
7
|
"homepage": "https://www.npmjs.com/package/matterbridge-example-accessory-platform",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "dist/index.js",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"plugin"
|
|
28
28
|
],
|
|
29
29
|
"engines": {
|
|
30
|
-
"node": ">=18.0.0 <19.0.0 || >=20.0.0 <21.0.0 || >=22.0.0"
|
|
30
|
+
"node": ">=18.0.0 <19.0.0 || >=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"node-ansi-logger": "3.
|
|
34
|
-
"node-persist-manager": "
|
|
33
|
+
"node-ansi-logger": "3.1.1",
|
|
34
|
+
"node-persist-manager": "2.0.0"
|
|
35
35
|
}
|
|
36
36
|
}
|
|
Binary file
|