Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StatusPattern Help for Reolink Camera #121

Open
bhamid79 opened this issue Nov 13, 2023 · 0 comments
Open

StatusPattern Help for Reolink Camera #121

bhamid79 opened this issue Nov 13, 2023 · 0 comments

Comments

@bhamid79
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant