@@ -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
@@ -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)
}