matterbridge-example-dynamic-platform 1.1.2 → 1.1.4-dev.1

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
@@ -4,10 +4,39 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  If you like this project and find it useful, please consider giving it a star on GitHub at https://github.com/Luligu/matterbridge-example-dynamic-platform and sponsoring it.
6
6
 
7
+ ## [1.1.4-dev.1] - 2024-12-17
8
+
9
+ - [package]: Added thermostat Heat only with two external temperature sensors (tagged like Indoor and Outdoor).
10
+ - [package]: Added thermostat Cool only.
11
+ - [package]: Added an airPurifier device with temperature and humidity sensor (supported by Apple Home).
12
+ - [package]: Added a pumpDevice device.
13
+ - [package]: Added a waterValve device.
14
+ - [package]: Require matterbridge 1.6.7.
15
+ - [package]: Updated dependencies.
16
+
17
+ <a href="https://www.buymeacoffee.com/luligugithub">
18
+ <img src="./yellow-button.png" alt="Buy me a coffee" width="120">
19
+ </a>
20
+
21
+ ## [1.1.3] - 2024-12-16
22
+
23
+ - [package]: Added thermostat Heat only with two external temperature sensors (tagged like Indoor and Outdoor).
24
+ - [package]: Added thermostat Cool only.
25
+ - [package]: Added an airPurifier device with temperature and humidity sensor (supported by Apple Home).
26
+ - [package]: Added a pumpDevice device.
27
+ - [package]: Added a waterValve device.
28
+ - [package]: Require matterbridge 1.6.7.
29
+ - [package]: Updated dependencies.
30
+
31
+ <a href="https://www.buymeacoffee.com/luligugithub">
32
+ <img src="./yellow-button.png" alt="Buy me a coffee" width="120">
33
+ </a>
34
+
7
35
  ## [1.1.2] - 2024-12-12
8
36
 
9
- - [package]: Added the Matter 1.3 airConditioner device.
10
- - [package]: Require matterbridge 1.6.6
37
+ - [package]: Added the Matter 1.3 airConditioner device (not supported by Apple Home).
38
+ - [package]: Require matterbridge 1.6.6.
39
+ - [package]: Added Jest test with 100% coverage.
11
40
  - [package]: Updated package.
12
41
  - [package]: Updated dependencies.
13
42
 
package/README.md CHANGED
@@ -22,20 +22,25 @@ It exposes:
22
22
  - a light with onOff
23
23
  - a light with onOff and levelControl (dimmer)
24
24
  - a light with onOff, levelControl and colorControl (with XY, HS and CT) clusters
25
- - a light with onOff, levelControl and colorControl (with HS only) clusters
26
- - a light with onOff, levelControl and colorControl (with XY only) clusters
25
+ - a light with onOff, levelControl and colorControl (with HS and CT) clusters
26
+ - a light with onOff, levelControl and colorControl (with XY and CT) clusters
27
27
  - a light with onOff, levelControl and colorControl (with CT only) clusters
28
28
  - an outlet (plug) with onOff cluster
29
29
  - a cover with windowCovering cluster
30
30
  - a lock with doorLock cluster
31
- - a thermo with thermostat cluster and 3 sub endpoints with flowMeasurement cluster, temperatureMeasurement cluster
31
+ - a thermo autoMode (i.e. with Auto Heat and Cool features) with thermostat cluster and 3 sub endpoints with flowMeasurement cluster, temperatureMeasurement cluster
32
32
  and relativeHumidityMeasurement cluster (to show how to create a composed device with sub endpoints)
33
- - an airConditioner device
33
+ - a thermo heat only with two external temperature sensors (tagged like Indoor and Outdoor)
34
+ - a thermo cool only
34
35
  - a fan with FanControl cluster
35
36
  - a rainSensor device
36
37
  - a waterFreezeDetector device
37
38
  - a waterLeakDetector device
38
39
  - a smokeCoAlarm device
40
+ - an airConditioner device
41
+ - an airPurifier device with temperature and humidity sensor (supported by Apple Home)
42
+ - a pumpDevice device
43
+ - a waterValve device
39
44
 
40
45
  All these devices continuously change state and position. The plugin also shows how to use all the command handlers (you can control all the devices) and how to subscribe to attributes.
41
46
 
package/dist/index.js CHANGED
@@ -1,14 +1,4 @@
1
1
  import { ExampleMatterbridgeDynamicPlatform } from './platform.js';
2
- /**
3
- * This is the standard interface for Matterbridge plugins.
4
- * Each plugin should export a default function that follows this signature.
5
- *
6
- * @param {Matterbridge} matterbridge - The Matterbridge instance.
7
- * @param {AnsiLogger} log - The logger instance.
8
- * @param {PlatformConfig} config - The platform configuration.
9
- * @returns {ExampleMatterbridgeDynamicPlatform} The initialized platform.
10
- */
11
2
  export default function initializePlugin(matterbridge, log, config) {
12
3
  return new ExampleMatterbridgeDynamicPlatform(matterbridge, log, config);
13
4
  }
14
- //# sourceMappingURL=index.js.map
package/dist/platform.js CHANGED
@@ -1,5 +1,5 @@
1
- import { AirQuality, AirQualityCluster, BooleanStateCluster, BooleanStateConfiguration, CarbonDioxideConcentrationMeasurement, CarbonMonoxideConcentrationMeasurement, ColorControl, ColorControlCluster, DeviceTypes, DoorLock, DoorLockCluster, FanControl, FanControlCluster, FlowMeasurement, FlowMeasurementCluster, FormaldehydeConcentrationMeasurement, LevelControlCluster, MatterbridgeEndpoint, NitrogenDioxideConcentrationMeasurement, OnOffCluster, OzoneConcentrationMeasurement, Pm10ConcentrationMeasurement, Pm1ConcentrationMeasurement, Pm25ConcentrationMeasurement, RadonConcentrationMeasurement, RelativeHumidityMeasurement, RelativeHumidityMeasurementCluster, SmokeCoAlarm, SmokeCoAlarmCluster, TemperatureMeasurement, TemperatureMeasurementCluster, Thermostat, ThermostatCluster, TotalVolatileOrganicCompoundsConcentrationMeasurement, WindowCovering, WindowCoveringCluster, airConditioner, airQualitySensor, bridgedNode, onOffSwitch, powerSource, rainSensor, smokeCoAlarm, waterFreezeDetector, waterLeakDetector, } from 'matterbridge';
2
- import { /* MatterbridgeEndpoint as */ MatterbridgeDevice, MatterbridgeDynamicPlatform } from 'matterbridge';
1
+ import { AirQuality, AirQualityCluster, BooleanStateCluster, BooleanStateConfiguration, CarbonDioxideConcentrationMeasurement, CarbonMonoxideConcentrationMeasurement, ColorControl, ColorControlCluster, DoorLock, DoorLockCluster, FanControl, FanControlCluster, FlowMeasurement, FlowMeasurementCluster, FormaldehydeConcentrationMeasurement, LevelControlCluster, MatterbridgeEndpoint, NitrogenDioxideConcentrationMeasurement, OnOffCluster, OzoneConcentrationMeasurement, Pm10ConcentrationMeasurement, Pm1ConcentrationMeasurement, Pm25ConcentrationMeasurement, RadonConcentrationMeasurement, RelativeHumidityMeasurement, RelativeHumidityMeasurementCluster, SmokeCoAlarm, SmokeCoAlarmCluster, TemperatureMeasurement, TemperatureMeasurementCluster, Thermostat, ThermostatCluster, TotalVolatileOrganicCompoundsConcentrationMeasurement, WindowCovering, WindowCoveringCluster, airConditioner, airQualitySensor, bridgedNode, colorTemperatureLight, coverDevice, dimmableLight, doorLockDevice, fanDevice, flowSensor, humiditySensor, onOffLight, onOffOutlet, onOffSwitch, powerSource, rainSensor, smokeCoAlarm, temperatureSensor, thermostatDevice, waterFreezeDetector, waterLeakDetector, LocationTag, airPurifier, pumpDevice, waterValve, } from 'matterbridge';
2
+ import { MatterbridgeDevice, MatterbridgeDynamicPlatform } from 'matterbridge';
3
3
  import { isValidBoolean, isValidNumber } from 'matterbridge/utils';
