matterbridge-example-dynamic-platform 3.0.2 → 3.0.3-dev-20260821-8d97cc8

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
@@ -29,6 +29,19 @@ If you like this project and find it useful, please consider giving it a star on
29
29
 
30
30
  <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="120"></a>
31
31
 
32
+ ## [3.0.3] - Dev branch
33
+
34
+ ### Breaking changes
35
+
36
+ - [matterbridge]: Require matterbridge v.3.10.6 with matter v.1.6.0.
37
+
38
+ ### Fixed
39
+
40
+ - [speaker]: Update to the `Speaker` constructor options object required by matterbridge v.3.10.6.
41
+ - [fanControl]: `percentSetting` is no longer nullable in matterbridge v.3.10.6; set it to 0 instead of null when turning off the air conditioner.
42
+
43
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
44
+
32
45
  ## [3.0.2] - 2026-08-14
33
46
 
34
47
  ### Breaking changes
package/dist/module.js CHANGED
@@ -110,8 +110,8 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
110
110
  constructor(matterbridge, log, config) {
111
111
  super(matterbridge, log, config);
112
112
  this.config = config;
113
- if (typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('3.10.5')) {
114
- throw new Error(`This plugin requires Matterbridge version >= "3.10.5". Please update Matterbridge from ${this.matterbridge.matterbridgeVersion} to the latest version in the frontend.`);
113
+ if (typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('3.10.6')) {
114
+ throw new Error(`This plugin requires Matterbridge version >= "3.10.6". Please update Matterbridge from ${this.matterbridge.matterbridgeVersion} to the latest version in the frontend.`);
115
115
  }
116
116
  this.log.info('Initializing platform:', this.config.name);
117
117
  }
@@ -1879,7 +1879,7 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
1879
1879
  await this.airConditioner?.setAttribute(Thermostat.id, 'localTemperature', null, this.airConditioner?.log);
1880
1880
  await this.airConditioner?.setAttribute(TemperatureMeasurement.id, 'measuredValue', null, this.airConditioner?.log);
1881
1881
  await this.airConditioner?.setAttribute(RelativeHumidityMeasurement.id, 'measuredValue', null, this.airConditioner?.log);
1882
- await this.airConditioner?.setAttribute(FanControl.id, 'percentSetting', null, this.airConditioner?.log);
1882
+ await this.airConditioner?.setAttribute(FanControl.id, 'percentSetting', 0, this.airConditioner?.log);
1883
1883
  });
1884
1884
  this.airConditioner?.subscribeAttribute(FanControl.id, 'fanMode', (newValue, oldValue, context) => void (async () => {
1885
1885
  this.airConditioner?.log.info(`Fan mode changed from ${this.fanModeLookup[oldValue]} to ${this.fanModeLookup[newValue]} context: ${context.fabric === undefined ? 'offline' : 'online'}`);
@@ -1918,7 +1918,7 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
1918
1918
  await this.airConditioner?.setAttribute(FanControl.id, 'percentCurrent', newValue, this.airConditioner?.log);
1919
1919
  })(), this.airConditioner?.log);
1920
1920
  this.basicVideoPlayer = new BasicVideoPlayer('BasicVideoPlayer', 'BVP00062');
1921
- this.basicVideoPlayer = (await this.addDevice(this.basicVideoPlayer));
1921
+ this.basicVideoPlayer = await this.addDevice(this.basicVideoPlayer);
1922
1922
  this.basicVideoPlayer
1923
1923
  ?.addCommandHandler('MediaPlayback.play', () => {
1924
1924
  this.basicVideoPlayer?.log.info(`Command play called`);
@@ -1944,7 +1944,7 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
1944
1944
  .addCommandHandler('KeypadInput.sendKey', ({ request: { keyCode } }) => {
1945
1945
  this.basicVideoPlayer?.log.info(`Command sendKey with ${keyCode} called`);
1946
1946
  });
1947
- this.speaker = new Speaker('Speaker', 'SPE00057', false, 100);
1947
+ this.speaker = new Speaker('Speaker', 'SPE00057', { muted: false, volume: 100 });
1948
1948
  this.speaker = (await this.addDevice(this.speaker));
1949
1949
  }
1950
1950
  intervals = [];
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "matterbridge-example-dynamic-platform",
3
- "version": "3.0.2",
3
+ "version": "3.0.3-dev-20260821-8d97cc8",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "matterbridge-example-dynamic-platform",
9
- "version": "3.0.2",
9
+ "version": "3.0.3-dev-20260821-8d97cc8",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "node-ansi-logger": "3.3.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matterbridge-example-dynamic-platform",
3
- "version": "3.0.2",
3
+ "version": "3.0.3-dev-20260821-8d97cc8",
4
4
  "description": "Matterbridge dynamic plugin",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",