Enable and disable rule events on multiple cameras with one soft trigger.
AnsweredHi guys,
I'm using soft triggers with Do HTTP(S) Requests to enable and disable a motion rule on a camera, and it's working beautifully. But, I need to arm and disarm motion events on five cameras at this site, for practicality reasons ideally using just one soft trigger. Basically, staff will disable the motion event using the soft trigger button in the NX phone app before they enter the site, and enable when they leave.
I have it working on one camera using the code below, in the HTTP(S) content:
{
"id": "986735c4-338b-4f4c-94a9-348853b45d58",
"disabled": false
}
-
Might be hacky but use the soft trigger to generate a generic event or something, then 5 rules to run the relevant API call per camera?
There was talk years ago about some added complexity to the rules engine that might of solved this, but that looks to have gone silent as of late. Might see something in an upcoming release.
-
Hello,
Here are some details to add to what Jeamyn recommends.
The approach could be the following.
1. You create a Generic Event rule per a rule you need to turn on.
These rules have the same caption or description, say say the "TURNON" caption and different "DoHTTP request" part having different rule ids.
2. You create a Generic Event rule per a rule you need to turn off.
These rules have the same caption or description, say the "TURNOFF" caption and different "DoHTTP request" part having different rule ids
3. You create a Soft Trigger rule to trigger the Generic Events configured in step 1 via DoHTTP request to turn rules off
{"timestamp": "2016-09-16T16:02:41Z","caption": "TURNOFF",}4. You create a Soft Trigger rule to trigger the Generic Events configured in step 2 via DoHTTP request to turn rules on{"timestamp": "2016-09-16T16:02:41Z","caption": "TURNON",}
Please sign in to leave a comment.
Comments
4 comments