4
4
  export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatform {
5
5
  switch;
@@ -12,7 +12,9 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
12
12
  outlet;
13
13
  cover;
14
14
  lock;
15
- thermo;
15
+ thermoAuto;
16
+ thermoHeat;
17
+ thermoCool;
16
18
  fan;
17
19
  waterLeak;
18
20
  waterFreeze;
@@ -20,6 +22,9 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
20
22
  smoke;
21
23
  airQuality;
22
24
  airConditioner;
25
+ airPurifier;
26
+ pump;
27
+ valve;
23
28
  switchInterval;
24
29
  lightInterval;
25
30
  outletInterval;
@@ -34,6 +39,7 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
34
39
  airQualityInterval;
35
40
  airConditionerInterval;
36
41
  bridgedDevices = new Map();
42
+ fanModeLookup = ['Off', 'Low', 'Medium', 'High', 'On', 'Auto', 'Smart'];
37
43
  async createMutableDevice(definition, options = {}, debug = false) {
38
44
  let device;
39
45
  if (this.matterbridge.edge === true)
@@ -44,15 +50,13 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
44
50
  }
45
51
  constructor(matterbridge, log, config) {
46
52
  super(matterbridge, log, config);
47
- // Verify that Matterbridge is the correct version
48
- if (this.verifyMatterbridgeVersion === undefined || typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('1.6.6')) {
49
- throw new Error(`This plugin requires Matterbridge version >= "1.6.6". Please update Matterbridge from ${this.matterbridge.matterbridgeVersion} to the latest version in the frontend.`);
53
+ if (this.verifyMatterbridgeVersion === undefined || typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('1.6.7')) {
54
+ throw new Error(`This plugin requires Matterbridge version >= "1.6.7". Please update Matterbridge from ${this.matterbridge.matterbridgeVersion} to the latest version in the frontend.`);
50
55
  }
51
56
  this.log.info('Initializing platform:', this.config.name);
52
57
  }
53
58
  async onStart(reason) {
54
59
  this.log.info('onStart called with reason:', reason ?? 'none');
55
- // Create a switch device
56
60
  this.switch = await this.createMutableDevice([onOffSwitch, bridgedNode], { uniqueStorageKey: 'Switch' }, this.config.debug);
57
61
  this.switch.log.logName = 'Switch';
58
62
  this.switch.createDefaultIdentifyClusterServer();
@@ -75,8 +79,7 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
75
79
  await this.switch?.setAttribute(OnOffCluster.id, 'onOff', false, this.switch.log, this.switch);
76
80
  this.switch?.log.info('Command off called');
77
81
  });
78
- // Create a on off light device
79
- this.lightOnOff = await this.createMutableDevice([DeviceTypes.ON_OFF_LIGHT, bridgedNode], { uniqueStorageKey: 'Light (on/off)' }, this.config.debug);
82
+ this.lightOnOff = await this.createMutableDevice([onOffLight, bridgedNode], { uniqueStorageKey: 'Light (on/off)' }, this.config.debug);
80
83
  this.lightOnOff.log.logName = 'Light (on/off)';
81
84
  this.lightOnOff.createDefaultIdentifyClusterServer();
82
85
  this.lightOnOff.createDefaultGroupsClusterServer();
@@ -98,8 +101,7 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
98
101
  await this.light?.setAttribute(OnOffCluster.id, 'onOff', false, this.lightOnOff?.log, this.lightOnOff);
99
102
  this.lightOnOff?.log.info('Command off called');
100
103
  });
101
- // Create a dimmer device
102
- this.dimmer = await this.createMutableDevice([DeviceTypes.DIMMABLE_LIGHT, bridgedNode], { uniqueStorageKey: 'Dimmer' }, this.config.debug);
104
+ this.dimmer = await this.createMutableDevice([dimmableLight, bridgedNode], { uniqueStorageKey: 'Dimmer' }, this.config.debug);
103
105
  this.dimmer.log.logName = 'Dimmer';
104
106
  this.dimmer.createDefaultIdentifyClusterServer();
105
107
  this.dimmer.createDefaultGroupsClusterServer();
@@ -130,8 +132,7 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
130
132
  await this.dimmer?.setAttribute(LevelControlCluster.id, 'currentLevel', level, this.dimmer.log, this.dimmer);
131
133
  this.dimmer?.log.debug(`Command moveToLevelWithOnOff called request: ${level}`);
132
134
  });
133
- // Create a light device
134
- this.light = await this.createMutableDevice([DeviceTypes.COLOR_TEMPERATURE_LIGHT, bridgedNode], { uniqueStorageKey: 'Light (XY, HS and CT)' }, this.config.debug);
135
+ this.light = await this.createMutableDevice([colorTemperatureLight, bridgedNode], { uniqueStorageKey: 'Light (XY, HS and CT)' }, this.config.debug);
135
136
  this.light.log.logName = 'Light (XY, HS and CT)';
136
137
  this.light.createDefaultIdentifyClusterServer();
137
138
  this.light.createDefaultGroupsClusterServer();
@@ -185,8 +186,7 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
185
186
  await this.light?.setAttribute(ColorControlCluster.id, 'colorTemperatureMireds', request.colorTemperatureMireds, this.light?.log, this.light);
186
187
  this.light?.log.debug(`Command moveToColorTemperature called request: ${request.colorTemperatureMireds} attributes: ${attributes.colorTemperatureMireds?.getLocal()}`);
187
188
  });
188
- // Create a light device with HS color control
189
- this.lightHS = await this.createMutableDevice([DeviceTypes.COLOR_TEMPERATURE_LIGHT, bridgedNode], { uniqueStorageKey: 'Light (HS)' }, this.config.debug);
189
+ this.lightHS = await this.createMutableDevice([colorTemperatureLight, bridgedNode], { uniqueStorageKey: 'Light (HS)' }, this.config.debug);
190
190
  this.lightHS.log.logName = 'Light (HS, CT)';
191
191
  this.lightHS.createDefaultIdentifyClusterServer();
192
192
  this.lightHS.createDefaultGroupsClusterServer();
@@ -195,7 +195,6 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
195
195
  this.lightHS.createDefaultOnOffClusterServer();
196
196
  this.lightHS.createDefaultLevelControlClusterServer();
197
197
  this.lightHS.createHsColorControlClusterServer();
198
- // await this.lightHS.configureColorControlCluster(true, false, false, ColorControl.ColorMode.CurrentHueAndCurrentSaturation);
199
198
  this.lightHS.addDeviceType(powerSource);
200
199
  this.lightHS.createDefaultPowerSourceWiredClusterServer();
201
200
  await this.registerDevice(this.lightHS);
@@ -236,8 +235,7 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
236
235
  await this.light?.setAttribute(ColorControlCluster.id, 'colorTemperatureMireds', request.colorTemperatureMireds, this.light?.log, this.light);
237
236
  this.light?.log.debug(`Command moveToColorTemperature called request: ${request.colorTemperatureMireds} attributes: ${attributes.colorTemperatureMireds?.getLocal()}`);
238
237
  });
239
- // Create a light device with XY color control
240
- this.lightXY = await this.createMutableDevice([DeviceTypes.COLOR_TEMPERATURE_LIGHT, bridgedNode], { uniqueStorageKey: 'Light (XY)' }, this.config.debug);
238
+ this.lightXY = await this.createMutableDevice([colorTemperatureLight, bridgedNode], { uniqueStorageKey: 'Light (XY)' }, this.config.debug);
241
239
  this.lightXY.log.logName = 'Light (XY, CT)';
242
240
  this.lightXY.createDefaultIdentifyClusterServer();
243
241
  this.lightXY.createDefaultGroupsClusterServer();
@@ -246,7 +244,6 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
246
244
  this.lightXY.createDefaultOnOffClusterServer();
247
245
  this.lightXY.createDefaultLevelControlClusterServer();
248
246
  this.lightXY.createXyColorControlClusterServer();
249
- // await this.lightXY.configureColorControlCluster(false, true, false, ColorControl.ColorMode.CurrentXAndCurrentY);
250
247
  this.lightXY.addDeviceType(powerSource);
251
248
  this.lightXY.createDefaultPowerSourceWiredClusterServer();
252
249
  await this.registerDevice(this.lightXY);
@@ -279,8 +276,7 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
279
276
  await this.light?.setAttribute(ColorControlCluster.id, 'colorTemperatureMireds', request.colorTemperatureMireds, this.light?.log, this.light);
280
277
  this.light?.log.debug(`Command moveToColorTemperature called request: ${request.colorTemperatureMireds} attributes: ${attributes.colorTemperatureMireds?.getLocal()}`);
281
278
  });
282
- // Create a light device with CT color control
283
- this.lightCT = await this.createMutableDevice([DeviceTypes.COLOR_TEMPERATURE_LIGHT, bridgedNode], { uniqueStorageKey: 'Light (CT)' }, this.config.debug);
279
+ this.lightCT = await this.createMutableDevice([colorTemperatureLight, bridgedNode], { uniqueStorageKey: 'Light (CT)' }, this.config.debug);
284
280
  this.lightCT.log.logName = 'Light (CT)';
285
281
  this.lightCT.createDefaultIdentifyClusterServer();
286
282
  this.lightCT.createDefaultGroupsClusterServer();
@@ -289,7 +285,6 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
289
285
  this.lightCT.createDefaultOnOffClusterServer();
290
286
  this.lightCT.createDefaultLevelControlClusterServer();
291
287
  this.lightCT.createCtColorControlClusterServer();
292
- // await this.lightCT.configureColorControlCluster(false, false, true, ColorControl.ColorMode.ColorTemperatureMireds);
293
288
  this.lightCT.addDeviceType(powerSource);
294
289
  this.lightCT.createDefaultPowerSourceReplaceableBatteryClusterServer(70);
295
290
  await this.registerDevice(this.lightCT);
@@ -317,8 +312,7 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
317
312
  await this.lightCT?.setAttribute(ColorControlCluster.id, 'colorTemperatureMireds', request.colorTemperatureMireds, this.lightCT?.log, this.lightCT);
318
313
  this.lightCT?.log.debug(`Command moveToColorTemperature called request: ${request.colorTemperatureMireds}`);
319
314
  });
320
- // Create an outlet device
321
- this.outlet = await this.createMutableDevice([DeviceTypes.ON_OFF_PLUGIN_UNIT, bridgedNode], { uniqueStorageKey: 'Outlet' }, this.config.debug);
315
+ this.outlet = await this.createMutableDevice([onOffOutlet, bridgedNode], { uniqueStorageKey: 'Outlet' }, this.config.debug);
322
316
  this.outlet.log.logName = 'Outlet';
323
317
  this.outlet.createDefaultIdentifyClusterServer();
324
318
  this.outlet.createDefaultGroupsClusterServer();
@@ -340,9 +334,7 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
340
334
  await this.outlet?.setAttribute(OnOffCluster.id, 'onOff', false, this.outlet?.log, this.outlet);
341
335
  this.outlet?.log.info('Command off called');
342
336
  });
