matterbridge-example-dynamic-platform 1.3.9-dev-20250901-ccc8cd6 → 1.3.9

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/dist/platform.js CHANGED
@@ -1196,6 +1196,18 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
1196
1196
  this.phaseInterval = setInterval(async () => {
1197
1197
  this.phase = this.phase + 1 > 10 ? 0 : this.phase + 1;
1198
1198
  this.log.info(`Appliances animation phase ${this.phase}`);
1199
+ if (this.phase === 0) {
1200
+ if (this.airConditioner || this.laundryWasher || this.laundryDryer || this.dishwasher)
1201
+ this.log.info(`Set appliances dead front OnOff to true`);
1202
+ await this.airConditioner?.setAttribute(OnOff.Cluster.id, 'onOff', true, this.airConditioner.log);
1203
+ await this.laundryWasher?.setAttribute(OnOff.Cluster.id, 'onOff', true, this.laundryWasher.log);
1204
+ await this.laundryDryer?.setAttribute(OnOff.Cluster.id, 'onOff', true, this.laundryDryer.log);
1205
+ await this.dishwasher?.setAttribute(OnOff.Cluster.id, 'onOff', true, this.dishwasher.log);
1206
+ this.cooktop?.log.info(`Set Cooktop offOnly onOff clusters to on`);
1207
+ await this.cooktop?.setAttribute(OnOff.Cluster.id, 'onOff', true, this.cooktop.log);
1208
+ await this.cooktop?.getChildEndpointByName('SurfaceTopLeft')?.setAttribute(OnOff.Cluster.id, 'onOff', true, this.cooktop?.log);
1209
+ await this.cooktop?.getChildEndpointByName('SurfaceTopRight')?.setAttribute(OnOff.Cluster.id, 'onOff', true, this.cooktop?.log);
1210
+ }
1199
1211
  if (this.roboticVacuum) {
1200
1212
  if (this.phase === 0) {
1201
1213
  this.roboticVacuum.log.info(`RVC: Reset to Idle, Vacuum, Docked`);
@@ -1261,18 +1273,6 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
1261
1273
  await this.roboticVacuum.setAttribute('RvcOperationalState', 'operationalState', RvcOperationalState.OperationalState.Docked, this.roboticVacuum.log);
1262
1274
  }
1263
1275
  }
1264
- if (this.phase === 0) {
1265
- if (this.airConditioner || this.laundryWasher || this.laundryDryer || this.dishwasher)
1266
- this.log.info(`Set appliances dead front OnOff to true`);
1267
- await this.airConditioner?.setAttribute(OnOff.Cluster.id, 'onOff', true, this.airConditioner.log);
1268
- await this.laundryWasher?.setAttribute(OnOff.Cluster.id, 'onOff', true, this.laundryWasher.log);
1269
- await this.laundryDryer?.setAttribute(OnOff.Cluster.id, 'onOff', true, this.laundryDryer.log);
1270
- await this.dishwasher?.setAttribute(OnOff.Cluster.id, 'onOff', true, this.dishwasher.log);
1271
- this.cooktop?.log.info(`Set Cooktop offOnly onOff clusters to on`);
1272
- await this.cooktop?.setAttribute(OnOff.Cluster.id, 'onOff', true, this.cooktop.log);
1273
- await this.cooktop?.getChildEndpointByName('SurfaceTopLeft')?.setAttribute(OnOff.Cluster.id, 'onOff', true, this.cooktop?.log);
1274
- await this.cooktop?.getChildEndpointByName('SurfaceTopRight')?.setAttribute(OnOff.Cluster.id, 'onOff', true, this.cooktop?.log);
1275
- }
1276
1276
  if (this.oven) {
1277
1277
  const upperCabinet = this.oven.getChildEndpointByName('UpperCabinet');
1278
1278
  const lowerCabinet = this.oven.getChildEndpointByName('LowerCabinet');
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "matterbridge-example-dynamic-platform",
3
- "version": "1.3.9-dev-20250901-ccc8cd6",
3
+ "version": "1.3.9",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "matterbridge-example-dynamic-platform",
9
- "version": "1.3.9-dev-20250901-ccc8cd6",
9
+ "version": "1.3.9",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "node-ansi-logger": "3.1.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matterbridge-example-dynamic-platform",
3
- "version": "1.3.9-dev-20250901-ccc8cd6",
3
+ "version": "1.3.9",
4
4
  "description": "Matterbridge dynamic plugin",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",