diff --git a/package-lock.json b/package-lock.json index dd661b3..f247168 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "homebridge-intercom", - "version": "1.1.0", + "version": "1.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "homebridge-intercom", - "version": "1.1.0", + "version": "1.1.1", "license": "Apache-2.0", "dependencies": { "axios": "^1.7.2" diff --git a/package.json b/package.json index a3adb6f..7ecfa4a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "displayName": "Intercom", "name": "homebridge-intercom", - "version": "1.1.0", + "version": "1.1.1", "description": "Manage your old intercom via Homebridge. \nIt consists of two accessories: a doorbell (for checking and notifyng if the intercom rings) and a lock mechanism (for opening the intercom door).", "license": "Apache-2.0", "homepage": "https://github.com/denisgabriel5/homebridge-intercom/blob/main/README.md", diff --git a/src/shellyUni/shellyUniLockMechanism.ts b/src/shellyUni/shellyUniLockMechanism.ts index d4cde26..d98df72 100644 --- a/src/shellyUni/shellyUniLockMechanism.ts +++ b/src/shellyUni/shellyUniLockMechanism.ts @@ -81,13 +81,13 @@ export class ShellyUniLockMechanism { this.service.updateCharacteristic(this.Characteristic.LockTargetState, this.Characteristic.LockCurrentState.UNSECURED); this.service.updateCharacteristic(this.Characteristic.LockCurrentState, this.Characteristic.LockCurrentState.UNSECURED); this.parent.platform.log.debug('Intercom opened'); - }, this.parent.config.buttonsTimeout!); + }, this.parent.config.buttonsTimeout! * 1000); // in the end mark the intercom as closed/locked/secured setTimeout(() => { this.service.updateCharacteristic(this.Characteristic.LockTargetState, this.Characteristic.LockCurrentState.SECURED); this.service.updateCharacteristic(this.Characteristic.LockCurrentState, this.Characteristic.LockCurrentState.SECURED); this.parent.platform.log.debug('Intercom closed'); - }, this.parent.config.timeout!); + }, this.parent.config.timeout! * 1000); } } \ No newline at end of file