matterbridge 1.2.5 → 1.2.7

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +30 -5
  3. package/TODO.md +0 -4
  4. package/dist/AirQualityCluster.d.ts +2 -13
  5. package/dist/AirQualityCluster.d.ts.map +1 -1
  6. package/dist/AirQualityCluster.js +6 -6
  7. package/dist/AirQualityCluster.js.map +1 -1
  8. package/dist/EveHistoryCluster.d.ts +6 -26
  9. package/dist/EveHistoryCluster.d.ts.map +1 -1
  10. package/dist/EveHistoryCluster.js +6 -14
  11. package/dist/EveHistoryCluster.js.map +1 -1
  12. package/dist/TvocCluster.d.ts +2 -15
  13. package/dist/TvocCluster.d.ts.map +1 -1
  14. package/dist/TvocCluster.js +6 -6
  15. package/dist/TvocCluster.js.map +1 -1
  16. package/dist/index.d.ts +1 -0
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +1 -0
  19. package/dist/index.js.map +1 -1
  20. package/dist/matterbridge.d.ts +7 -0
  21. package/dist/matterbridge.d.ts.map +1 -1
  22. package/dist/matterbridge.js +334 -198
  23. package/dist/matterbridge.js.map +1 -1
  24. package/dist/matterbridgeDevice.d.ts +37 -12
  25. package/dist/matterbridgeDevice.d.ts.map +1 -1
  26. package/dist/matterbridgeDevice.js +100 -18
  27. package/dist/matterbridgeDevice.js.map +1 -1
  28. package/dist/utils.d.ts +52 -1
  29. package/dist/utils.d.ts.map +1 -1
  30. package/dist/utils.js +121 -1
  31. package/dist/utils.js.map +1 -1
  32. package/frontend/build/asset-manifest.json +3 -3
  33. package/frontend/build/index.html +1 -1
  34. package/frontend/build/static/js/{main.6b861489.js → main.491fc08f.js} +3 -3
  35. package/frontend/build/static/js/main.491fc08f.js.map +1 -0
  36. package/matterbridge.service +5 -6
  37. package/package.json +2 -2
  38. package/dist/matterbridgeComposed.d.ts +0 -43
  39. package/dist/matterbridgeComposed.d.ts.map +0 -1
  40. package/dist/matterbridgeComposed.js +0 -58
  41. package/dist/matterbridgeComposed.js.map +0 -1
  42. package/frontend/build/static/js/main.6b861489.js.map +0 -1
  43. /package/frontend/build/static/js/{main.6b861489.js.LICENSE.txt → main.491fc08f.js.LICENSE.txt} +0 -0
@@ -1,18 +1,17 @@
1
1
  [Unit]
2
2
  Description=matterbridge
3
- After=network.target
3
+ After=network-online.target
4
4
 
5
5
  [Service]
6
- Type=notify
7
- ExecStart=/usr/bin/matterbridge
8
- WorkingDirectory=/home/pi/Matterbridge
6
+ Type=simple
7
+ ExecStart=/usr/bin/matterbridge -bridge -service
8
+ WorkingDirectory=/home/<USER>/Matterbridge
9
9
  StandardOutput=inherit
10
10
  StandardError=inherit
11
- WatchdogSec=10s
12
11
  Restart=always
13
12
  RestartSec=10s
14
13
  TimeoutStopSec=30s
15
- User=pi
14
+ User=<USER>
16
15
 
17
16
  [Install]
18
17
  WantedBy=multi-user.target
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matterbridge",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "description": "Matterbridge plugin manager for Matter",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",
@@ -33,7 +33,7 @@
33
33
  "matterbridge": "dist/cli.js"
34
34
  },
35
35
  "engines": {
36
- "node": "^18.19.0 || ^20.12.0"
36
+ "node": ">=18.0.0"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "tsc",
@@ -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"}