matterbridge-test 2.0.16 → 2.0.17-dev-20260511-30dbefd

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 CHANGED
@@ -28,6 +28,22 @@ If you like this project and find it useful, please consider giving it a star on
28
28
 
29
29
  <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="120"></a>
30
30
 
31
+ ## [2.0.17] - Dev branch
32
+
33
+ ### Changed
34
+
35
+ - [package]: Update dependencies.
36
+ - [package]: Bump package to `automator` v.3.1.8.
37
+ - [package]: Add package script `typecheck`.
38
+ - [package]: Add Node.js 26 to package `engines` field.
39
+ - [workflows]: Add Node.js 26 to `build.yml` Node matrix and remove Node.js 20.
40
+ - [jest]: Bump `jest` to v.30.4.2.
41
+ - [jest]: Add `jest` v.2.0.1 config.
42
+ - [eslint]: Add `eslint` v.2.0.2 config.
43
+ - [agent]: Update `agent instructions`.
44
+
45
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
46
+
31
47
  ## [2.0.16] - 2026-05-01
32
48
 
33
49
  ### Changed
package/dist/module.js CHANGED
@@ -78,7 +78,7 @@ export class TestPlatform extends MatterbridgeDynamicPlatform {
78
78
  });
79
79
  }
80
80
  switchDevice.addRequiredClusterServers();
81
- if (this.config.noDevices === false)
81
+ if (!this.config.noDevices)
82
82
  await this.registerDevice(switchDevice);
83
83
  this.bridgedDevices.set('Switch ' + i, switchDevice);
84
84
  }
@@ -109,7 +109,7 @@ export class TestPlatform extends MatterbridgeDynamicPlatform {
109
109
  });
110
110
  }
111
111
  outletDevice.addRequiredClusterServers();
112
- if (this.config.noDevices === false)
112
+ if (!this.config.noDevices)
113
113
  await this.registerDevice(outletDevice);
114
114
  this.bridgedDevices.set('Outlet ' + i, outletDevice);
115
115
  }
@@ -161,7 +161,7 @@ export class TestPlatform extends MatterbridgeDynamicPlatform {
161
161
  });
162
162
  }
163
163
  lightDevice.addRequiredClusterServers();
164
- if (this.config.noDevices === false)
164
+ if (!this.config.noDevices)
165
165
  await this.registerDevice(lightDevice);
166
166
  this.bridgedDevices.set('Light ' + i, lightDevice);
167
167
  }
@@ -222,7 +222,7 @@ export class TestPlatform extends MatterbridgeDynamicPlatform {
222
222
  await device?.setAttribute(ElectricalEnergyMeasurement.Complete, 'cumulativeEnergyImported', { energy: cumulativeEnergy ? cumulativeEnergy.energy + 1000 : 1500 * 1000 }, device.log);
223
223
  }
224
224
  if (this.config.enableModeSelect) {
225
- const composed = device?.parts.get(device.id + '_modeSelect');
225
+ const composed = device?.getChildEndpointById(device.id + '_modeSelect');
226
226
  const currentMode = composed?.getAttribute(ModeSelect.Cluster, 'currentMode', device?.log);
227
227
  await composed?.setAttribute(ModeSelect.Cluster, 'currentMode', currentMode === 1 ? 2 : 1, device?.log);
228
228
  }
@@ -250,7 +250,7 @@ export class TestPlatform extends MatterbridgeDynamicPlatform {
250
250
  await device?.setAttribute(ElectricalEnergyMeasurementCluster.id, 'cumulativeEnergyImported', { energy: cumulativeEnergy ? cumulativeEnergy.energy + 1000 : 1500 * 1000 }, device.log);
251
251
  }
252
252
  if (this.config.enableModeSelect) {
253
- const composed = device?.parts.get(device.id + '_modeSelect');
253
+ const composed = device?.getChildEndpointById(device.id + '_modeSelect');
254
254
  const currentMode = composed?.getAttribute(ModeSelectCluster.id, 'currentMode', device?.log);
255
255
  await composed?.setAttribute(ModeSelectCluster.id, 'currentMode', currentMode === 1 ? 2 : 1, device?.log);
256
256
  }
@@ -278,7 +278,7 @@ export class TestPlatform extends MatterbridgeDynamicPlatform {
278
278
  await device?.setAttribute(ElectricalEnergyMeasurementCluster.id, 'cumulativeEnergyImported', { energy: cumulativeEnergy ? cumulativeEnergy.energy + 1000 : 1500 * 1000 }, device.log);
279
279
  }
280
280
  if (this.config.enableModeSelect) {
281
- const composed = device?.parts.get(device.id + '_modeSelect');
281
+ const composed = device?.getChildEndpointById(device.id + '_modeSelect');
282
282
  const currentMode = composed?.getAttribute(ModeSelectCluster.id, 'currentMode', device?.log);
283
283
  await composed?.setAttribute(ModeSelectCluster.id, 'currentMode', currentMode === 1 ? 2 : 1, device?.log);
284
284
  }
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "matterbridge-test",
3
- "version": "2.0.16",
3
+ "version": "2.0.17-dev-20260511-30dbefd",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "matterbridge-test",
9
- "version": "2.0.16",
9
+ "version": "2.0.17-dev-20260511-30dbefd",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "node-ansi-logger": "3.2.1",
13
13
  "node-persist-manager": "2.0.2"
14
14
  },
15
15
  "engines": {
16
- "node": ">=20.19.0 <21.0.0 || >=22.13.0 <23.0.0 || >=24.0.0 <25.0.0"
16
+ "node": ">=20.19.0 <21.0.0 || >=22.13.0 <23.0.0 || >=24.0.0 <25.0.0 || >=26.0.0 <27.0.0"
17
17
  },
18
18
  "funding": {
19
19
  "type": "buymeacoffee",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matterbridge-test",
3
- "version": "2.0.16",
3
+ "version": "2.0.17-dev-20260511-30dbefd",
4
4
  "description": "Matterbridge test plugin",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",
@@ -52,10 +52,11 @@
52
52
  "ewelink",
53
53
  "childbridge",
54
54
  "hass",
55
- "hassio"
55
+ "hassio",
56
+ "gladysassistant"
56
57
  ],
57
58
  "engines": {
58
- "node": ">=20.19.0 <21.0.0 || >=22.13.0 <23.0.0 || >=24.0.0 <25.0.0"
59
+ "node": ">=20.19.0 <21.0.0 || >=22.13.0 <23.0.0 || >=24.0.0 <25.0.0 || >=26.0.0 <27.0.0"
59
60
  },
60
61
  "files": [
61
62
  "bin",