matterbridge 3.1.6-dev-20250720-88d6141 → 3.1.6-dev-20250721-75fab6b

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.
@@ -10,6 +10,7 @@ import { BooleanStateConfigurationServer } from '@matter/main/behaviors/boolean-
10
10
  import { OperationalState } from '@matter/main/clusters/operational-state';
11
11
  import { ModeBase } from '@matter/main/clusters/mode-base';
12
12
  import { ServiceArea } from '@matter/main/clusters/service-area';
13
+ import { ResourceMonitoring } from '@matter/types/clusters/resource-monitoring';
13
14
  import { IdentifyServer } from '@matter/main/behaviors/identify';
14
15
  import { OnOffServer } from '@matter/main/behaviors/on-off';
15
16
  import { LevelControlServer } from '@matter/main/behaviors/level-control';
@@ -395,20 +396,22 @@ export class MatterbridgeModeSelectServer extends ModeSelectServer {
395
396
  super.changeToMode(request);
396
397
  }
397
398
  }
398
- export class MatterbridgeHepaFilterMonitoringServer extends HepaFilterMonitoringServer {
399
+ export class MatterbridgeHepaFilterMonitoringServer extends HepaFilterMonitoringServer.with(ResourceMonitoring.Feature.Condition) {
399
400
  resetCondition() {
400
401
  const device = this.endpoint.stateOf(MatterbridgeServer);
401
402
  device.log.info(`Resetting condition (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
402
403
  device.commandHandler.executeHandler('resetCondition', { cluster: MatterbridgeHepaFilterMonitoringServer.id, attributes: this.state, endpoint: this.endpoint });
404
+ this.state.condition = 100;
403
405
  this.state.lastChangedTime = Math.floor(new Date().getTime() / 1000);
404
406
  device.log.debug(`MatterbridgeHepaFilterMonitoringServer: resetCondition called`);
405
407
  }
406
408
  }
407
- export class MatterbridgeActivatedCarbonFilterMonitoringServer extends ActivatedCarbonFilterMonitoringServer {
409
+ export class MatterbridgeActivatedCarbonFilterMonitoringServer extends ActivatedCarbonFilterMonitoringServer.with(ResourceMonitoring.Feature.Condition) {
408
410
  resetCondition() {
409
411
  const device = this.endpoint.stateOf(MatterbridgeServer);
410
412
  device.log.info(`Resetting condition (endpoint ${this.endpoint.maybeId}.${this.endpoint.maybeNumber})`);
411
413
  device.commandHandler.executeHandler('resetCondition', { cluster: MatterbridgeActivatedCarbonFilterMonitoringServer.id, attributes: this.state, endpoint: this.endpoint });
414
+ this.state.condition = 100;
412
415
  this.state.lastChangedTime = Math.floor(new Date().getTime() / 1000);
413
416
  device.log.debug(`MatterbridgeActivatedCarbonFilterMonitoringServer: resetCondition called`);
414
417
  }
@@ -834,6 +834,23 @@ export class MatterbridgeEndpoint extends Endpoint {
834
834
  });
835
835
  return this;
836
836
  }
837
+ createCompleteFanControlClusterServer(fanMode = FanControl.FanMode.Off, fanModeSequence = FanControl.FanModeSequence.OffLowMedHighAuto, percentSetting = 0, percentCurrent = 0, speedMax = 10, speedSetting = 0, speedCurrent = 0, rockSupport = { rockLeftRight: true, rockUpDown: true, rockRound: true }, rockSetting = { rockLeftRight: true, rockUpDown: false, rockRound: false }, windSupport = { sleepWind: true, naturalWind: true }, windSetting = { sleepWind: false, naturalWind: true }, airflowDirection = FanControl.AirflowDirection.Forward) {
838
+ this.behaviors.require(MatterbridgeFanControlServer.with(FanControl.Feature.MultiSpeed, FanControl.Feature.Auto, FanControl.Feature.Step, FanControl.Feature.Rocking, FanControl.Feature.Wind, FanControl.Feature.AirflowDirection), {
839
+ fanMode,
840
+ fanModeSequence,
841
+ percentSetting,
842
+ percentCurrent,
843
+ speedMax,
844
+ speedSetting,
845
+ speedCurrent,
846
+ rockSupport,
847
+ rockSetting,
848
+ windSupport,
849
+ windSetting,
850
+ airflowDirection,
851
+ });
852
+ return this;
853
+ }
837
854
  createBaseFanControlClusterServer(fanMode = FanControl.FanMode.Off, fanModeSequence = FanControl.FanModeSequence.OffLowMedHigh, percentSetting = 0, percentCurrent = 0) {
838
855
  this.behaviors.require(FanControlServer, {
839
856
  fanMode,
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "matterbridge",
3
- "version": "3.1.6-dev-20250720-88d6141",
3
+ "version": "3.1.6-dev-20250721-75fab6b",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "matterbridge",
9
- "version": "3.1.6-dev-20250720-88d6141",
9
+ "version": "3.1.6-dev-20250721-75fab6b",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "@matter/main": "0.15.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matterbridge",
3
- "version": "3.1.6-dev-20250720-88d6141",
3
+ "version": "3.1.6-dev-20250721-75fab6b",
4
4
  "description": "Matterbridge plugin manager for Matter",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",