343
- // Create a window covering device
344
- // Matter uses 10000 = fully closed 0 = fully opened
345
- this.cover = await this.createMutableDevice([DeviceTypes.WINDOW_COVERING, bridgedNode], { uniqueStorageKey: 'Cover' }, this.config.debug);
337
+ this.cover = await this.createMutableDevice([coverDevice, bridgedNode], { uniqueStorageKey: 'Cover' }, this.config.debug);
346
338
  this.cover.log.logName = 'Cover';
347
339
  this.cover.createDefaultIdentifyClusterServer();
348
340
  this.cover.createDefaultGroupsClusterServer();
@@ -375,8 +367,7 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
375
367
  await this.cover?.setWindowCoveringCurrentTargetStatus(liftPercent100thsValue, liftPercent100thsValue, WindowCovering.MovementStatus.Stopped);
376
368
  this.cover?.log.info(`Command goToLiftPercentage ${liftPercent100thsValue} called`);
377
369
  });
378
- // Create a lock device
379
- this.lock = await this.createMutableDevice([DeviceTypes.DOOR_LOCK, bridgedNode], { uniqueStorageKey: 'Lock' }, this.config.debug);
370
+ this.lock = await this.createMutableDevice([doorLockDevice, bridgedNode], { uniqueStorageKey: 'Lock' }, this.config.debug);
380
371
  this.lock.log.logName = 'Lock';
381
372
  this.lock.createDefaultIdentifyClusterServer();
382
373
  this.lock.createDefaultBridgedDeviceBasicInformationClusterServer('Lock', '0x96352164', 0xfff1, 'Matterbridge', 'Matterbridge Lock', parseInt(this.version.replace(/\D/g, '')), this.version === '' ? 'Unknown' : this.version, parseInt(this.matterbridge.matterbridgeVersion.replace(/\D/g, '')), this.matterbridge.matterbridgeVersion);
@@ -396,63 +387,163 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
396
387
  await this.lock?.setAttribute(DoorLockCluster.id, 'lockState', DoorLock.LockState.Unlocked, this.lock?.log, this.lock);
397
388
  this.lock?.log.info('Command unlockDoor called');
398
389
  });
399
- // Create a thermostat device
400
- this.thermo = await this.createMutableDevice([DeviceTypes.THERMOSTAT, bridgedNode], { uniqueStorageKey: 'Thermostat' }, this.config.debug);
401
- this.thermo.log.logName = 'Thermostat';
402
- this.thermo.createDefaultIdentifyClusterServer();
403
- this.thermo.createDefaultGroupsClusterServer();
404
- this.thermo.createDefaultScenesClusterServer();
405
- this.thermo.createDefaultBridgedDeviceBasicInformationClusterServer('Thermostat', '0x96382164', 0xfff1, 'Matterbridge', 'Matterbridge Thermostat', parseInt(this.version.replace(/\D/g, '')), this.version === '' ? 'Unknown' : this.version, parseInt(this.matterbridge.matterbridgeVersion.replace(/\D/g, '')), this.matterbridge.matterbridgeVersion);
406
- this.thermo.createDefaultThermostatClusterServer(20, 18, 22);
407
- this.thermo.addDeviceType(powerSource);
408
- this.thermo.createDefaultPowerSourceRechargeableBatteryClusterServer(70);
409
- const flowChild = this.thermo.addChildDeviceTypeWithClusterServer('Flow', [DeviceTypes.FLOW_SENSOR], [FlowMeasurement.Cluster.id]);
390
+ this.thermoAuto = await this.createMutableDevice([thermostatDevice, bridgedNode], { uniqueStorageKey: 'ThermostatAuto' }, this.config.debug);
391
+ this.thermoAuto.log.logName = 'Thermostat (AutoMode)';
392
+ this.thermoAuto.createDefaultIdentifyClusterServer();
393
+ this.thermoAuto.createDefaultGroupsClusterServer();
394
+ this.thermoAuto.createDefaultScenesClusterServer();
395
+ this.thermoAuto.createDefaultBridgedDeviceBasicInformationClusterServer('Thermostat (AutoMode)', '0x96382164A', 0xfff1, 'Matterbridge', 'Matterbridge Thermostat', parseInt(this.version.replace(/\D/g, '')), this.version === '' ? 'Unknown' : this.version, parseInt(this.matterbridge.matterbridgeVersion.replace(/\D/g, '')), this.matterbridge.matterbridgeVersion);
396
+ this.thermoAuto.createDefaultThermostatClusterServer(20, 18, 22);
397
+ this.thermoAuto.addDeviceType(powerSource);
398
+ this.thermoAuto.createDefaultPowerSourceRechargeableBatteryClusterServer(70);
399
+ const flowChild = this.thermoAuto.addChildDeviceTypeWithClusterServer('Flow', [flowSensor], [FlowMeasurement.Cluster.id]);
410
400
  flowChild.getClusterServer(FlowMeasurement.Cluster)?.setMeasuredValueAttribute(1 * 10);
411
- const tempChild = this.thermo.addChildDeviceTypeWithClusterServer('Temperature', [DeviceTypes.TEMPERATURE_SENSOR], [TemperatureMeasurement.Cluster.id]);
401
+ const tempChild = this.thermoAuto.addChildDeviceTypeWithClusterServer('Temperature', [temperatureSensor], [TemperatureMeasurement.Cluster.id]);
412
402
  tempChild.getClusterServer(TemperatureMeasurement.Cluster)?.setMeasuredValueAttribute(41 * 100);
413
- const humidityChild = this.thermo.addChildDeviceTypeWithClusterServer('Humidity', [DeviceTypes.HUMIDITY_SENSOR], [RelativeHumidityMeasurement.Cluster.id]);
403
+ const humidityChild = this.thermoAuto.addChildDeviceTypeWithClusterServer('Humidity', [humiditySensor], [RelativeHumidityMeasurement.Cluster.id]);
414
404
  humidityChild.getClusterServer(RelativeHumidityMeasurement.Cluster)?.setMeasuredValueAttribute(80 * 100);
