matterbridge 1.1.10 → 1.1.12
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 +19 -2
- package/README.md +58 -13
- package/dist/matterbridge.d.ts +13 -2
- package/dist/matterbridge.d.ts.map +1 -1
- package/dist/matterbridge.js +182 -86
- package/dist/matterbridge.js.map +1 -1
- package/dist/matterbridgeAccessoryPlatform.d.ts +2 -5
- package/dist/matterbridgeAccessoryPlatform.d.ts.map +1 -1
- package/dist/matterbridgeAccessoryPlatform.js +4 -7
- package/dist/matterbridgeAccessoryPlatform.js.map +1 -1
- package/dist/matterbridgeDevice.d.ts +8 -3
- package/dist/matterbridgeDevice.d.ts.map +1 -1
- package/dist/matterbridgeDevice.js +80 -20
- package/dist/matterbridgeDevice.js.map +1 -1
- package/dist/matterbridgeDynamicPlatform.d.ts +2 -5
- package/dist/matterbridgeDynamicPlatform.d.ts.map +1 -1
- package/dist/matterbridgeDynamicPlatform.js +4 -7
- package/dist/matterbridgeDynamicPlatform.js.map +1 -1
- package/dist/matterbridgePlatform.d.ts +44 -0
- package/dist/matterbridgePlatform.d.ts.map +1 -0
- package/dist/matterbridgePlatform.js +93 -0
- package/dist/matterbridgePlatform.js.map +1 -0
- package/frontend/build/asset-manifest.json +6 -6
- package/frontend/build/index.html +1 -1
- package/frontend/build/static/css/{main.3804969f.css → main.70102d98.css} +2 -2
- package/frontend/build/static/css/main.70102d98.css.map +1 -0
- package/frontend/build/static/js/main.5d39b100.js +3 -0
- package/frontend/build/static/js/main.5d39b100.js.map +1 -0
- package/package.json +15 -13
- package/frontend/build/static/css/main.3804969f.css.map +0 -1
- package/frontend/build/static/js/main.82822a11.js +0 -3
- package/frontend/build/static/js/main.82822a11.js.map +0 -1
- /package/frontend/build/static/js/{main.82822a11.js.LICENSE.txt → main.5d39b100.js.LICENSE.txt} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
-
## [1.1.
|
|
5
|
+
## [1.1.12] - 2024-03-22
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- [platform]: Added async loadConfig() and async saveConfig() to store plugin config.
|
|
10
|
+
- [platform]: Added a config: Config (JSON) property to platforms to store plugin config.
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- [dependencies]: Updated dependencies.
|
|
15
|
+
|
|
16
|
+
## [1.1.11] - 2024-03-19
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- [frontend]: Frontend got updated to 0.8.3.
|
|
21
|
+
|
|
22
|
+
## [1.1.10] - 2024-03-17
|
|
6
23
|
|
|
7
24
|
### Added
|
|
8
25
|
|
|
@@ -11,7 +28,7 @@ All notable changes to this project will be documented in this file.
|
|
|
11
28
|
- [frontend]: Enable and disable plugin are now available. Restart Matteerbridge after.
|
|
12
29
|
- [frontend]: Frontend got updated to 0.8.2.
|
|
13
30
|
|
|
14
|
-
## [1.1.9] - 2024-03-
|
|
31
|
+
## [1.1.9] - 2024-03-16
|
|
15
32
|
|
|
16
33
|
### Added
|
|
17
34
|
|
package/README.md
CHANGED
|
@@ -96,9 +96,11 @@ Devices page:
|
|
|
96
96
|
|
|
97
97
|
### Accessory platform example
|
|
98
98
|
|
|
99
|
-
This an example of an accessory platform plugin.
|
|
99
|
+
This an example of an accessory platform plugin.
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
It exposes a cover device that continouosly moves position and shows how to use the command handlers (you can control the device).
|
|
102
|
+
|
|
103
|
+
An Accessory platform plugin only exposes one device.
|
|
102
104
|
|
|
103
105
|
[See the plugin homepage here](https://github.com/Luligu/matterbridge-example-accessory-platform)
|
|
104
106
|
|
|
@@ -106,7 +108,11 @@ Accessory platform plugins only expose one device.
|
|
|
106
108
|
|
|
107
109
|
This an example of a dynamic platform plugin.
|
|
108
110
|
|
|
109
|
-
|
|
111
|
+
It exposes a switch with onOff, a light with onOff-levelControl-colorControl, an outlet with onOff and a cover device.
|
|
112
|
+
|
|
113
|
+
All these devices continouosly change state and position. The plugin also shows how to use all the command handlers (you can control all the devices).
|
|
114
|
+
|
|
115
|
+
A Dynamic platform plugin exposes as many devices as you need (the limit for the Home app is 150 accessories for bridge).
|
|
110
116
|
|
|
111
117
|
Matterbridge can run as many plugins as you want.
|
|
112
118
|
|
|
@@ -124,10 +130,40 @@ Matterbridge can run as many plugins as you want.
|
|
|
124
130
|
|
|
125
131
|
[Room plugin with history](https://github.com/Luligu/matterbridge-eve-room)
|
|
126
132
|
|
|
127
|
-
## How to install a plugin
|
|
133
|
+
## How to install and register a production-level plugin (from npm)
|
|
134
|
+
|
|
135
|
+
To install i.e. https://github.com/Luligu/matterbridge-zigbee2mqtt
|
|
136
|
+
|
|
137
|
+
On windows:
|
|
138
|
+
```
|
|
139
|
+
cd $HOME\Matterbridge
|
|
140
|
+
npm install -g matterbridge-zigbee2mqtt
|
|
141
|
+
matterbridge -add matterbridge-zigbee2mqtt
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
On linux:
|
|
145
|
+
```
|
|
146
|
+
cd ~/Matterbridge
|
|
147
|
+
sudo npm install -g matterbridge-zigbee2mqtt
|
|
148
|
+
matterbridge -add matterbridge-zigbee2mqtt
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## How to install and register a plugin for development (from git)
|
|
128
152
|
|
|
129
153
|
To install i.e. https://github.com/Luligu/matterbridge-example-accessory-platform
|
|
130
154
|
|
|
155
|
+
On windows:
|
|
156
|
+
```
|
|
157
|
+
cd $HOME\Matterbridge
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
On linux:
|
|
161
|
+
```
|
|
162
|
+
cd ~/Matterbridge
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
then
|
|
166
|
+
|
|
131
167
|
```
|
|
132
168
|
git clone https://github.com/Luligu/matterbridge-example-accessory-platform
|
|
133
169
|
cd matterbridge-example-accessory-platform
|
|
@@ -139,28 +175,28 @@ Then add the plugin to Matterbridge
|
|
|
139
175
|
matterbridge -add .\
|
|
140
176
|
```
|
|
141
177
|
|
|
142
|
-
|
|
178
|
+
## How to add a plugin to Matterbridge
|
|
143
179
|
|
|
144
180
|
```
|
|
145
|
-
matterbridge -add
|
|
181
|
+
matterbridge -add [plugin path]
|
|
146
182
|
```
|
|
147
183
|
|
|
148
|
-
|
|
184
|
+
## How to remove a plugin from Matterbridge
|
|
149
185
|
|
|
150
186
|
```
|
|
151
|
-
matterbridge -remove
|
|
187
|
+
matterbridge -remove [plugin path]
|
|
152
188
|
```
|
|
153
189
|
|
|
154
|
-
|
|
190
|
+
## How to disable a registered plugin
|
|
155
191
|
|
|
156
192
|
```
|
|
157
|
-
matterbridge -disable
|
|
193
|
+
matterbridge -disable [plugin path]
|
|
158
194
|
```
|
|
159
195
|
|
|
160
|
-
|
|
196
|
+
## How to enable a registered plugin
|
|
161
197
|
|
|
162
198
|
```
|
|
163
|
-
matterbridge -enable
|
|
199
|
+
matterbridge -enable [plugin path]
|
|
164
200
|
```
|
|
165
201
|
|
|
166
202
|
## How to create your plugin
|
|
@@ -178,6 +214,15 @@ Add your plugin logic in platform.ts.
|
|
|
178
214
|
|
|
179
215
|
## MatterbridgeDynamicPlatform and MatterbridgeAccessoryPlatform api
|
|
180
216
|
|
|
217
|
+
### name: string
|
|
218
|
+
The plugin name.
|
|
219
|
+
|
|
220
|
+
### type: string
|
|
221
|
+
The plugin platform type.
|
|
222
|
+
|
|
223
|
+
### config: object
|
|
224
|
+
The plugin config (loaded before onStart() is called and save after onShutdown() is called).
|
|
225
|
+
|
|
181
226
|
### async onStart(reason?: string)
|
|
182
227
|
The method onStart() is where you have to create your MatterbridgeDevice and add all needed clusters and command handlers.
|
|
183
228
|
|
|
@@ -204,7 +249,7 @@ You can unregister one or more device.
|
|
|
204
249
|
### async unregisterAllDevices()
|
|
205
250
|
You can unregister all devices you added.
|
|
206
251
|
|
|
207
|
-
It can
|
|
252
|
+
It can be useful to call this method from onShutdown() if you don't want to keep all the devices during development.
|
|
208
253
|
|
|
209
254
|
## MatterbridgeDevice api
|
|
210
255
|
|
package/dist/matterbridge.d.ts
CHANGED
|
@@ -41,13 +41,24 @@ interface SystemInformation {
|
|
|
41
41
|
*/
|
|
42
42
|
export declare class Matterbridge extends EventEmitter {
|
|
43
43
|
systemInformation: SystemInformation;
|
|
44
|
+
matterbridgeInformation: {
|
|
45
|
+
homeDirectory: string;
|
|
46
|
+
rootDirectory: string;
|
|
47
|
+
matterbridgeDirectory: string;
|
|
48
|
+
matterbridgePluginDirectory: string;
|
|
49
|
+
globalModulesDirectory: string;
|
|
50
|
+
matterbridgeVersion: string;
|
|
51
|
+
matterbridgeLatestVersion: string;
|
|
52
|
+
bridgeMode: string;
|
|
53
|
+
debugEnabled: boolean;
|
|
54
|
+
};
|
|
44
55
|
homeDirectory: string;
|
|
45
56
|
rootDirectory: string;
|
|
46
57
|
matterbridgeDirectory: string;
|
|
47
58
|
matterbridgePluginDirectory: string;
|
|
59
|
+
globalModulesDirectory: string;
|
|
48
60
|
matterbridgeVersion: string;
|
|
49
61
|
matterbridgeLatestVersion: string;
|
|
50
|
-
globalModulesDir: string;
|
|
51
62
|
bridgeMode: 'bridge' | 'childbridge' | 'controller' | '';
|
|
52
63
|
debugEnabled: boolean;
|
|
53
64
|
private log;
|
|
@@ -232,7 +243,7 @@ export declare class Matterbridge extends EventEmitter {
|
|
|
232
243
|
* Creates a matter commissioning server.
|
|
233
244
|
*
|
|
234
245
|
* @param {StorageContext} context - The storage context.
|
|
235
|
-
* @param {string}
|
|
246
|
+
* @param {string} pluginName - The name of the commissioning server.
|
|
236
247
|
* @returns {CommissioningServer} The created commissioning server.
|
|
237
248
|
*/
|
|
238
249
|
private createCommisioningServer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matterbridge.d.ts","sourceRoot":"","sources":["../src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