From 95f1e618f9d7dd947fc9f3ed7075bf4b4cff709a Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Thu, 4 Jul 2024 14:44:15 -0700 Subject: [PATCH] unifi-protect: ips --- external/unifi-protect | 2 +- plugins/unifi-protect/package-lock.json | 4 ++-- plugins/unifi-protect/package.json | 2 +- plugins/unifi-protect/src/main.ts | 4 ++++ 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/external/unifi-protect b/external/unifi-protect index bf6fdbdc65..14f895045e 160000 --- a/external/unifi-protect +++ b/external/unifi-protect @@ -1 +1 @@ -Subproject commit bf6fdbdc657d107bd89a376f84b55c5147254829 +Subproject commit 14f895045ee4617a50f2cf9e0e110e200168e288 diff --git a/plugins/unifi-protect/package-lock.json b/plugins/unifi-protect/package-lock.json index 6f3c599efc..7bc078d1ee 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.153", + "version": "0.0.154", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/unifi-protect", - "version": "0.0.153", + "version": "0.0.154", "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 0ad0d350de..4fdf698f2d 100644 --- a/plugins/unifi-protect/package.json +++ b/plugins/unifi-protect/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/unifi-protect", - "version": "0.0.153", + "version": "0.0.154", "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 2163d888e4..74fdb50e5a 100644 --- a/plugins/unifi-protect/src/main.ts +++ b/plugins/unifi-protect/src/main.ts @@ -353,6 +353,7 @@ export class UnifiProtect extends ScryptedDeviceBase implements Settings, Device model: camera.type, firmware: camera.firmwareVersion, version: camera.hardwareRevision, + ip: camera.host, serialNumber: camera.id, mac: camera.mac, managementUrl, @@ -399,6 +400,7 @@ export class UnifiProtect extends ScryptedDeviceBase implements Settings, Device info: { manufacturer: 'Ubiquiti', model: sensor.type, + ip: sensor.host, firmware: sensor.firmwareVersion, version: sensor.hardwareRevision, serialNumber: sensor.id, @@ -426,6 +428,7 @@ export class UnifiProtect extends ScryptedDeviceBase implements Settings, Device info: { manufacturer: 'Ubiquiti', model: light.type, + ip: light.host, firmware: light.firmwareVersion, version: light.hardwareRevision, serialNumber: light.id, @@ -450,6 +453,7 @@ export class UnifiProtect extends ScryptedDeviceBase implements Settings, Device info: { manufacturer: 'Ubiquiti', model: lock.type, + ip: lock.host, firmware: lock.firmwareVersion, version: lock.hardwareRevision.toString(), serialNumber: lock.id,