matterbridge-example-accessory-platform 1.0.18 → 1.0.19

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.
@@ -1 +1 @@
1
- {"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../src/platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,6BAA6B,EAAe,cAAc,EAA+B,MAAM,cAAc,CAAC;AACzJ,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,qBAAa,oCAAqC,SAAQ,6BAA6B;IACrF,KAAK,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACtC,aAAa,EAAE,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC;gBAE9B,YAAY,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,cAAc;IAahE,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM;IAiDvB,WAAW;IA2BX,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM;CAK1C"}
1
+ {"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../src/platform.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,kBAAkB,EAElB,6BAA6B,EAE7B,cAAc,EAMf,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,qBAAa,oCAAqC,SAAQ,6BAA6B;IACrF,KAAK,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACtC,aAAa,EAAE,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC;gBAE9B,YAAY,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,cAAc;IAahE,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM;IA8DvB,WAAW;IAkBX,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM;CAK1C"}
package/dist/platform.js CHANGED
@@ -1,5 +1,7 @@
1
- import { MatterbridgeDevice, MatterbridgeAccessoryPlatform, DeviceTypes, WindowCovering, powerSource } from 'matterbridge';
2
- import os from 'os';
1
+ import { MatterbridgeDevice,
2
+ // MatterbridgeEndpoint as MatterbridgeDevice,
3
+ MatterbridgeAccessoryPlatform, DeviceTypes, WindowCovering, powerSource, WindowCoveringCluster, } from 'matterbridge';
4
+ import { isValidNumber } from 'matterbridge/utils';
3
5
  export class ExampleMatterbridgeAccessoryPlatform extends MatterbridgeAccessoryPlatform {
4
6
  cover;
5
7
  coverInterval;
@@ -13,57 +15,51 @@ export class ExampleMatterbridgeAccessoryPlatform extends MatterbridgeAccessoryP
13
15
  }
