matterbridge 1.2.4 → 1.2.6
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 +29 -0
- package/README.md +106 -8
- package/TODO.md +7 -0
- package/dist/AirQualityCluster.d.ts +2 -13
- package/dist/AirQualityCluster.d.ts.map +1 -1
- package/dist/AirQualityCluster.js +6 -6
- package/dist/AirQualityCluster.js.map +1 -1
- package/dist/EveHistoryCluster.d.ts +6 -26
- package/dist/EveHistoryCluster.d.ts.map +1 -1
- package/dist/EveHistoryCluster.js +6 -14
- package/dist/EveHistoryCluster.js.map +1 -1
- package/dist/TvocCluster.d.ts +2 -15
- package/dist/TvocCluster.d.ts.map +1 -1
- package/dist/TvocCluster.js +6 -6
- package/dist/TvocCluster.js.map +1 -1
- package/dist/cli.js +6 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/matterbridge.d.ts +15 -0
- package/dist/matterbridge.d.ts.map +1 -1
- package/dist/matterbridge.js +367 -174
- package/dist/matterbridge.js.map +1 -1
- package/dist/matterbridgeController.d.ts.map +1 -1
- package/dist/matterbridgeController.js +9 -0
- package/dist/matterbridgeController.js.map +1 -1
- package/dist/matterbridgeDevice.d.ts +1241 -9
- package/dist/matterbridgeDevice.d.ts.map +1 -1
- package/dist/matterbridgeDevice.js +315 -92
- package/dist/matterbridgeDevice.js.map +1 -1
- package/frontend/build/asset-manifest.json +14 -14
- package/frontend/build/index.html +1 -1
- package/frontend/build/matterbridge 32x32.png +0 -0
- package/frontend/build/matterbridge 64x64.png +0 -0
- package/frontend/build/static/css/main.61f6cf42.css +1 -1
- package/frontend/build/static/css/main.61f6cf42.css.map +1 -1
- package/frontend/build/static/js/main.6b861489.js +3 -0
- package/frontend/build/static/js/{main.e3553a4d.js.LICENSE.txt → main.6b861489.js.LICENSE.txt} +99 -99
- package/frontend/build/static/js/main.6b861489.js.map +1 -0
- package/matterbridge.service +17 -0
- package/package.json +6 -5
- package/dist/matterbridgeComposed.d.ts +0 -43
- package/dist/matterbridgeComposed.d.ts.map +0 -1
- package/dist/matterbridgeComposed.js +0 -58
- package/dist/matterbridgeComposed.js.map +0 -1
- package/frontend/build/Matterbridge.jpg +0 -0
- package/frontend/build/static/js/main.e3553a4d.js +0 -3
- package/frontend/build/static/js/main.e3553a4d.js.map +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[Unit]
|
|
2
|
+
Description=matterbridge
|
|
3
|
+
After=network-online.target
|
|
4
|
+
|
|
5
|
+
[Service]
|
|
6
|
+
Type=simple
|
|
7
|
+
ExecStart=/usr/bin/matterbridge -bridge
|
|
8
|
+
WorkingDirectory=/home/<USER>/Matterbridge
|
|
9
|
+
StandardOutput=inherit
|
|
10
|
+
StandardError=inherit
|
|
11
|
+
Restart=always
|
|
12
|
+
RestartSec=10s
|
|
13
|
+
TimeoutStopSec=30s
|
|
14
|
+
User=<USER>
|
|
15
|
+
|
|
16
|
+
[Install]
|
|
17
|
+
WantedBy=multi-user.target
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"description": "Matterbridge plugin manager for Matter",
|
|
5
5
|
"author": "https://github.com/Luligu",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -69,16 +69,17 @@
|
|
|
69
69
|
"@stylistic/eslint-plugin": "^1.7.0",
|
|
70
70
|
"@tsconfig/node-lts": "^20.1.3",
|
|
71
71
|
"@types/express": "^4.17.21",
|
|
72
|
-
"@types/node": "^20.12.
|
|
73
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
74
|
-
"@typescript-eslint/parser": "^7.
|
|
72
|
+
"@types/node": "^20.12.5",
|
|
73
|
+
"@typescript-eslint/eslint-plugin": "^7.6.0",
|
|
74
|
+
"@typescript-eslint/parser": "^7.6.0",
|
|
75
75
|
"eslint-config-prettier": "^9.1.0",
|
|
76
76
|
"eslint-plugin-prettier": "^5.1.3",
|
|
77
77
|
"prettier": "^3.2.5",
|
|
78
|
-
"typescript": "^5.4.
|
|
78
|
+
"typescript": "^5.4.4"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
81
|
"@project-chip/matter-node.js": "^0.8.0",
|
|
82
|
+
"body-parser": "^1.20.2",
|
|
82
83
|
"express": "^4.19.2",
|
|
83
84
|
"matter-history": "^1.0.13",
|
|
84
85
|
"node-ansi-logger": "^1.9.3",
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the class MatterbridgeComposed.
|
|
3
|
-
*
|
|
4
|
-
* @file matterbridgeComposed.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @date 2024-02-27
|
|
7
|
-
* @version 1.0.0
|
|
8
|
-
*
|
|
9
|
-
* Copyright 2024 Luca Liguori.
|
|
10
|
-
*
|
|
11
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
12
|
-
* you may not use this file except in compliance with the License.
|
|
13
|
-
* You may obtain a copy of the License at
|
|
14
|
-
*
|
|
15
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
16
|
-
*
|
|
17
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
18
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
19
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
|
-
* See the License for the specific language governing permissions and
|
|
21
|
-
* limitations under the License. *
|
|
22
|
-
*/
|
|
23
|
-
import { CommissioningServer, CommissioningServerOptions } from '@project-chip/matter-node.js';
|
|
24
|
-
import { Device } from '@project-chip/matter-node.js/device';
|
|
25
|
-
/**
|
|
26
|
-
* @deprecated This class is deprecated and will be removed in future versions.
|
|
27
|
-
* Use the MatterbridgeDevice class instead.
|
|
28
|
-
*/
|
|
29
|
-
export declare class MatterbridgeComposed extends CommissioningServer {
|
|
30
|
-
/**
|
|
31
|
-
* Create a new Aggregator instance and optionally directly add devices to it. If this is used the devices must
|
|
32
|
-
* already have the BridgedDeviceBasicInformationCluster added!
|
|
33
|
-
* @param devices Array of devices to add
|
|
34
|
-
* @param options Optional Endpoint options
|
|
35
|
-
*/
|
|
36
|
-
constructor(devices: Device[], options: CommissioningServerOptions);
|
|
37
|
-
/**
|
|
38
|
-
* Add a sub-device to the composed device.
|
|
39
|
-
* @param device Device instance to add
|
|
40
|
-
*/
|
|
41
|
-
addRootDevice(device: Device): void;
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=matterbridgeComposed.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"matterbridgeComposed.d.ts","sourceRoot":"","sources":["../src/matterbridgeComposed.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAKH,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC/F,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;AAE7D;;;GAGG;AACH,qBAAa,oBAAqB,SAAQ,mBAAmB;IAC3D;;;;;OAKG;gBACS,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,0BAA0B;IAclE;;;OAGG;IACH,aAAa,CAAC,MAAM,EAAE,MAAM;CAG7B"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains the class MatterbridgeComposed.
|
|
3
|
-
*
|
|
4
|
-
* @file matterbridgeComposed.ts
|
|
5
|
-
* @author Luca Liguori
|
|
6
|
-
* @date 2024-02-27
|
|
7
|
-
* @version 1.0.0
|
|
8
|
-
*
|
|
9
|
-
* Copyright 2024 Luca Liguori.
|
|
10
|
-
*
|
|
11
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
12
|
-
* you may not use this file except in compliance with the License.
|
|
13
|
-
* You may obtain a copy of the License at
|
|
14
|
-
*
|
|
15
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
16
|
-
*
|
|
17
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
18
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
19
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
|
-
* See the License for the specific language governing permissions and
|
|
21
|
-
* limitations under the License. *
|
|
22
|
-
*/
|
|
23
|
-
// Just a test if it is possible to aggregate devices without an aggregator
|
|
24
|
-
// DONT USE THIS
|
|
25
|
-
import { CommissioningServer } from '@project-chip/matter-node.js';
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated This class is deprecated and will be removed in future versions.
|
|
28
|
-
* Use the MatterbridgeDevice class instead.
|
|
29
|
-
*/
|
|
30
|
-
export class MatterbridgeComposed extends CommissioningServer {
|
|
31
|
-
/**
|
|
32
|
-
* Create a new Aggregator instance and optionally directly add devices to it. If this is used the devices must
|
|
33
|
-
* already have the BridgedDeviceBasicInformationCluster added!
|
|
34
|
-
* @param devices Array of devices to add
|
|
35
|
-
* @param options Optional Endpoint options
|
|
36
|
-
*/
|
|
37
|
-
constructor(devices, options) {
|
|
38
|
-
/*
|
|
39
|
-
// Aggregator is a Composed device with an DeviceTypes.AGGREGATOR device type
|
|
40
|
-
const deviceType = DeviceTypeDefinition({
|
|
41
|
-
name: 'MA-composed',
|
|
42
|
-
code: 0x0015,
|
|
43
|
-
deviceClass: DeviceClasses.Composed,
|
|
44
|
-
revision: 1,
|
|
45
|
-
});
|
|
46
|
-
*/
|
|
47
|
-
super(options);
|
|
48
|
-
devices.forEach((device) => this.addRootDevice(device));
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Add a sub-device to the composed device.
|
|
52
|
-
* @param device Device instance to add
|
|
53
|
-
*/
|
|
54
|
-
addRootDevice(device) {
|
|
55
|
-
this.getRootEndpoint().addChildEndpoint(device);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
//# sourceMappingURL=matterbridgeComposed.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"matterbridgeComposed.js","sourceRoot":"","sources":["../src/matterbridgeComposed.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,2EAA2E;AAC3E,gBAAgB;AAEhB,OAAO,EAAE,mBAAmB,EAA8B,MAAM,8BAA8B,CAAC;AAG/F;;;GAGG;AACH,MAAM,OAAO,oBAAqB,SAAQ,mBAAmB;IAC3D;;;;;OAKG;IACH,YAAY,OAAiB,EAAE,OAAmC;QAChE;;;;;;;;UAQE;QACF,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;IAC1D,CAAC;IAED;;;OAGG;IACH,aAAa,CAAC,MAAc;QAC1B,IAAI,CAAC,eAAe,EAAE,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAClD,CAAC;CACF"}
|
|
Binary file
|