When creating event-to-actions for video analytics events, you can specify additional conditions based on camera analytics to trigger an action. For example, you can specify that an action occurs only when the direction of travel is right, or the vehicle is traveling at a particular speed.
Before you begin
- Ensure that video analytics is enabled and configured for your cameras.
- Familiarize yourself with the video analytics event types.
What you should know
- Conditions must be typed as an expression that contains an identifier, an operator,
and a value (not case sensitive). For example,
[RuleName] = "RuleA". To know more about the operators and identifiers that can be used, see Elements used in event-to-action conditions for video analytics events.
- Identifiers must be typed in square brackets:
- Text values must be typed in quotation marks:
- You can use AND and OR to combine multiple expressions. When doing this, use
parentheses to force the order of the evaluation. For example, if you type
[Count] > 20 AND [Update] = "Punctual") OR ([Count] > 50 AND [Direction] = "right")the AND operator takes precedence.
- You can use the exclamation point (!) to exclude an expression. For example, if you
[RuleName] contains "RuleA" AND !([Update] = "punctual"), any camera with a rule name that contains the value "RuleA" and an update other than "punctual" will trigger an action.
Camera analytics are not generated 100% of the time. An event-to-action might not be processed if the camera is unable to generate the analytic specified in the condition. For example, if the condition is
[Count] > 50and the camera cannot produce a value for count, Security Center will evaluate the condition as being false and the action will not be processed.
- Open the System task, and click General settings view.
- Click the Actions tab, and click Add an item ().
- From the When drop-down list in the Event-to-action dialog box, select a video analytics event from the event list.
Click Specify a condition, and type the expression.
Tip: Hover your mouse over the field for examples of valid expressions. The field will appear in red if the expression you enter is invalid.
- In the From drop-down list, leave the default Any entity unchanged.
From the Action drop-down list, select an action type and
configure its parameters.
For example, if you select Send an email, then you must also select the email recipients.
In the Effective option, click Always,
and select a schedule when the event-to-action is active.
If the event occurs outside of the defined schedule, then the action is not triggered.
The Save button is only available when all the arguments required by the event-to-action type are specified.