14
16
  async onStart(reason) {
15
17
  this.log.info('onStart called with reason:', reason ?? 'none');
16
- this.cover = new MatterbridgeDevice(DeviceTypes.WINDOW_COVERING);
18
+ this.cover = new MatterbridgeDevice(DeviceTypes.WINDOW_COVERING, { uniqueStorageKey: 'Cover example device' }, this.config.debug);
17
19
  this.cover.createDefaultIdentifyClusterServer();
18
- this.cover.createDefaultBasicInformationClusterServer('Cover device', `0x59108853_${os.hostname()}`, 0xfff1, 'Matterbridge', 0x0001, 'Matterbridge Cover');
20
+ this.cover.createDefaultBasicInformationClusterServer('Cover example device', `0x59108853594}`, 0xfff1, 'Matterbridge', 0x0001, 'Matterbridge Cover');
19
21
  this.cover.createDefaultWindowCoveringClusterServer(10000);
20
22
  this.cover.addDeviceType(powerSource);
21
23
  this.cover.createDefaultPowerSourceWiredClusterServer();
22
24
  await this.registerDevice(this.cover);
25
+ this.cover.subscribeAttribute(WindowCoveringCluster.id, 'mode', (newValue, oldValue) => {
26
+ this.log.info(`Attribute mode changed from ${oldValue} to ${newValue}. Reverse: ${newValue.motorDirectionReversed}. Calibration: ${newValue.calibrationMode}. Maintenance: ${newValue.maintenanceMode}. LED: ${newValue.ledFeedback}`);
27
+ }, this.log);
23
28
  this.cover.addCommandHandler('identify', async ({ request: { identifyTime } }) => {
24
29
  this.log.info(`Command identify called identifyTime:${identifyTime}`);
25
30
  });
26
- this.cover.addCommandHandler('stopMotion', async ({ attributes: { currentPositionLiftPercent100ths, targetPositionLiftPercent100ths, operationalStatus } }) => {
27
- this.cover?.setWindowCoveringTargetAsCurrentAndStopped();
28
- this.cover?.log.info(`Command stopMotion called: current ${currentPositionLiftPercent100ths?.getLocal()} target ${targetPositionLiftPercent100ths?.getLocal()} status ${operationalStatus?.getLocal().lift}`);
31
+ this.cover.addCommandHandler('stopMotion', async () => {
32
+ await this.cover?.setWindowCoveringTargetAsCurrentAndStopped();
33
+ this.cover?.log.info(`Command stopMotion called`);
29
34
  });
30
- this.cover.addCommandHandler('upOrOpen', async ({ attributes: { currentPositionLiftPercent100ths, targetPositionLiftPercent100ths, operationalStatus } }) => {
31
- this.cover?.setWindowCoveringCurrentTargetStatus(0, 0, WindowCovering.MovementStatus.Stopped);
32
- this.cover?.log.info(`Command upOrOpen called: current ${currentPositionLiftPercent100ths?.getLocal()} target ${targetPositionLiftPercent100ths?.getLocal()} status ${operationalStatus?.getLocal().lift}`);
35
+ this.cover.addCommandHandler('upOrOpen', async () => {
36
+ await this.cover?.setWindowCoveringCurrentTargetStatus(0, 0, WindowCovering.MovementStatus.Stopped);
37
+ this.cover?.log.info(`Command upOrOpen called`);
33
38
  });
34
- this.cover.addCommandHandler('downOrClose', async ({ attributes: { currentPositionLiftPercent100ths, targetPositionLiftPercent100ths, operationalStatus } }) => {
35
- this.cover?.setWindowCoveringCurrentTargetStatus(10000, 10000, WindowCovering.MovementStatus.Stopped);
36
- this.cover?.log.info(`Command downOrClose called: current ${currentPositionLiftPercent100ths?.getLocal()} target ${targetPositionLiftPercent100ths?.getLocal()} status ${operationalStatus?.getLocal().lift}`);
39
+ this.cover.addCommandHandler('downOrClose', async () => {
40
+ await this.cover?.setWindowCoveringCurrentTargetStatus(10000, 10000, WindowCovering.MovementStatus.Stopped);
41
+ this.cover?.log.info(`Command downOrClose called`);
37
42
  });
38
- this.cover.addCommandHandler('goToLiftPercentage', async ({ request: { liftPercent100thsValue }, attributes: { currentPositionLiftPercent100ths, targetPositionLiftPercent100ths, operationalStatus } }) => {
39
- this.cover?.setWindowCoveringCurrentTargetStatus(liftPercent100thsValue, liftPercent100thsValue, WindowCovering.MovementStatus.Stopped);
40
- this.cover?.log.info(`Command goToLiftPercentage ${liftPercent100thsValue} called: current ${currentPositionLiftPercent100ths?.getLocal()} target ${targetPositionLiftPercent100ths?.getLocal()} status ${operationalStatus?.getLocal().lift}`);
43
+ this.cover.addCommandHandler('goToLiftPercentage', async ({ request: { liftPercent100thsValue } }) => {
44
+ await this.cover?.setWindowCoveringCurrentTargetStatus(liftPercent100thsValue, liftPercent100thsValue, WindowCovering.MovementStatus.Stopped);
45
+ this.cover?.log.info(`Command goToLiftPercentage ${liftPercent100thsValue} called`);
41
46
  });
42
47
  }
43
48
  async onConfigure() {
44
49
  this.log.info('onConfigure called');
45
- // Set cover to target = current position and status to stopped (current position is persisted in the cluster)
46
- this.cover?.setWindowCoveringTargetAsCurrentAndStopped();
50
+ await this.cover?.setWindowCoveringTargetAsCurrentAndStopped();
47
51
  this.log.info('Set cover initial targetPositionLiftPercent100ths = currentPositionLiftPercent100ths and operationalStatus to Stopped.');
48
- this.coverInterval = setInterval(() => {
52
+ // Matter: 0 Fully open 10000 fully closed
53
+ this.coverInterval = setInterval(async () => {
49
54
  if (!this.cover)
50
55
  return;
51
- const coverCluster = this.cover.getClusterServer(WindowCovering.Complete);
52
- if (coverCluster && coverCluster.getCurrentPositionLiftPercent100thsAttribute) {
53
- let position = coverCluster.getCurrentPositionLiftPercent100thsAttribute();
54
- if (position === null || position === undefined)
55
- return;
56
- position = position + 1000;
57
- position = position > 10000 ? 0 : position;
58
- coverCluster.setTargetPositionLiftPercent100thsAttribute(position);
59
- coverCluster.setCurrentPositionLiftPercent100thsAttribute(position);
60
- coverCluster.setOperationalStatusAttribute({
61
- global: WindowCovering.MovementStatus.Stopped,
62
- lift: WindowCovering.MovementStatus.Stopped,
63
- tilt: WindowCovering.MovementStatus.Stopped,
64
- });
65
- this.log.info(`Set liftPercent100thsValue to ${position}`);
66
- }
56
+ let position = this.cover.getAttribute(WindowCoveringCluster.id, 'currentPositionLiftPercent100ths', this.log);
57
+ if (!isValidNumber(position, 0, 10000))
58
+ return;
59
+ position = position + 1000;
60
+ position = position > 10000 ? 0 : position;
61
+ await this.cover.setWindowCoveringCurrentTargetStatus(position, position, WindowCovering.MovementStatus.Stopped);
62
+ this.log.info(`Set liftPercent100thsValue to ${position}`);
67
63
  }, 60 * 1000);
68
64
  }
69
65
  async onShutdown(reason) {
@@ -1 +1 @@
1
- {"version":3,"file":"platform.js","sourceRoot":"","sources":["../src/platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,kBAAkB,EAAE,6BAA6B,EAAE,WAAW,EAAkB,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEzJ,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB,MAAM,OAAO,oCAAqC,SAAQ,6BAA6B;IACrF,KAAK,CAAiC;IACtC,aAAa,CAA6B;IAE1C,YAAY,YAA0B,EAAE,GAAe,EAAE,MAAsB;QAC7E,KAAK,CAAC,YAAY,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;QAEjC,kDAAkD;QAClD,IAAI,IAAI,CAAC,yBAAyB,KAAK,SAAS,IAAI,OAAO,IAAI,CAAC,yBAAyB,KAAK,UAAU,IAAI,CAAC,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,EAAE,CAAC;YACrJ,MAAM,IAAI,KAAK,CACb,yFAAyF,IAAI,CAAC,YAAY,CAAC,mBAAmB,0CAA0C,CACzK,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,wBAAwB,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC5D,CAAC;IAEQ,KAAK,CAAC,OAAO,CAAC,MAAe;QACpC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,6BAA6B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AC;QAClC,IAAI,IAAI,CAAC,MAAM,CAAC,oBAAoB,KAAK,IAAI;YAAE,MAAM,IAAI,CAAC,oBAAoB,EAAE,CAAC;IACnF,CAAC;CACF"}
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "matterbridge-example-accessory-platform",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "matterbridge-example-accessory-platform",
9
- "version": "1.0.18",
9
+ "version": "1.0.19",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matterbridge-example-accessory-platform",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "Matterbridge accessory plugin",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "MIT",