415
- await this.registerDevice(this.thermo);
416
- this.bridgedDevices.set(this.thermo.deviceName ?? '', this.thermo);
417
- this.thermo.addCommandHandler('identify', async ({ request: { identifyTime } }) => {
418
- this.thermo?.log.info(`Command identify called identifyTime:${identifyTime}`);
405
+ await this.registerDevice(this.thermoAuto);
406
+ this.bridgedDevices.set(this.thermoAuto.deviceName ?? '', this.thermoAuto);
407
+ this.thermoAuto.addCommandHandler('identify', async ({ request: { identifyTime } }) => {
408
+ this.thermoAuto?.log.info(`Command identify called identifyTime ${identifyTime}`);
419
409
  });
420
- this.thermo.addCommandHandler('setpointRaiseLower', async ({ request: { mode, amount } }) => {
410
+ this.thermoAuto.addCommandHandler('triggerEffect', async ({ request: { effectIdentifier, effectVariant } }) => {
411
+ this.thermoAuto?.log.info(`Command identify called effectIdentifier ${effectIdentifier} effectVariant ${effectVariant}`);
412
+ });
413
+ this.thermoAuto.addCommandHandler('setpointRaiseLower', async ({ request: { mode, amount } }) => {
421
414
  const lookupSetpointAdjustMode = ['Heat', 'Cool', 'Both'];
422
- this.thermo?.log.info(`Command setpointRaiseLower called with mode: ${lookupSetpointAdjustMode[mode]} amount: ${amount / 10}`);
415
+ this.thermoAuto?.log.info(`Command setpointRaiseLower called with mode: ${lookupSetpointAdjustMode[mode]} amount: ${amount / 10}`);
423
416
  if (mode === Thermostat.SetpointRaiseLowerMode.Heat || mode === Thermostat.SetpointRaiseLowerMode.Both) {
424
- const setpoint = this.thermo?.getAttribute(ThermostatCluster.id, 'occupiedHeatingSetpoint', this.thermo?.log) / 100 + amount / 10;
425
- await this.thermo?.setAttribute(ThermostatCluster.id, 'occupiedHeatingSetpoint', setpoint * 100, this.thermo?.log);
426
- this.thermo?.log.info('Set occupiedHeatingSetpoint:', setpoint);
417
+ const setpoint = this.thermoAuto?.getAttribute(ThermostatCluster.id, 'occupiedHeatingSetpoint', this.thermoAuto?.log) / 100 + amount / 10;
418
+ await this.thermoAuto?.setAttribute(ThermostatCluster.id, 'occupiedHeatingSetpoint', setpoint * 100, this.thermoAuto?.log);
419
+ this.thermoAuto?.log.info('Set occupiedHeatingSetpoint:', setpoint);
427
420
  }
428
421
  if (mode === Thermostat.SetpointRaiseLowerMode.Cool || mode === Thermostat.SetpointRaiseLowerMode.Both) {
429
- const setpoint = this.thermo?.getAttribute(ThermostatCluster.id, 'occupiedCoolingSetpoint', this.thermo?.log) / 100 + amount / 10;
430
- await this.thermo?.setAttribute(ThermostatCluster.id, 'occupiedCoolingSetpoint', setpoint * 100, this.thermo?.log);
431
- this.thermo?.log.info('Set occupiedCoolingSetpoint:', setpoint);
422
+ const setpoint = this.thermoAuto?.getAttribute(ThermostatCluster.id, 'occupiedCoolingSetpoint', this.thermoAuto?.log) / 100 + amount / 10;
423
+ await this.thermoAuto?.setAttribute(ThermostatCluster.id, 'occupiedCoolingSetpoint', setpoint * 100, this.thermoAuto?.log);
424
+ this.thermoAuto?.log.info('Set occupiedCoolingSetpoint:', setpoint);
432
425
  }
433
426
  });
434
- this.thermo.subscribeAttribute(ThermostatCluster.id, 'systemMode', async (value) => {
427
+ this.thermoAuto.subscribeAttribute(ThermostatCluster.id, 'systemMode', async (value) => {
428
+ const lookupSystemMode = ['Off', 'Auto', '', 'Cool', 'Heat', 'EmergencyHeat', 'Precooling', 'FanOnly', 'Dry', 'Sleep'];
429
+ this.thermoAuto?.log.info('Subscribe systemMode called with:', lookupSystemMode[value]);
430
+ }, this.thermoAuto.log, this.thermoAuto);
431
+ this.thermoAuto.subscribeAttribute(ThermostatCluster.id, 'occupiedHeatingSetpoint', async (value) => {
432
+ this.thermoAuto?.log.info('Subscribe occupiedHeatingSetpoint called with:', value / 100);
433
+ }, this.thermoAuto.log, this.thermoAuto);
434
+ this.thermoAuto.subscribeAttribute(ThermostatCluster.id, 'occupiedCoolingSetpoint', async (value) => {
435
+ this.thermoAuto?.log.info('Subscribe occupiedCoolingSetpoint called with:', value / 100);
436
+ }, this.thermoAuto.log, this.thermoAuto);
437
+ this.thermoHeat = await this.createMutableDevice([thermostatDevice, bridgedNode], { uniqueStorageKey: 'ThermostatHeat' }, this.config.debug);
438
+ this.thermoHeat.log.logName = 'Thermostat (Heat)';
439
+ this.thermoHeat.createDefaultIdentifyClusterServer();
440
+ this.thermoHeat.createDefaultGroupsClusterServer();
441
+ this.thermoHeat.createDefaultScenesClusterServer();
442
+ this.thermoHeat.createDefaultBridgedDeviceBasicInformationClusterServer('Thermostat (Heat)', '0x96382164H', 0xfff1, 'Matterbridge', 'Matterbridge Thermostat', parseInt(this.version.replace(/\D/g, '')), this.version === '' ? 'Unknown' : this.version, parseInt(this.matterbridge.matterbridgeVersion.replace(/\D/g, '')), this.matterbridge.matterbridgeVersion);
443
+ this.thermoHeat.createDefaultHeatingThermostatClusterServer(20, 18, 5, 35);
444
+ this.thermoHeat.addDeviceType(powerSource);
445
+ this.thermoHeat.createDefaultPowerSourceRechargeableBatteryClusterServer(70);
446
+ const heatTempIN = this.thermoHeat.addChildDeviceType('TemperatureIN', [temperatureSensor], {
447
+ tagList: [{ mfgCode: null, namespaceId: LocationTag.Indoor.namespaceId, tag: LocationTag.Indoor.tag, label: null }],
448
+ });
449
+ heatTempIN.createDefaultIdentifyClusterServer();
450
+ heatTempIN.createDefaultTemperatureMeasurementClusterServer(21 * 100);
451
+ const heatTempOUT = this.thermoHeat.addChildDeviceType('TemperatureOUT', [temperatureSensor], {
452
+ tagList: [{ mfgCode: null, namespaceId: LocationTag.Outdoor.namespaceId, tag: LocationTag.Outdoor.tag, label: null }],
453
+ });
454
+ heatTempOUT.createDefaultIdentifyClusterServer();
455
+ heatTempOUT.createDefaultTemperatureMeasurementClusterServer(15 * 100);
456
+ await this.registerDevice(this.thermoHeat);
457
+ this.bridgedDevices.set(this.thermoHeat.deviceName ?? '', this.thermoHeat);
458
+ this.thermoHeat.addCommandHandler('identify', async ({ request: { identifyTime } }) => {
459
+ this.thermoHeat?.log.info(`Command identify called identifyTime ${identifyTime}`);
460
+ });
461
+ this.thermoHeat.addCommandHandler('triggerEffect', async ({ request: { effectIdentifier, effectVariant } }) => {
462
+ this.thermoHeat?.log.info(`Command identify called effectIdentifier ${effectIdentifier} effectVariant ${effectVariant}`);
463
+ });
464
+ this.thermoHeat.subscribeAttribute(ThermostatCluster.id, 'systemMode', async (value) => {
465
+ const lookupSystemMode = ['Off', 'Auto', '', 'Cool', 'Heat', 'EmergencyHeat', 'Precooling', 'FanOnly', 'Dry', 'Sleep'];
466
+ this.thermoHeat?.log.info('Subscribe systemMode called with:', lookupSystemMode[value]);
467
+ }, this.thermoHeat.log);
468
+ this.thermoHeat.subscribeAttribute(ThermostatCluster.id, 'occupiedHeatingSetpoint', async (value) => {
469
+ this.thermoHeat?.log.info('Subscribe occupiedHeatingSetpoint called with:', value / 100);
470
+ }, this.thermoHeat.log);
471
+ this.thermoCool = await this.createMutableDevice([thermostatDevice, bridgedNode], { uniqueStorageKey: 'ThermostatCool' }, this.config.debug);
472
+ this.thermoCool.log.logName = 'Thermostat (Cool)';
473
+ this.thermoCool.createDefaultIdentifyClusterServer();
474
+ this.thermoCool.createDefaultGroupsClusterServer();
475
+ this.thermoCool.createDefaultScenesClusterServer();
476
+ this.thermoCool.createDefaultBridgedDeviceBasicInformationClusterServer('Thermostat (Cool)', '0x96382164C', 0xfff1, 'Matterbridge', 'Matterbridge Thermostat', parseInt(this.version.replace(/\D/g, '')), this.version === '' ? 'Unknown' : this.version, parseInt(this.matterbridge.matterbridgeVersion.replace(/\D/g, '')), this.matterbridge.matterbridgeVersion);
477
+ this.thermoCool.createDefaultCoolingThermostatClusterServer(20, 18, 5, 35);
478
+ this.thermoCool.addDeviceType(powerSource);
479
+ this.thermoCool.createDefaultPowerSourceRechargeableBatteryClusterServer(70);
480
+ await this.registerDevice(this.thermoCool);
481
+ this.bridgedDevices.set(this.thermoCool.deviceName ?? '', this.thermoCool);
482
+ this.thermoCool.addCommandHandler('identify', async ({ request: { identifyTime } }) => {
483
+ this.thermoCool?.log.info(`Command identify called identifyTime ${identifyTime}`);
484
+ });
485
+ this.thermoCool.addCommandHandler('triggerEffect', async ({ request: { effectIdentifier, effectVariant } }) => {
486
+ this.thermoCool?.log.info(`Command identify called effectIdentifier ${effectIdentifier} effectVariant ${effectVariant}`);
487
+ });
488
+ this.thermoCool.subscribeAttribute(ThermostatCluster.id, 'systemMode', async (value) => {
435
489
  const lookupSystemMode = ['Off', 'Auto', '', 'Cool', 'Heat', 'EmergencyHeat', 'Precooling', 'FanOnly', 'Dry', 'Sleep'];
436
- this.thermo?.log.info('Subscribe systemMode called with:', lookupSystemMode[value]);
437
- }, this.thermo.log, this.thermo);
438
- this.thermo.subscribeAttribute(ThermostatCluster.id, 'occupiedHeatingSetpoint', async (value) => {
439
- this.thermo?.log.info('Subscribe occupiedHeatingSetpoint called with:', value / 100);
440
- }, this.thermo.log, this.thermo);
441
- this.thermo.subscribeAttribute(ThermostatCluster.id, 'occupiedCoolingSetpoint', async (value) => {
442
- this.thermo?.log.info('Subscribe occupiedCoolingSetpoint called with:', value / 100);
443
- }, this.thermo.log, this.thermo);
444
- // Create a airConditioning device
490
+ this.thermoCool?.log.info('Subscribe systemMode called with:', lookupSystemMode[value]);
491
+ }, this.thermoCool.log);
492
+ this.thermoCool.subscribeAttribute(ThermostatCluster.id, 'occupiedCoolingSetpoint', async (value) => {
493
+ this.thermoCool?.log.info('Subscribe occupiedCoolingSetpoint called with:', value / 100);
494
+ }, this.thermoCool.log);
495
+ this.airPurifier = await this.createMutableDevice([airPurifier, temperatureSensor, humiditySensor, bridgedNode], { uniqueStorageKey: 'Air purifier' }, this.config.debug);
496
+ this.airPurifier.log.logName = 'Air purifier';
497
+ this.airPurifier.createDefaultBridgedDeviceBasicInformationClusterServer('Air purifier', '0x96584864AP', 0xfff1, 'Matterbridge', 'Matterbridge Air purifier', parseInt(this.version.replace(/\D/g, '')), this.version === '' ? 'Unknown' : this.version, parseInt(this.matterbridge.matterbridgeVersion.replace(/\D/g, '')), this.matterbridge.matterbridgeVersion);
498
+ this.airPurifier.createDefaultIdentifyClusterServer();
499
+ this.airPurifier.createDefaultFanControlClusterServer();
500
+ this.airPurifier.createDefaultTemperatureMeasurementClusterServer(20 * 100);
501
+ this.airPurifier.createDefaultRelativeHumidityMeasurementClusterServer(50 * 100);
502
+ this.airPurifier.addDeviceType(powerSource);
503
+ this.airPurifier.createDefaultPowerSourceWiredClusterServer();
504
+ await this.registerDevice(this.airPurifier);
505
+ this.bridgedDevices.set(this.airPurifier.deviceName ?? '', this.airPurifier);
506
+ this.airPurifier.addCommandHandler('identify', async ({ request: { identifyTime } }) => {
507
+ this.airPurifier?.log.info(`Command identify called identifyTime:${identifyTime}`);
508
+ });
509
+ this.airPurifier.subscribeAttribute(FanControlCluster.id, 'fanMode', async (newValue, oldValue) => {
510
+ this.fan?.log.info(`Fan mode changed from ${this.fanModeLookup[oldValue]} to ${this.fanModeLookup[newValue]}`);
511
+ if (newValue === FanControl.FanMode.Off) {
512
+ await this.airPurifier?.setAttribute(FanControlCluster.id, 'percentCurrent', 0, this.airPurifier?.log);
513
+ }
514
+ else if (newValue === FanControl.FanMode.Low) {
515
+ await this.airPurifier?.setAttribute(FanControlCluster.id, 'percentCurrent', 33, this.airPurifier?.log);
516
+ }
517
+ else if (newValue === FanControl.FanMode.Medium) {
518
+ await this.airPurifier?.setAttribute(FanControlCluster.id, 'percentCurrent', 66, this.airPurifier?.log);
519
+ }
520
+ else if (newValue === FanControl.FanMode.High) {
521
+ await this.airPurifier?.setAttribute(FanControlCluster.id, 'percentCurrent', 100, this.airPurifier?.log);
522
+ }
523
+ else if (newValue === FanControl.FanMode.On) {
524
+ await this.airPurifier?.setAttribute(FanControlCluster.id, 'percentCurrent', 100, this.airPurifier?.log);
525
+ }
526
+ else if (newValue === FanControl.FanMode.Auto) {
527
+ await this.airPurifier?.setAttribute(FanControlCluster.id, 'percentCurrent', 50, this.airPurifier?.log);
528
+ }
529
+ }, this.airPurifier.log);
530
+ this.airPurifier.subscribeAttribute(FanControlCluster.id, 'percentSetting', async (newValue, oldValue) => {
531
+ this.fan?.log.info(`Percent setting changed from ${oldValue} to ${newValue}`);
532
+ if (isValidNumber(newValue, 0, 100))
533
+ await this.airPurifier?.setAttribute(FanControlCluster.id, 'percentCurrent', newValue, this.airPurifier?.log);
534
+ }, this.airPurifier.log);
445
535
  this.airConditioner = await this.createMutableDevice([airConditioner, bridgedNode], { uniqueStorageKey: 'Air conditioner' }, this.config.debug);
446
536
  this.airConditioner.log.logName = 'Air conditioner';
447
- this.airConditioner.createDefaultBridgedDeviceBasicInformationClusterServer('Air conditioner', '0x96382864', 0xfff1, 'Matterbridge', 'Matterbridge Air conditioner', parseInt(this.version.replace(/\D/g, '')), this.version === '' ? 'Unknown' : this.version, parseInt(this.matterbridge.matterbridgeVersion.replace(/\D/g, '')), this.matterbridge.matterbridgeVersion);
537
+ this.airConditioner.createDefaultBridgedDeviceBasicInformationClusterServer('Air conditioner', '0x96382864AC', 0xfff1, 'Matterbridge', 'Matterbridge Air conditioner', parseInt(this.version.replace(/\D/g, '')), this.version === '' ? 'Unknown' : this.version, parseInt(this.matterbridge.matterbridgeVersion.replace(/\D/g, '')), this.matterbridge.matterbridgeVersion);
448
538
  this.airConditioner.createDefaultIdentifyClusterServer();
449
- this.airConditioner.createDefaultOnOffClusterServer(true);
539
+ this.airConditioner.createDeadFrontOnOffClusterServer(true);
450
540
  this.airConditioner.createDefaultThermostatClusterServer(20, 18, 22);
451
- this.airConditioner.createDefaultFanControlClusterServer();
452
- this.airConditioner.createDefaultTemperatureMeasurementClusterServer(20);
453
- this.airConditioner.createDefaultRelativeHumidityMeasurementClusterServer(50);
541
+ this.airConditioner.createDefaultFanControlClusterServer(FanControl.FanMode.Auto);
542
+ this.airConditioner.createDefaultTemperatureMeasurementClusterServer(20 * 100);
543
+ this.airConditioner.createDefaultRelativeHumidityMeasurementClusterServer(50 * 100);
454
544
  this.airConditioner.addDeviceType(powerSource);
455
545
  this.airConditioner.createDefaultPowerSourceWiredClusterServer();
546
+ this.airConditioner.addRequiredClusterServers(this.airConditioner);
456
547
  await this.registerDevice(this.airConditioner);
457
548
  this.bridgedDevices.set(this.airConditioner.deviceName ?? '', this.airConditioner);
458
549
  this.airConditioner.addCommandHandler('identify', async ({ request: { identifyTime } }) => {
@@ -460,22 +551,64 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
460
551
  });
461
552
  this.airConditioner.addCommandHandler('on', async () => {
462
553
  await this.airConditioner?.setAttribute(OnOffCluster.id, 'onOff', true, this.airConditioner?.log);
463
- this.outlet?.log.info('Command on called');
554
+ this.airConditioner?.log.info('Command on called');
555
+ await this.airConditioner?.setAttribute(OnOffCluster.id, 'onOff', true, this.airConditioner?.log);
556
+ await this.airConditioner?.setAttribute(ThermostatCluster.id, 'localTemperature', 20 * 100, this.airConditioner?.log);
557
+ await this.airConditioner?.setAttribute(TemperatureMeasurementCluster.id, 'measuredValue', 20 * 100, this.airConditioner?.log);
558
+ await this.airConditioner?.setAttribute(RelativeHumidityMeasurementCluster.id, 'measuredValue', 50 * 100, this.airConditioner?.log);
559
+ await this.airConditioner?.setAttribute(FanControlCluster.id, 'speedSetting', 50, this.airConditioner?.log);
560
+ await this.airConditioner?.setAttribute(FanControlCluster.id, 'percentSetting', 50, this.airConditioner?.log);
464
561
  });
465
562
  this.airConditioner.addCommandHandler('off', async () => {
466
563
  await this.airConditioner?.setAttribute(OnOffCluster.id, 'onOff', false, this.airConditioner?.log);
467
- this.outlet?.log.info('Command off called');
468
- });
469
- // Create a fan device
470
- this.fan = await this.createMutableDevice([DeviceTypes.FAN, bridgedNode], { uniqueStorageKey: 'Fan' }, this.config.debug);
564
+ await this.airConditioner?.setAttribute(ThermostatCluster.id, 'localTemperature', null, this.airConditioner?.log);
565
+ await this.airConditioner?.setAttribute(TemperatureMeasurementCluster.id, 'measuredValue', null, this.airConditioner?.log);
566
+ await this.airConditioner?.setAttribute(RelativeHumidityMeasurementCluster.id, 'measuredValue', null, this.airConditioner?.log);
567
+ await this.airConditioner?.setAttribute(FanControlCluster.id, 'speedSetting', null, this.airConditioner?.log);
568
+ await this.airConditioner?.setAttribute(FanControlCluster.id, 'percentSetting', null, this.airConditioner?.log);
569
+ this.airConditioner?.log.info('Command off called');
570
+ });
571
+ this.pump = await this.createMutableDevice([pumpDevice, bridgedNode], { uniqueStorageKey: 'Pump' }, this.config.debug);
572
+ this.pump.log.logName = 'Pump';
573
+ this.pump.createDefaultBridgedDeviceBasicInformationClusterServer('Pump', '0x96382864PUMP', 0xfff1, 'Matterbridge', 'Matterbridge Pump', parseInt(this.version.replace(/\D/g, '')), this.version === '' ? 'Unknown' : this.version, parseInt(this.matterbridge.matterbridgeVersion.replace(/\D/g, '')), this.matterbridge.matterbridgeVersion);
574
+ this.pump.createDefaultIdentifyClusterServer();
575
+ this.pump.createDefaultOnOffClusterServer(true);
576
+ this.pump.createDefaultPumpConfigurationAndControlClusterServer();
577
+ this.pump.addDeviceType(powerSource);
578
+ this.pump.createDefaultPowerSourceWiredClusterServer();
579
+ await this.registerDevice(this.pump);
580
+ this.bridgedDevices.set(this.pump.deviceName ?? '', this.pump);
581
+ this.pump.addCommandHandler('identify', async ({ request: { identifyTime } }) => {
582
+ this.pump?.log.info(`Command identify called identifyTime:${identifyTime}`);
583
+ });
584
+ this.pump.addCommandHandler('on', async () => {
585
+ await this.pump?.setAttribute(OnOffCluster.id, 'onOff', true, this.pump?.log);
586
+ this.pump?.log.info('Command on called');
587
+ });
588
+ this.pump.addCommandHandler('off', async () => {
589
+ await this.pump?.setAttribute(OnOffCluster.id, 'onOff', false, this.pump?.log);
590
+ this.pump?.log.info('Command off called');
591
+ });
592
+ this.valve = await this.createMutableDevice([waterValve, bridgedNode], { uniqueStorageKey: 'Water valve' }, this.config.debug);
593
+ this.valve.log.logName = 'Water valve';
594
+ this.valve.createDefaultBridgedDeviceBasicInformationClusterServer('Water valve', '0x96382864WV', 0xfff1, 'Matterbridge', 'Matterbridge Water valve', parseInt(this.version.replace(/\D/g, '')), this.version === '' ? 'Unknown' : this.version, parseInt(this.matterbridge.matterbridgeVersion.replace(/\D/g, '')), this.matterbridge.matterbridgeVersion);
595
+ this.valve.createDefaultIdentifyClusterServer();
596
+ this.valve.createDefaultValveConfigurationAndControlClusterServer();
597
+ this.valve.addDeviceType(powerSource);
598
+ this.valve.createDefaultPowerSourceWiredClusterServer();
599
+ await this.registerDevice(this.valve);
600
+ this.bridgedDevices.set(this.valve.deviceName ?? '', this.valve);
601
+ this.valve.addCommandHandler('identify', async ({ request: { identifyTime } }) => {
602
+ this.valve?.log.info(`Command identify called identifyTime:${identifyTime}`);
603
+ });
604
+ this.fan = await this.createMutableDevice([fanDevice, bridgedNode], { uniqueStorageKey: 'Fan' }, this.config.debug);
471
605
  this.fan.log.logName = 'Fan';
472
606
  this.fan.createDefaultBridgedDeviceBasicInformationClusterServer('Fan', 'serial_980545631228', 0xfff1, 'Matterbridge', 'Matterbridge Fan', parseInt(this.version.replace(/\D/g, '')), this.version === '' ? 'Unknown' : this.version, parseInt(this.matterbridge.matterbridgeVersion.replace(/\D/g, '')), this.matterbridge.matterbridgeVersion);
473
- this.fan.addDeviceTypeWithClusterServer([DeviceTypes.FAN], []);
607
+ this.fan.addDeviceTypeWithClusterServer([fanDevice], []);
474
608
  await this.registerDevice(this.fan);
475
609
  this.bridgedDevices.set(this.fan.deviceName ?? '', this.fan);
476
- const fanModeLookup = ['Off', 'Low', 'Medium', 'High', 'On', 'Auto', 'Smart'];
477
610
  this.fan.subscribeAttribute(FanControlCluster.id, 'fanMode', async (newValue, oldValue) => {
478
- this.fan?.log.info(`Fan mode changed from ${fanModeLookup[oldValue]} to ${fanModeLookup[newValue]}`);
611
+ this.fan?.log.info(`Fan mode changed from ${this.fanModeLookup[oldValue]} to ${this.fanModeLookup[newValue]}`);
479
612
  if (newValue === FanControl.FanMode.Off) {
480
613
  await this.fan?.setAttribute(FanControlCluster.id, 'percentCurrent', 0, this.fan?.log);
481
614
  }
@@ -499,17 +632,18 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
499
632
  this.fan?.log.info(`Percent setting changed from ${oldValue} to ${newValue}`);
500
633
  if (isValidNumber(newValue, 0, 100))
501
634
  await this.fan?.setAttribute(FanControlCluster.id, 'percentCurrent', newValue, this.fan?.log);
502
- }, this.fan.log, this.fan);
635
+ }, this.fan.log);
503
636
  this.fan.subscribeAttribute(FanControlCluster.id, 'speedSetting', async (newValue, oldValue) => {
504
637
  this.fan?.log.info(`Speed setting changed from ${oldValue} to ${newValue}`);
505
638
  if (isValidNumber(newValue, 0, 100))
506
639
  await this.fan?.setAttribute(FanControlCluster.id, 'speedCurrent', newValue, this.fan?.log);
507
- }, this.fan.log, this.fan);
640
+ }, this.fan.log);
508
641
  this.waterLeak = await this.createMutableDevice([waterLeakDetector, bridgedNode], { uniqueStorageKey: 'Water leak detector' }, this.config.debug);
