From 663ce8b9b2ea48c771873e57af753167a146ce10 Mon Sep 17 00:00:00 2001 From: JDierkse Date: Thu, 16 Mar 2023 14:08:41 +0100 Subject: [PATCH] Update CameraAccessory Implementation --- cameraAccessory.ts | 2 +- httpServer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cameraAccessory.ts b/cameraAccessory.ts index 75d977e..ece8933 100644 --- a/cameraAccessory.ts +++ b/cameraAccessory.ts @@ -70,7 +70,7 @@ export class cameraAccessory extends accessory { setValue(key, value) { if (key == "state" && value != "") { - if (value == "On") { + if (value == "1") { this.state.Motion = true } else { this.state.Motion = false diff --git a/httpServer.ts b/httpServer.ts index a7b43aa..d4fdea0 100644 --- a/httpServer.ts +++ b/httpServer.ts @@ -48,7 +48,7 @@ export class httpServer { var type = urlQuery.type var typeId = urlQuery.typeId - if (type != "PowerSocket" && type != "PowerSwitch" && type != "Xiaomi") { + if (type != "PowerSocket" && type != "PowerSwitch" && type != "Xiaomi" && type != "Camera") { log.debug(request.url) }