From 84bb7865fe979f6755d145cddb076cb2faf69be0 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Thu, 7 Nov 2024 09:23:23 -0800 Subject: [PATCH] unifi-protect: fingerprint sensor fixes --- plugins/unifi-protect/package-lock.json | 4 ++-- plugins/unifi-protect/package.json | 2 +- plugins/unifi-protect/src/main.ts | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/unifi-protect/package-lock.json b/plugins/unifi-protect/package-lock.json index 2106c9f66..7e822ad64 100644 --- a/plugins/unifi-protect/package-lock.json +++ b/plugins/unifi-protect/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/unifi-protect", - "version": "0.0.157", + "version": "0.0.158", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/unifi-protect", - "version": "0.0.157", + "version": "0.0.158", "license": "Apache", "dependencies": { "@koush/unifi-protect": "file:../../external/unifi-protect", diff --git a/plugins/unifi-protect/package.json b/plugins/unifi-protect/package.json index 527cdac05..30dda3ab9 100644 --- a/plugins/unifi-protect/package.json +++ b/plugins/unifi-protect/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/unifi-protect", - "version": "0.0.157", + "version": "0.0.158", "description": "Unifi Protect Plugin for Scrypted", "author": "Scrypted", "license": "Apache", diff --git a/plugins/unifi-protect/src/main.ts b/plugins/unifi-protect/src/main.ts index b50e01ce3..8187a2ab9 100644 --- a/plugins/unifi-protect/src/main.ts +++ b/plugins/unifi-protect/src/main.ts @@ -221,7 +221,9 @@ export class UnifiProtect extends ScryptedDeviceBase implements Settings, Device debounceMotionDetected(unifiCamera); } else if (payload.type === 'fingerprintIdentified') { - debounceFingerprintDetected(unifiCamera); + if ((payload as any).metadata?.fingerprint?.userId) { + debounceFingerprintDetected(unifiCamera); + } } }