509
642
  this.waterLeak.log.logName = 'Water leak detector';
510
643
  this.waterLeak.createDefaultBridgedDeviceBasicInformationClusterServer('Water leak detector', 'serial_98745631222', 0xfff1, 'Matterbridge', 'Matterbridge WaterLeakDetector', parseInt(this.version.replace(/\D/g, '')), this.version === '' ? 'Unknown' : this.version, parseInt(this.matterbridge.matterbridgeVersion.replace(/\D/g, '')), this.matterbridge.matterbridgeVersion);
511
644
  this.waterLeak.addDeviceTypeWithClusterServer([waterLeakDetector], [BooleanStateConfiguration.Cluster.id]);
512
645
  await this.registerDevice(this.waterLeak);
646
+ this.bridgedDevices.set(this.waterLeak.deviceName ?? '', this.waterLeak);
513
647
  await this.waterLeak.setAttribute(BooleanStateCluster.id, 'stateValue', false, this.waterLeak.log);
514
648
  this.waterFreeze = await this.createMutableDevice([waterFreezeDetector, bridgedNode], { uniqueStorageKey: 'Water freeze detector' }, this.config.debug);
515
649
  this.waterFreeze.log.logName = 'Water freeze detector';
@@ -534,7 +668,6 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
534
668
  await this.smoke.setAttribute(SmokeCoAlarmCluster.id, 'smokeState', SmokeCoAlarm.AlarmState.Normal, this.smoke.log);
