diff --git a/plugins/tapo/README.md b/plugins/tapo/README.md index 251db1263..549a8ea10 100644 --- a/plugins/tapo/README.md +++ b/plugins/tapo/README.md @@ -7,3 +7,4 @@ This plugin adds two way audio support for Tapo cameras. This plugin does not im 1. Add the Tapo Camera using the ONVIF Plugin. 2. Enable ONVIF Two Way Audio on the camera. 3. Enable the Tapo Two Way Audio extension. +4. Enter your Tapo Cloud password into the Tapo Two Way Audio Settings. diff --git a/plugins/tapo/package-lock.json b/plugins/tapo/package-lock.json index eaebe4e2f..df7d61b00 100644 --- a/plugins/tapo/package-lock.json +++ b/plugins/tapo/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/tapo", - "version": "0.0.9", + "version": "0.0.10", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@scrypted/tapo", - "version": "0.0.9", + "version": "0.0.10", "dependencies": { "axios": "^1.3.4", "crc-32": "^1.2.2" diff --git a/plugins/tapo/package.json b/plugins/tapo/package.json index 782fb25d1..c749117a1 100644 --- a/plugins/tapo/package.json +++ b/plugins/tapo/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/tapo", - "version": "0.0.9", + "version": "0.0.10", "description": "Tapo Camera Plugin for Scrypted", "scripts": { "scrypted-setup-project": "scrypted-setup-project", diff --git a/plugins/tapo/src/main.ts b/plugins/tapo/src/main.ts index a7d2deb82..a11c1e602 100644 --- a/plugins/tapo/src/main.ts +++ b/plugins/tapo/src/main.ts @@ -22,6 +22,12 @@ class TapoIntercomMixin extends SettingsMixinDeviceBase const ip = settings.find(s => s.key === 'ip')?.value?.toString(); await this.stopIntercom(); + if (!this.storageSettings.values.cloudPassword) { + const error = 'Two Way Audio failed. Tapo Cloud password is unconfigured on ' + this.name; + sdk.log.a(error); + throw error; + } + this.client = TapoAPI.connect({ address: `${ip}:8800`, cloudPassword: this.storageSettings.values.cloudPassword,