matterbridge 1.3.3 → 1.3.5
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 +598 -542
- package/README.md +641 -594
- package/dist/cluster/CarbonDioxideConcentrationMeasurementCluster.d.ts +1 -1
- package/dist/cluster/CarbonDioxideConcentrationMeasurementCluster.d.ts.map +1 -1
- package/dist/cluster/CarbonDioxideConcentrationMeasurementCluster.js +1 -1
- package/dist/cluster/CarbonDioxideConcentrationMeasurementCluster.js.map +1 -1
- package/dist/cluster/CarbonMonoxideConcentrationMeasurementCluster.d.ts +1 -1
- package/dist/cluster/CarbonMonoxideConcentrationMeasurementCluster.d.ts.map +1 -1
- package/dist/cluster/CarbonMonoxideConcentrationMeasurementCluster.js +1 -1
- package/dist/cluster/CarbonMonoxideConcentrationMeasurementCluster.js.map +1 -1
- package/dist/cluster/FormaldehydeConcentrationMeasurementCluster.d.ts +1 -1
- package/dist/cluster/FormaldehydeConcentrationMeasurementCluster.d.ts.map +1 -1
- package/dist/cluster/FormaldehydeConcentrationMeasurementCluster.js +1 -1
- package/dist/cluster/FormaldehydeConcentrationMeasurementCluster.js.map +1 -1
- package/dist/cluster/NitrogenDioxideConcentrationMeasurementCluster.d.ts +1 -1
- package/dist/cluster/NitrogenDioxideConcentrationMeasurementCluster.d.ts.map +1 -1
- package/dist/cluster/NitrogenDioxideConcentrationMeasurementCluster.js +1 -1
- package/dist/cluster/NitrogenDioxideConcentrationMeasurementCluster.js.map +1 -1
- package/dist/cluster/OzoneConcentrationMeasurementCluster.d.ts +1 -1
- package/dist/cluster/OzoneConcentrationMeasurementCluster.d.ts.map +1 -1
- package/dist/cluster/OzoneConcentrationMeasurementCluster.js +1 -1
- package/dist/cluster/OzoneConcentrationMeasurementCluster.js.map +1 -1
- package/dist/cluster/Pm10ConcentrationMeasurementCluster.d.ts +1 -1
- package/dist/cluster/Pm10ConcentrationMeasurementCluster.d.ts.map +1 -1
- package/dist/cluster/Pm10ConcentrationMeasurementCluster.js +1 -1
- package/dist/cluster/Pm10ConcentrationMeasurementCluster.js.map +1 -1
- package/dist/cluster/Pm1ConcentrationMeasurementCluster.d.ts +1 -1
- package/dist/cluster/Pm1ConcentrationMeasurementCluster.d.ts.map +1 -1
- package/dist/cluster/Pm1ConcentrationMeasurementCluster.js +1 -1
- package/dist/cluster/Pm1ConcentrationMeasurementCluster.js.map +1 -1
- package/dist/cluster/Pm25ConcentrationMeasurementCluster.d.ts +1 -1
- package/dist/cluster/Pm25ConcentrationMeasurementCluster.d.ts.map +1 -1
- package/dist/cluster/Pm25ConcentrationMeasurementCluster.js +2 -2
- package/dist/cluster/Pm25ConcentrationMeasurementCluster.js.map +1 -1
- package/dist/cluster/RadonConcentrationMeasurementCluster.d.ts +1 -1
- package/dist/cluster/RadonConcentrationMeasurementCluster.d.ts.map +1 -1
- package/dist/cluster/RadonConcentrationMeasurementCluster.js +1 -1
- package/dist/cluster/RadonConcentrationMeasurementCluster.js.map +1 -1
- package/dist/cluster/export.d.ts +25 -0
- package/dist/cluster/export.d.ts.map +1 -0
- package/dist/cluster/export.js +25 -0
- package/dist/cluster/export.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/dist/log/export.d.ts +2 -0
- package/dist/log/export.d.ts.map +1 -0
- package/dist/log/export.js +2 -0
- package/dist/log/export.js.map +1 -0
- package/dist/matterbridge.d.ts +6 -0
- package/dist/matterbridge.d.ts.map +1 -1
- package/dist/matterbridge.js +172 -306
- package/dist/matterbridge.js.map +1 -1
- package/dist/matterbridgeController.d.ts.map +1 -1
- package/dist/matterbridgeController.js +0 -3
- package/dist/matterbridgeController.js.map +1 -1
- package/dist/matterbridgeDevice.d.ts +213 -4
- package/dist/matterbridgeDevice.d.ts.map +1 -1
- package/dist/matterbridgeDevice.js +129 -42
- package/dist/matterbridgeDevice.js.map +1 -1
- package/dist/storage/export.d.ts +2 -0
- package/dist/storage/export.d.ts.map +1 -0
- package/dist/storage/export.js +2 -0
- package/dist/storage/export.js.map +1 -0
- package/dist/utils/colorUtils.d.ts +61 -0
- package/dist/utils/colorUtils.d.ts.map +1 -0
- package/dist/utils/colorUtils.js +313 -0
- package/dist/utils/colorUtils.js.map +1 -0
- package/dist/utils/export.d.ts +3 -0
- package/dist/utils/export.d.ts.map +1 -0
- package/dist/utils/export.js +3 -0
- package/dist/utils/export.js.map +1 -0
- package/dist/utils/utils.d.ts +73 -0
- package/dist/utils/utils.d.ts.map +1 -0
- package/dist/utils/utils.js +266 -0
- package/dist/utils/utils.js.map +1 -0
- package/dist/utils.d.ts +1 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +4 -0
- package/dist/utils.js.map +1 -1
- package/frontend/build/asset-manifest.json +3 -3
- package/frontend/build/index.html +1 -1
- package/frontend/build/static/js/{main.cbfc6c9b.js → main.c3b5dfce.js} +3 -3
- package/frontend/build/static/js/{main.cbfc6c9b.js.map → main.c3b5dfce.js.map} +1 -1
- package/package.json +34 -20
- package/migrationV8.txt +0 -61
- /package/frontend/build/static/js/{main.cbfc6c9b.js.LICENSE.txt → main.c3b5dfce.js.LICENSE.txt} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"description": "Matterbridge plugin manager for Matter",
|
|
5
5
|
"author": "https://github.com/Luligu",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -57,46 +57,60 @@
|
|
|
57
57
|
"test": "jest",
|
|
58
58
|
"test:verbose": "jest --verbose",
|
|
59
59
|
"test:watch": "jest --watch",
|
|
60
|
-
"lint": "eslint
|
|
61
|
-
"lint:fix": "eslint
|
|
62
|
-
"format": "prettier --write \"
|
|
63
|
-
"format:check": "prettier --check \"
|
|
60
|
+
"lint": "eslint --max-warnings=0 .",
|
|
61
|
+
"lint:fix": "eslint --fix --max-warnings=0 .",
|
|
62
|
+
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,css,md}\"",
|
|
63
|
+
"format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,json,css,md}\"",
|
|
64
64
|
"clean": "rimraf tsconfig.tsbuildinfo ./dist",
|
|
65
65
|
"cleanBuild": "npm run clean && npm run build",
|
|
66
66
|
"deepClean": "rimraf tsconfig.tsbuildinfo package-lock.json ./dist ./node_modules",
|
|
67
|
-
"deepCleanRebuild": "npm run deepClean && npm install && npm run build && npm ls inflight glob",
|
|
67
|
+
"deepCleanRebuild": "npm run deepClean && npm install && npm run build && npm ls rimraf inflight glob",
|
|
68
68
|
"prepublishOnly": "npm run wtf:uninstall && npm uninstall matter-history && npm install matter-history && npm run lint && npm run cleanBuild",
|
|
69
69
|
"checkDependencies": "npx npm-check-updates",
|
|
70
70
|
"updateDependencies": "npx npm-check-updates -u && npm install & npm run cleanBuild",
|
|
71
71
|
"updateMatter:latest": "npm run deepClean && npm install @project-chip/matter-node.js@latest && npm install && npm run build",
|
|
72
72
|
"updateMatter:dev": "npm run deepClean && npm install @project-chip/matter-node.js@dev && npm install && npm run build",
|
|
73
|
-
"wtf:install": "npm install wtfnode && npm install @types/wtfnode",
|
|
74
|
-
"wtf:uninstall": "npm uninstall wtfnode
|
|
73
|
+
"wtf:install": "npm install wtfnode && npm install --save-dev @types/wtfnode",
|
|
74
|
+
"wtf:uninstall": "npm uninstall wtfnode @types/wtfnode",
|
|
75
75
|
"preversion": "npm run build && npm run lint",
|
|
76
76
|
"postversion": "git push && git push --tags",
|
|
77
77
|
"version:patch": "npm version patch",
|
|
78
78
|
"version:minor": "npm version minor",
|
|
79
|
-
"version:major": "npm version major"
|
|
79
|
+
"version:major": "npm version major",
|
|
80
|
+
"install:dependencies": "npm install @project-chip/matter-node.js body-parser express https matter-history node-ansi-logger node-persist-manager ws && npm install --save-dev rimraf",
|
|
81
|
+
"install:typescript": "npm install --save-dev @types/express @types/node @types/ws typescript && npm run build",
|
|
82
|
+
"install:eslint": "npm install --save-dev @eslint/js @types/eslint__js typescript-eslint",
|
|
83
|
+
"install:prettier": "npm install --save-dev prettier eslint-config-prettier eslint-plugin-prettier",
|
|
84
|
+
"install:jest": "npm install --save-dev jest ts-jest @types/jest eslint-plugin-jest"
|
|
80
85
|
},
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"@types/express": "^4.17.21",
|
|
84
|
-
"@types/node": "^20.14.8",
|
|
85
|
-
"@types/ws": "^8.5.10",
|
|
86
|
-
"@typescript-eslint/eslint-plugin": "^7.13.1",
|
|
87
|
-
"@typescript-eslint/parser": "^7.13.1",
|
|
88
|
-
"eslint-config-prettier": "^9.1.0",
|
|
89
|
-
"eslint-plugin-prettier": "^5.1.3",
|
|
90
|
-
"prettier": "^3.3.2",
|
|
91
|
-
"typescript": "^5.5.2"
|
|
86
|
+
"overrides": {
|
|
87
|
+
"eslint": "latest"
|
|
92
88
|
},
|
|
93
89
|
"dependencies": {
|
|
94
90
|
"@project-chip/matter-node.js": "^0.9.2",
|
|
95
91
|
"body-parser": "^1.20.2",
|
|
96
92
|
"express": "^4.19.2",
|
|
93
|
+
"https": "^1.0.0",
|
|
97
94
|
"matter-history": "^1.1.2",
|
|
98
95
|
"node-ansi-logger": "^1.9.5",
|
|
99
96
|
"node-persist-manager": "^1.0.7",
|
|
100
97
|
"ws": "^8.17.1"
|
|
98
|
+
},
|
|
99
|
+
"devDependencies": {
|
|
100
|
+
"@eslint/js": "^9.5.0",
|
|
101
|
+
"@types/eslint__js": "^8.42.3",
|
|
102
|
+
"@types/express": "^4.17.21",
|
|
103
|
+
"@types/jest": "^29.5.12",
|
|
104
|
+
"@types/node": "^20.14.9",
|
|
105
|
+
"@types/ws": "^8.5.10",
|
|
106
|
+
"eslint-config-prettier": "^9.1.0",
|
|
107
|
+
"eslint-plugin-jest": "^28.6.0",
|
|
108
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
109
|
+
"jest": "^29.7.0",
|
|
110
|
+
"prettier": "^3.3.2",
|
|
111
|
+
"rimraf": "^5.0.7",
|
|
112
|
+
"ts-jest": "^29.1.5",
|
|
113
|
+
"typescript": "^5.5.2",
|
|
114
|
+
"typescript-eslint": "^7.14.1"
|
|
101
115
|
}
|
|
102
116
|
}
|
package/migrationV8.txt
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
Hi,
|
|
2
|
-
as always thank you for your help and your time.
|
|
3
|
-
|
|
4
|
-
So, the migration to new api (V8 in the code...)
|
|
5
|
-
|
|
6
|
-
I need to do it in steps but before I need your help with a few questions and problems.
|
|
7
|
-
|
|
8
|
-
I have a few questions:
|
|
9
|
-
|
|
10
|
-
- environment
|
|
11
|
-
|
|
12
|
-
how can I disable Environment from loading the environment from user machine: I'm worried about what it can find there and is not controllable
|
|
13
|
-
|
|
14
|
-
how can I disable Environment from loading the process argv: I'm worried about what it can find there and is not controllable
|
|
15
|
-
|
|
16
|
-
I prefer to set all in the code:
|
|
17
|
-
this.environment.vars.set('log.level', level);
|
|
18
|
-
this.environment.vars.set('log.format', format);
|
|
19
|
-
this.environment.vars.set('path.root', path.join(this.matterbridgeDirectory, 'matterstorage'));
|
|
20
|
-
this.environment.vars.set('runtime.signals', false);
|
|
21
|
-
this.environment.vars.set('runtime.exitcode', false);
|
|
22
|
-
what other setting are there ?
|
|
23
|
-
|
|
24
|
-
- storage
|
|
25
|
-
|
|
26
|
-
StorageService
|
|
27
|
-
I always used json storage cause is more human readable and easy to send in issues and easy to backup and copy
|
|
28
|
-
Do we have it in V8 api?
|
|
29
|
-
How can I set it if we have it ?
|
|
30
|
-
|
|
31
|
-
- commissioning server
|
|
32
|
-
Just a confirmation: with V8 I will have a serverNode with different port for each plugin. Correct ?
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
I have a few problems:
|
|
37
|
-
|
|
38
|
-
- *** How can I add other device types to the EndpointV8 ? I always have at least 2 or 3 device types and sometimes more on the same endpoint.
|
|
39
|
-
|
|
40
|
-
- *** How can I add other behaviours/clusters after I create the endpointV8 ?
|
|
41
|
-
|
|
42
|
-
- I use bringOnLine(). How can I prevent matter.js to show the QRCode? I want to show it myself with other info.
|
|
43
|
-
|
|
44
|
-
- *** How can I trigger an event?
|
|
45
|
-
switchEnpoint2.events.switch.emit('initialPress', { newPosition: 1 }, ... );
|
|
46
|
-
I did not find an example in the migration guide for the third parameter.
|
|
47
|
-
|
|
48
|
-
- *** How can I add the command handlers to the behaviours/clusters with commands?
|
|
49
|
-
> matterbridgeDevice3.events.identify.startIdentifying.on(() => log.notice('Run identify logic, ideally blink a light every 0.5s ...'));
|
|
50
|
-
This typed way is not usable for me. I need to add them like in the old api with a not typed way...
|
|
51
|
-
I need something like addCommandHandler('identify', (data) => {} )
|
|
52
|
-
|
|
53
|
-
- How can I access the matter endpoint? I mean the real endpoint with attributes, events, and commands...
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
This is the MatterbridgeV8 version just to use the V8 api (not cli no frontend just the minimun needed to load the plugins)
|
|
57
|
-
https://github.com/Luligu/matterbridge/blob/dev/src/matterbridgeV8.ts
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
This is the MatterbridgeDeviceV8 version where I try to figure out how to adapt it to V8 api
|
|
61
|
-
https://github.com/Luligu/matterbridge/blob/dev/src/matterbridgeDeviceV8.ts
|
/package/frontend/build/static/js/{main.cbfc6c9b.js.LICENSE.txt → main.c3b5dfce.js.LICENSE.txt}
RENAMED
|
File without changes
|