535
669
  await this.smoke.setAttribute(SmokeCoAlarmCluster.id, 'coState', SmokeCoAlarm.AlarmState.Normal, this.smoke.log);
536
670
  await this.smoke.setAttribute(CarbonMonoxideConcentrationMeasurement.Cluster.id, 'measuredValue', 100, this.smoke.log);
537
- // Create an airQuality device
538
671
  this.airQuality = await this.createMutableDevice([airQualitySensor, bridgedNode], { uniqueStorageKey: 'Air quality sensor' }, this.config.debug);
539
672
  this.airQuality.log.logName = 'Air quality Sensor';
540
673
  this.airQuality.createDefaultBridgedDeviceBasicInformationClusterServer('Air quality sensor', 'serial_987484318322', 0xfff1, 'Matterbridge', 'Matterbridge Air Quality Sensor', parseInt(this.version.replace(/\D/g, '')), this.version === '' ? 'Unknown' : this.version, parseInt(this.matterbridge.matterbridgeVersion.replace(/\D/g, '')), this.matterbridge.matterbridgeVersion);
@@ -570,10 +703,8 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
570
703
  }
571
704
  async onConfigure() {
572
705
  this.log.info('onConfigure called');
573
- // Set switch to off
574
706
  await this.switch?.setAttribute(OnOffCluster.id, 'onOff', false, this.switch.log);
575
707
  this.switch?.log.info('Set switch initial onOff to false');
576
- // Toggle switch onOff every minute
577
708
  this.switchInterval = setInterval(async () => {
578
709
  const status = this.switch?.getAttribute(OnOffCluster.id, 'onOff', this.switch.log);
579
710
  if (isValidBoolean(status)) {
@@ -581,35 +712,29 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
581
712
  this.switch?.log.info(`Set switch onOff to ${!status}`);
582
713
  }
583
714
  }, 60 * 1000 + 100);
584
- // Set light on/off to off
585
715
  await this.lightOnOff?.setAttribute(OnOffCluster.id, 'onOff', false, this.lightOnOff.log);
586
716
  this.lightOnOff?.log.info('Set light initial onOff to false.');
587
- // Set light on/off to off
588
717
  await this.dimmer?.setAttribute(OnOffCluster.id, 'onOff', false, this.dimmer.log);
589
718
  await this.dimmer?.setAttribute(LevelControlCluster.id, 'currentLevel', 1, this.dimmer.log);
590
719
  this.dimmer?.log.info(`Set dimmer initial onOff to false, currentLevel to 1.`);
591
- // Set light to off, level to 0 and hue to 0 and saturation to 50% (pink color)
592
720
  await this.light?.setAttribute(OnOffCluster.id, 'onOff', false, this.light.log);
593
721
  await this.light?.setAttribute(LevelControlCluster.id, 'currentLevel', 1, this.light.log);
594
722
  await this.light?.setAttribute(ColorControlCluster.id, 'currentHue', 0, this.light.log);
595
723
  await this.light?.setAttribute(ColorControlCluster.id, 'currentSaturation', 128, this.light.log);
596
724
  await this.light?.configureColorControlMode(ColorControl.ColorMode.CurrentHueAndCurrentSaturation);
597
725
  this.light?.log.info('Set light initial onOff to false, currentLevel to 1, hue to 0 and saturation to 50%.');
598
- // Set light XY to true, level to 100% and XY to red
599
726
  await this.lightXY?.setAttribute(OnOffCluster.id, 'onOff', true, this.lightXY.log);
600
727
  await this.lightXY?.setAttribute(LevelControlCluster.id, 'currentLevel', 254, this.lightXY.log);
601
728
  await this.lightXY?.setAttribute(ColorControlCluster.id, 'currentX', 0.7006 * 65536, this.lightXY.log);
602
729
  await this.lightXY?.setAttribute(ColorControlCluster.id, 'currentY', 0.2993 * 65536, this.lightXY.log);
603
730
  await this.lightXY?.configureColorControlMode(ColorControl.ColorMode.CurrentXAndCurrentY);
604
731
  this.lightXY?.log.info('Set light XY initial onOff to true, currentLevel to 254, X to 0.7006 and Y to 0.2993.');
605
- // Set light HS to off, level to 0 and hue to 0 and saturation to 50% (pink color)
606
732
  await this.lightHS?.setAttribute(OnOffCluster.id, 'onOff', false, this.lightHS.log);
607
733
  await this.lightHS?.setAttribute(LevelControlCluster.id, 'currentLevel', 1, this.lightHS.log);
608
734
  await this.lightHS?.setAttribute(ColorControlCluster.id, 'currentHue', 0, this.lightHS.log);
609
735
  await this.lightHS?.setAttribute(ColorControlCluster.id, 'currentSaturation', 128, this.lightHS.log);
610
736
  await this.lightHS?.configureColorControlMode(ColorControl.ColorMode.CurrentHueAndCurrentSaturation);
611
737
  this.lightHS?.log.info('Set light HS initial onOff to false, currentLevel to 1, hue to 0 and saturation to 50%.');
612
- // Set light CT to true, level to 50% and colorTemperatureMireds to 250
613
738
  await this.lightCT?.setAttribute(OnOffCluster.id, 'onOff', true, this.lightCT.log);
614
739
  await this.lightCT?.setAttribute(LevelControlCluster.id, 'currentLevel', 128, this.lightCT.log);
615
740
  await this.lightCT?.setAttribute(ColorControlCluster.id, 'colorTemperatureMireds', 250, this.lightCT.log);
@@ -652,11 +777,12 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
652
777
  this.log.info(`Set lights currentLevel to ${level}`);
653
778
  }
