matterbridge 3.4.1-dev-20251128-441f8db → 3.4.1-dev-20251130-f066d82
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 +7 -3
- package/dist/broadcastServer.js +73 -20
- package/dist/deviceManager.js +12 -11
- package/dist/frontend.js +23 -28
- package/dist/jestutils/jestHelpers.js +2 -0
- package/dist/matterNode.js +9 -5
- package/dist/matterbridge.js +15 -29
- package/dist/matterbridgePlatform.js +1 -1
- package/dist/pluginManager.js +49 -48
- package/dist/shelly.js +2 -2
- package/dist/update.js +1 -1
- package/dist/utils/error.js +3 -1
- package/dist/workerGlobalPrefix.js +39 -0
- package/dist/workerTypes.js +1 -0
- package/dist/workers.js +35 -0
- package/frontend/build/assets/index.js +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/scripts/fetch-chip.mjs +14 -12
- package/dist/defaultConfigSchema.js +0 -61
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge",
|
|
3
|
-
"version": "3.4.1-dev-
|
|
3
|
+
"version": "3.4.1-dev-20251130-f066d82",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge",
|
|
9
|
-
"version": "3.4.1-dev-
|
|
9
|
+
"version": "3.4.1-dev-20251130-f066d82",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@matter/main": "0.15.6",
|
package/package.json
CHANGED
package/scripts/fetch-chip.mjs
CHANGED
|
@@ -22,18 +22,20 @@ const XML_BASE_URL = ZCL_BASE_URL + 'data-model/chip/';
|
|
|
22
22
|
|
|
23
23
|
function fetchUrl(url) {
|
|
24
24
|
return new Promise((resolve, reject) => {
|
|
25
|
-
https
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
25
|
+
https
|
|
26
|
+
.get(url, (res) => {
|
|
27
|
+
if (res.statusCode && res.statusCode >= 300 && res.statusCode < 400 && res.headers.location) {
|
|
28
|
+
// Follow redirect
|
|
29
|
+
return resolve(fetchUrl(res.headers.location));
|
|
30
|
+
}
|
|
31
|
+
if (res.statusCode !== 200) {
|
|
32
|
+
return reject(new Error(`Failed to fetch ${url}: ${res.statusCode}`));
|
|
33
|
+
}
|
|
34
|
+
const chunks = [];
|
|
35
|
+
res.on('data', (c) => chunks.push(c));
|
|
36
|
+
res.on('end', () => resolve(Buffer.concat(chunks).toString('utf8')));
|
|
37
|
+
})
|
|
38
|
+
.on('error', reject);
|
|
37
39
|
});
|
|
38
40
|
}
|
|
39
41
|
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
export const zigbee2mqtt_config = {
|
|
2
|
-
name: 'matterbridge-zigbee2mqtt',
|
|
3
|
-
type: 'DynamicPlatform',
|
|
4
|
-
version: '1.0.0',
|
|
5
|
-
host: 'localhost',
|
|
6
|
-
username: '',
|
|
7
|
-
password: '',
|
|
8
|
-
port: 1883,
|
|
9
|
-
topic: 'zigbee2mqtt',
|
|
10
|
-
blackList: [],
|
|
11
|
-
whiteList: [],
|
|
12
|
-
switchList: [],
|
|
13
|
-
lightList: [],
|
|
14
|
-
outletList: [],
|
|
15
|
-
featureBlackList: [],
|
|
16
|
-
deviceFeatureBlackList: {},
|
|
17
|
-
debug: false,
|
|
18
|
-
unregisterOnShutdown: false,
|
|
19
|
-
};
|
|
20
|
-
export const somfytahoma_config = {
|
|
21
|
-
name: 'matterbridge-somfy-tahoma',
|
|
22
|
-
type: 'DynamicPlatform',
|
|
23
|
-
version: '1.0.0',
|
|
24
|
-
username: '',
|
|
25
|
-
password: '',
|
|
26
|
-
service: 'somfy_europe',
|
|
27
|
-
blackList: [],
|
|
28
|
-
whiteList: [],
|
|
29
|
-
movementDuration: {},
|
|
30
|
-
debug: false,
|
|
31
|
-
unregisterOnShutdown: false,
|
|
32
|
-
};
|
|
33
|
-
export const shelly_config = {
|
|
34
|
-
name: 'matterbridge-shelly',
|
|
35
|
-
type: 'DynamicPlatform',
|
|
36
|
-
version: '1.0.0',
|
|
37
|
-
username: '',
|
|
38
|
-
password: '',
|
|
39
|
-
switchList: [],
|
|
40
|
-
lightList: [],
|
|
41
|
-
inputContactList: [],
|
|
42
|
-
inputMomentaryList: [],
|
|
43
|
-
inputLatchingList: [],
|
|
44
|
-
blackList: [],
|
|
45
|
-
whiteList: [],
|
|
46
|
-
entityBlackList: [],
|
|
47
|
-
deviceEntityBlackList: {},
|
|
48
|
-
nocacheList: [],
|
|
49
|
-
enableMdnsDiscover: true,
|
|
50
|
-
enableStorageDiscover: true,
|
|
51
|
-
resetStorageDiscover: false,
|
|
52
|
-
enableBleDiscover: true,
|
|
53
|
-
failsafeCount: 0,
|
|
54
|
-
postfix: '',
|
|
55
|
-
expertMode: false,
|
|
56
|
-
debug: false,
|
|
57
|
-
debugMdns: false,
|
|
58
|
-
debugCoap: false,
|
|
59
|
-
debugWs: false,
|
|
60
|
-
unregisterOnShutdown: false,
|
|
61
|
-
};
|