Update CameraAccessory Implementation

This commit is contained in:
2023-03-16 14:08:41 +01:00
parent 16cf72954f
commit 663ce8b9b2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ export class cameraAccessory extends accessory {
setValue(key, value) { setValue(key, value) {
if (key == "state" && value != "") { if (key == "state" && value != "") {
if (value == "On") { if (value == "1") {
this.state.Motion = true this.state.Motion = true
} else { } else {
this.state.Motion = false this.state.Motion = false
+1 -1
View File
@@ -48,7 +48,7 @@ export class httpServer {
var type = urlQuery.type var type = urlQuery.type
var typeId = urlQuery.typeId var typeId = urlQuery.typeId
if (type != "PowerSocket" && type != "PowerSwitch" && type != "Xiaomi") { if (type != "PowerSocket" && type != "PowerSwitch" && type != "Xiaomi" && type != "Camera") {
log.debug(request.url) log.debug(request.url)
} }