654
779
  }
780
+ else {
781
+ this.log.error(`Invalid state ${state} or level ${level}`);
782
+ }
655
783
  }, 60 * 1000 + 200);
656
- // Set outlet to off
657
784
  await this.outlet?.setAttribute(OnOffCluster.id, 'onOff', false, this.outlet.log);
658
785
  this.outlet?.log.info('Set outlet initial onOff to false');
659
- // Toggle outlet onOff every minute
660
786
  this.outletInterval = setInterval(async () => {
661
787
  const state = this.outlet?.getAttribute(OnOffCluster.id, 'onOff', this.outlet.log);
662
788
  if (isValidBoolean(state)) {
@@ -664,10 +790,8 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
664
790
  this.outlet?.log.info(`Set outlet onOff to ${!state}`);
665
791
  }
666
792
  }, 60 * 1000 + 300);
667
- // Set cover to target = current position and status to stopped (current position is persisted in the cluster)
668
793
  await this.cover?.setWindowCoveringTargetAsCurrentAndStopped();
669
794
  this.cover?.log.info('Set cover initial targetPositionLiftPercent100ths = currentPositionLiftPercent100ths and operationalStatus to Stopped.');
670
- // Increment cover position every minute
671
795
  this.coverInterval = setInterval(async () => {
672
796
  let position = this.cover?.getAttribute(WindowCoveringCluster.id, 'currentPositionLiftPercent100ths', this.cover.log);
673
797
  if (isValidNumber(position, 0, 10000)) {
@@ -678,10 +802,8 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
678
802
  this.cover?.log.info(`Set cover current and target positionLiftPercent100ths to ${position} and operationalStatus to Stopped`);
679
803
  }
680
804
  }, 60 * 1000 + 400);
681
- // Set lock to Locked
682
805
  await this.lock?.setAttribute(DoorLockCluster.id, 'lockState', DoorLock.LockState.Locked, this.lock.log);
683
806
  this.lock?.log.info('Set lock initial lockState to Locked');
684
- // Toggle lock every minute
685
807
  this.lockInterval = setInterval(async () => {
686
808
  const status = this.lock?.getAttribute(DoorLockCluster.id, 'lockState', this.lock.log);
687
809
  if (isValidNumber(status, DoorLock.LockState.Locked, DoorLock.LockState.Unlocked)) {
@@ -689,35 +811,39 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
689
811
  this.lock?.log.info(`Set lock lockState to ${status === DoorLock.LockState.Locked ? 'Unlocked' : 'Locked'}`);
690
812
  }
691
813
  }, 60 * 1000 + 500);
692
- // Set local to 16°C
693
- await this.thermo?.setAttribute(ThermostatCluster.id, 'localTemperature', 16 * 100, this.thermo.log);
694
- await this.thermo?.setAttribute(ThermostatCluster.id, 'systemMode', Thermostat.SystemMode.Auto, this.thermo.log);
695
- this.thermo?.log.info('Set thermostat initial localTemperature to 16°C and mode Auto');
696
- const temperature = this.thermo?.getChildEndpointByName('Temperature');
697
- await this.thermo?.setAttribute(TemperatureMeasurementCluster.id, 'measuredValue', 16 * 100, this.thermo.log, temperature);
698
- const humidity = this.thermo?.getChildEndpointByName('Humidity');
699
- await this.thermo?.setAttribute(RelativeHumidityMeasurementCluster.id, 'measuredValue', 50 * 100, this.thermo.log, humidity);
700
- const flow = this.thermo?.getChildEndpointByName('Flow');
701
- await this.thermo?.setAttribute(FlowMeasurementCluster.id, 'measuredValue', 10, this.thermo.log, flow);
702
- this.thermo?.log.info('Set thermostat ext temperature to 16°C, ext humidity to 50% and ext valve flow to 10');
703
- // Increment localTemperature every minute
814
+ await this.thermoAuto?.setAttribute(ThermostatCluster.id, 'localTemperature', 16 * 100, this.thermoAuto.log);
815
+ await this.thermoAuto?.setAttribute(ThermostatCluster.id, 'systemMode', Thermostat.SystemMode.Auto, this.thermoAuto.log);
816
+ this.thermoAuto?.log.info('Set thermostat initial localTemperature to 16°C and mode Auto');
817
+ const temperature = this.thermoAuto?.getChildEndpointByName('Temperature');
818
+ await this.thermoAuto?.setAttribute(TemperatureMeasurementCluster.id, 'measuredValue', 16 * 100, this.thermoAuto.log, temperature);
819
+ const humidity = this.thermoAuto?.getChildEndpointByName('Humidity');
820
+ await this.thermoAuto?.setAttribute(RelativeHumidityMeasurementCluster.id, 'measuredValue', 50 * 100, this.thermoAuto.log, humidity);
821
+ const flow = this.thermoAuto?.getChildEndpointByName('Flow');
822
+ await this.thermoAuto?.setAttribute(FlowMeasurementCluster.id, 'measuredValue', 10, this.thermoAuto.log, flow);
823
+ this.thermoAuto?.log.info('Set thermostat ext temperature to 16°C, ext humidity to 50% and ext valve flow to 10');
704
824
  this.thermoInterval = setInterval(async () => {
705
- let temperature = this.thermo?.getAttribute(ThermostatCluster.id, 'localTemperature', this.thermo.log);
825
+ let temperature = this.thermoAuto?.getAttribute(ThermostatCluster.id, 'localTemperature', this.thermoAuto.log);
706
826
  if (isValidNumber(temperature, 1600, 2400)) {
707
827
  temperature = temperature + 100 > 2400 ? 1600 : temperature + 100;
708
- await this.thermo?.setAttribute(ThermostatCluster.id, 'localTemperature', temperature, this.thermo.log);
709
- const temp = this.thermo?.getChildEndpointByName('Temperature');
710
- await this.thermo?.setAttribute(TemperatureMeasurementCluster.id, 'measuredValue', temperature, this.thermo.log, temp);
711
- const humidity = this.thermo?.getChildEndpointByName('Humidity');
712
- await this.thermo?.setAttribute(RelativeHumidityMeasurementCluster.id, 'measuredValue', 50 * 100, this.thermo.log, humidity);
713
- const flow = this.thermo?.getChildEndpointByName('Flow');
714
- await this.thermo?.setAttribute(FlowMeasurementCluster.id, 'measuredValue', 10, this.thermo.log, flow);
715
- this.thermo?.log.info(`Set thermostat localTemperature to ${temperature / 100}°C`);
828
+ await this.thermoAuto?.setAttribute(ThermostatCluster.id, 'localTemperature', temperature, this.thermoAuto.log);
829
+ await this.thermoHeat?.setAttribute(ThermostatCluster.id, 'localTemperature', temperature, this.thermoHeat.log);
830
+ const tempIn = this.thermoHeat?.getChildEndpointByName('TemperatureIN');
831
+ await tempIn?.setAttribute(TemperatureMeasurementCluster.id, 'measuredValue', temperature - 50, this.thermoHeat?.log);
832
+ const tempOut = this.thermoHeat?.getChildEndpointByName('TemperatureOUT');
833
+ await tempOut?.setAttribute(TemperatureMeasurementCluster.id, 'measuredValue', temperature - 400, this.thermoHeat?.log);
834
+ await this.thermoCool?.setAttribute(ThermostatCluster.id, 'localTemperature', temperature, this.thermoCool.log);
835
+ const temp = this.thermoAuto?.getChildEndpointByName('Temperature');
836
+ await this.thermoAuto?.setAttribute(TemperatureMeasurementCluster.id, 'measuredValue', temperature, this.thermoAuto.log, temp);
837
+ const humidity = this.thermoAuto?.getChildEndpointByName('Humidity');
838
+ await this.thermoAuto?.setAttribute(RelativeHumidityMeasurementCluster.id, 'measuredValue', 50 * 100, this.thermoAuto.log, humidity);
839
+ const flow = this.thermoAuto?.getChildEndpointByName('Flow');
840
+ await this.thermoAuto?.setAttribute(FlowMeasurementCluster.id, 'measuredValue', 10, this.thermoAuto.log, flow);
841
+ this.thermoAuto?.log.info(`Set thermostat localTemperature to ${temperature / 100}°C`);
842
+ this.thermoHeat?.log.info(`Set thermostat localTemperature to ${temperature / 100}°C`);
843
+ this.thermoCool?.log.info(`Set thermostat localTemperature to ${temperature / 100}°C`);
716
844
  }
717
845
  }, 60 * 1000 + 600);
718
- // Set airConditioner to on
719
846
  await this.airConditioner?.setAttribute(OnOffCluster.id, 'onOff', true, this.airConditioner.log);
720
- // Increment airConditioner localTemperature every minute
721
847
  this.airConditionerInterval = setInterval(async () => {
722
848
  let temperature = this.airConditioner?.getAttribute(ThermostatCluster.id, 'localTemperature', this.airConditioner.log);
723
849
  if (isValidNumber(temperature, 1600, 2400)) {
@@ -728,14 +854,12 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
728
854
  this.airConditioner?.log.info(`Set airConditioner localTemperature to ${temperature / 100}°C`);
729
855
  }
730
856
  }, 60 * 1000 + 550);
731
- // Set fan to auto
732
857
  this.fan?.log.info('Set fan initial fanMode to Auto, percentCurrent and percentSetting to 50 and speedCurrent and speedSetting to 50');
733
858
  await this.fan?.setAttribute(FanControlCluster.id, 'fanMode', FanControl.FanMode.Auto, this.fan.log);
734
859
  await this.fan?.setAttribute(FanControlCluster.id, 'percentCurrent', 50, this.fan.log);
735
860
  await this.fan?.setAttribute(FanControlCluster.id, 'percentSetting', 50, this.fan.log);
