StatusPattern Help for Reolink Camera
bhamid79 opened this issue · 0 comments
bhamid79 commented
Seems everyone gets stuck on this. Please excuse the repeat. I've tried every combination and cant seem to get it right.
Its a Reolink Camera with floodlights. I'm trying to update the switch with the state of the floodlight. I use GetWhiteLed and I get this back:
[11/13/2023, 1:44:55 AM] [DRIVEWAY FLITE] getStatus() request returned successfully (200). Body: '[
{
"cmd" : "GetWhiteLed",
"code" : 0,
"initial" : {
"WhiteLed" : {
"wlAiDetectType" : {
"dog_cat" : 1,
"people" : 1,
"vehicle" : 1
}
}
},
"range" : {
"AiDetectType" : {
"dog_cat" : "boolean",
"people" : "boolean",
"vehicle" : "boolean"
},
"WhiteLed" : {
"bright" : {
"max" : 100,
"min" : 0
}
}
},
"value" : {
"WhiteLed" : {
"LightingSchedule" : {
"EndHour" : 6,
"EndMin" : 0,
"StartHour" : 18,
"StartMin" : 0
},
"bright" : 100,
"channel" : 0,
"mode" : 1,
"state" : 1,
"wlAiDetectType" : {
"dog_cat" : 1,
"people" : 1,
"vehicle" : 1
}
}
}
}
]
'
My statusPattern is: "statusPattern": "{\n "state": 1\n}"
But I still get a message saying the DRIVEWAY FLITE is Off even though the state is 1. What am I doing wrong? How do I get to the "state" field?
Thanks in advance.