diff --git a/plugins/ring/package-lock.json b/plugins/ring/package-lock.json index 6729f6a2f..51b995c6b 100644 --- a/plugins/ring/package-lock.json +++ b/plugins/ring/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/ring", - "version": "0.0.71", + "version": "0.0.72", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/ring", - "version": "0.0.71", + "version": "0.0.72", "dependencies": { "@koush/ring-client-api": "file:../../external/ring-client-api", "@types/node": "^16.6.1", diff --git a/plugins/ring/package.json b/plugins/ring/package.json index df87e720d..f63a5fbcb 100644 --- a/plugins/ring/package.json +++ b/plugins/ring/package.json @@ -42,5 +42,5 @@ "@scrypted/sdk": "file:../../sdk", "typescript": "^4.6.2" }, - "version": "0.0.71" + "version": "0.0.72" } diff --git a/plugins/ring/src/main.ts b/plugins/ring/src/main.ts index 41db03798..d427b83c5 100644 --- a/plugins/ring/src/main.ts +++ b/plugins/ring/src/main.ts @@ -529,8 +529,10 @@ class RingCameraDevice extends ScryptedDeviceBase implements Intercom, Settings, } updateState(data: CameraData) { - if (data.led_status) - this.on = data.led_status === 'on'; + if (this.findCamera().hasLight && data.led_status) { + const light = this.getDevice(undefined); + light.on = data.led_status === 'on'; + } } }