Skip to content

Commit

Permalink
Release 2.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Luligu committed Jun 29, 2024
1 parent c467f12 commit 8d17b15
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 22 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ If you like this project and find it useful, please consider giving it a star on

All notable changes to this project will be documented in this file.

## [2.1.4] - 2024-06-28
## [2.1.4] - 2024-06-29

### Added

- [dependencies]: Update dependencies.
- [dependencies]: Update eslint to 9.6.0.

<a href="https://www.buymeacoffee.com/luligugithub">
<img src="./yellow-button.png" alt="Buy me a coffee" width="120">
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"node-ansi-logger": "^1.9.5"
},
"devDependencies": {
"@eslint/js": "^9.5.0",
"@eslint/js": "^9.6.0",
"@types/eslint__js": "^8.42.3",
"@types/jest": "^29.5.12",
"@types/node": "^20.14.9",
Expand Down
14 changes: 2 additions & 12 deletions src/entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1043,24 +1043,14 @@ export class BridgedBaseDevice extends MatterbridgeDevice {

configure() {
if (this.getClusterServerById(WindowCovering.Cluster.id)) {
this.log.debug(`Configuring ${this.deviceName} WindowCovering`);
this.log.info(`Configuring ${this.deviceName} WindowCovering cluster`);
this.setWindowCoveringTargetAsCurrentAndStopped();
}
if (this.getClusterServerById(DoorLock.Cluster.id)) {
this.log.debug(`Configuring ${this.deviceName} DoorLock`);
this.log.info(`Configuring ${this.deviceName} DoorLock cluster`);
const state = this.getClusterServerById(DoorLock.Cluster.id)?.getLockStateAttribute();
if (state === DoorLock.LockState.Locked) this.getClusterServer(DoorLockCluster)?.triggerLockOperationEvent({ lockOperationType: DoorLock.LockOperationType.Lock, operationSource: DoorLock.OperationSource.Manual, userIndex: null, fabricIndex: null, sourceNode: null });
if (state === DoorLock.LockState.Unlocked) this.getClusterServer(DoorLockCluster)?.triggerLockOperationEvent({ lockOperationType: DoorLock.LockOperationType.Unlock, operationSource: DoorLock.OperationSource.Manual, userIndex: null, fabricIndex: null, sourceNode: null });
}
/*
if (this.getClusterServerById(DoorLock.Cluster.id)) {
this.log.debug(`Configuring ${this.deviceName}`);
this.getClusterServerById(DoorLock.Cluster.id)?.setLockStateAttribute(DoorLock.LockState.Locked);
}
if (this.getClusterServerById(Switch.Cluster.id)) {
this.log.debug(`Configuring ${this.deviceName}`);
this.getClusterServerById(Switch.Cluster.id)?.setCurrentPositionAttribute(0);
}
*/
}
}
2 changes: 1 addition & 1 deletion src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ export class ZigbeePlatform extends MatterbridgeDynamicPlatform {
}
*/

this.log.info(`Configuring ${this.zigbeeEntities.length} zigbee entities.`);
this.log.info(`Requesting update for ${this.zigbeeEntities.length} zigbee entities.`);
for (const bridgedEntity of this.zigbeeEntities) {
if (bridgedEntity.isDevice && bridgedEntity.device) await this.requestDeviceUpdate(bridgedEntity.device);
if (bridgedEntity.isGroup && bridgedEntity.group) await this.requestGroupUpdate(bridgedEntity.group);
Expand Down

0 comments on commit 8d17b15

Please sign in to comment.