736
861
  await this.fan?.setAttribute(FanControlCluster.id, 'speedCurrent', 50, this.fan.log);
737
862
  await this.fan?.setAttribute(FanControlCluster.id, 'speedSetting', 50, this.fan.log);
738
- // Increment fan percentCurrent every minute
739
863
  this.fanInterval = setInterval(async () => {
740
864
  const mode = this.fan?.getAttribute(FanControlCluster.id, 'fanMode', this.fan.log);
741
865
  let value = this.fan?.getAttribute(FanControlCluster.id, 'percentCurrent', this.fan.log);
@@ -746,9 +870,7 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
746
870
  this.fan?.log.info(`Set fan percentCurrent and percentSetting to ${value}`);
747
871
  }
748
872
  }, 60 * 1000 + 700);
749
- // Set waterLeak to false
750
873
  await this.waterLeak?.setAttribute(BooleanStateCluster.id, 'stateValue', false, this.waterLeak.log);
751
- // Toggle waterLeak every minute
752
874
  this.waterLeakInterval = setInterval(async () => {
753
875
  let value = this.waterLeak?.getAttribute(BooleanStateCluster.id, 'stateValue', this.waterLeak.log);
754
876
  if (isValidBoolean(value)) {
@@ -757,9 +879,7 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
757
879
  this.waterLeak?.log.info(`Set waterLeak stateValue to ${value}`);
758
880
  }
759
881
  }, 60 * 1000 + 800);
760
- // Set waterFreeze to false
761
882
  await this.waterFreeze?.setAttribute(BooleanStateCluster.id, 'stateValue', false, this.waterFreeze.log);
762
- // Toggle waterFreeze every minute
763
883
  this.waterFreezeInterval = setInterval(async () => {
764
884
  let value = this.waterFreeze?.getAttribute(BooleanStateCluster.id, 'stateValue', this.waterFreeze.log);
765
885
  if (isValidBoolean(value)) {
@@ -768,9 +888,7 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
768
888
  this.waterFreeze?.log.info(`Set waterFreeze stateValue to ${value}`);
769
889
  }
770
890
  }, 60 * 1000 + 900);
771
- // Set rain to false
772
891
  await this.rain?.setAttribute(BooleanStateCluster.id, 'stateValue', false, this.rain.log);
773
- // Toggle rain every minute
774
892
  this.rainInterval = setInterval(async () => {
775
893
  let value = this.rain?.getAttribute(BooleanStateCluster.id, 'stateValue', this.rain.log);
776
894
  if (isValidBoolean(value)) {
@@ -779,10 +897,8 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
779
897
  this.rain?.log.info(`Set rain stateValue to ${value}`);
780
898
  }
781
899
  }, 60 * 1000 + 1000);
782
- // Set smoke to Normal
783
900
  await this.smoke?.setAttribute(SmokeCoAlarmCluster.id, 'smokeState', SmokeCoAlarm.AlarmState.Normal, this.smoke.log);
784
901
  await this.smoke?.setAttribute(SmokeCoAlarmCluster.id, 'coState', SmokeCoAlarm.AlarmState.Normal, this.smoke.log);
785
- // Toggle smoke every minute
786
902
  this.smokeInterval = setInterval(async () => {
787
903
  let value = this.smoke?.getAttribute(SmokeCoAlarmCluster.id, 'smokeState', this.smoke.log);
788
904
  if (isValidNumber(value, SmokeCoAlarm.AlarmState.Normal, SmokeCoAlarm.AlarmState.Critical)) {
@@ -792,15 +908,13 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
792
908
  this.smoke?.log.info(`Set smoke smokeState and coState to ${value}`);
793
909
  }
794
910
  }, 60 * 1000 + 1100);
795
- // Set air quality to Normal
796
911
  this.airQuality?.setAttribute(AirQualityCluster.id, 'airQuality', AirQuality.AirQualityEnum.Good, this.airQuality.log);
797
- // Toggle air quality every minute
798
912
  this.airQualityInterval = setInterval(async () => {
799
913
  let value = this.airQuality?.getAttribute(AirQualityCluster.id, 'airQuality', this.airQuality?.log);
800
914
  if (isValidNumber(value, AirQuality.AirQualityEnum.Good, AirQuality.AirQualityEnum.ExtremelyPoor)) {
801
915
  value = value >= AirQuality.AirQualityEnum.ExtremelyPoor ? AirQuality.AirQualityEnum.Good : value + 1;
802
916
  await this.airQuality?.setAttribute(AirQualityCluster.id, 'airQuality', value, this.airQuality.log);
803
- this.smoke?.log.info(`Set air quality to ${value}`);
917
+ this.airQuality?.log.info(`Set air quality to ${value}`);
804
918
  }
805
919
  }, 60 * 1000 + 1100);
806
920
  }
@@ -823,4 +937,3 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
823
937
  await this.unregisterAllDevices();
824
938
  }
825
939
  }
826
- //# sourceMappingURL=platform.js.map
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "matterbridge-example-dynamic-platform",
3
- "version": "1.1.2",
3
+ "version": "1.1.4-dev.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "matterbridge-example-dynamic-platform",
9
- "version": "1.1.2",
9
+ "version": "1.1.4-dev.1",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "node-ansi-logger": "3.0.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matterbridge-example-dynamic-platform",
3
- "version": "1.1.2",
3
+ "version": "1.1.4-dev.1",
4
4
  "description": "Matterbridge dynamic plugin",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "MIT",
package/dist/index.d.ts DELETED
@@ -1,14 +0,0 @@
1
- import { Matterbridge, PlatformConfig } from 'matterbridge';
2
- import { AnsiLogger } from 'matterbridge/logger';
3
- import { ExampleMatterbridgeDynamicPlatform } from './platform.js';
4
- /**
5
- * This is the standard interface for Matterbridge plugins.
6
- * Each plugin should export a default function that follows this signature.
7
- *
8
- * @param {Matterbridge} matterbridge - The Matterbridge instance.
9
- * @param {AnsiLogger} log - The logger instance.
10
- * @param {PlatformConfig} config - The platform configuration.
11
- * @returns {ExampleMatterbridgeDynamicPlatform} The initialized platform.
12
- */
13
- export default function initializePlugin(matterbridge: Matterbridge, log: AnsiLogger, config: PlatformConfig): ExampleMatterbridgeDynamicPlatform;
14
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,kCAAkC,EAAE,MAAM,eAAe,CAAC;AAEnE;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,YAAY,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,cAAc,GAAG,kCAAkC,CAEhJ"}
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kCAAkC,EAAE,MAAM,eAAe,CAAC;AAEnE;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,YAA0B,EAAE,GAAe,EAAE,MAAsB;IAC1G,OAAO,IAAI,kCAAkC,CAAC,YAAY,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;AAC3E,CAAC"}
@@ -1,43 +0,0 @@
1
- import { AtLeastOne, DeviceTypeDefinition, EndpointOptions, PlatformConfig } from 'matterbridge';
2
- import { Matterbridge, /* MatterbridgeEndpoint as */ MatterbridgeDevice, MatterbridgeDynamicPlatform } from 'matterbridge';
3
- import { AnsiLogger } from 'matterbridge/logger';
4
- export declare class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatform {
5
- switch: MatterbridgeDevice | undefined;
6
- lightOnOff: MatterbridgeDevice | undefined;
7
- dimmer: MatterbridgeDevice | undefined;
8
- light: MatterbridgeDevice | undefined;
9
- lightXY: MatterbridgeDevice | undefined;
10
- lightHS: MatterbridgeDevice | undefined;
11
- lightCT: MatterbridgeDevice | undefined;
12
- outlet: MatterbridgeDevice | undefined;
13
- cover: MatterbridgeDevice | undefined;
14
- lock: MatterbridgeDevice | undefined;
15
- thermo: MatterbridgeDevice | undefined;
16
- fan: MatterbridgeDevice | undefined;
17
- waterLeak: MatterbridgeDevice | undefined;
18
- waterFreeze: MatterbridgeDevice | undefined;
19
- rain: MatterbridgeDevice | undefined;
20
- smoke: MatterbridgeDevice | undefined;
21
- airQuality: MatterbridgeDevice | undefined;
22
- airConditioner: MatterbridgeDevice | undefined;
23
- switchInterval: NodeJS.Timeout | undefined;
24
- lightInterval: NodeJS.Timeout | undefined;
25
- outletInterval: NodeJS.Timeout | undefined;
26
- coverInterval: NodeJS.Timeout | undefined;
27
- lockInterval: NodeJS.Timeout | undefined;
28
- thermoInterval: NodeJS.Timeout | undefined;
29
- fanInterval: NodeJS.Timeout | undefined;
30
- waterLeakInterval: NodeJS.Timeout | undefined;
31
- waterFreezeInterval: NodeJS.Timeout | undefined;
32
- rainInterval: NodeJS.Timeout | undefined;
33
- smokeInterval: NodeJS.Timeout | undefined;
34
- airQualityInterval: NodeJS.Timeout | undefined;
35
- airConditionerInterval: NodeJS.Timeout | undefined;
36
- bridgedDevices: Map<string, MatterbridgeDevice>;
37
- createMutableDevice(definition: DeviceTypeDefinition | AtLeastOne<DeviceTypeDefinition>, options?: EndpointOptions, debug?: boolean): Promise<MatterbridgeDevice>;
38
- constructor(matterbridge: Matterbridge, log: AnsiLogger, config: PlatformConfig);
39
- onStart(reason?: string): Promise<void>;
40
- onConfigure(): Promise<void>;
41
- onShutdown(reason?: string): Promise<void>;
42
- }
43
- //# sourceMappingURL=platform.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../src/platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EAQV,oBAAoB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