When creating event-to-actions for license plate reads, you can specify additional conditions based on Sharp analytics to trigger an action. For example, you can specify that an action occur only when the plate number contains “123”, or the vehicle is traveling at a certain speed.
Before you begin
- Enable and configure analytics for your Sharps. For more information, see the , and the .
What you should know
- Conditions must be typed as an expression that contains an identifier, operator, and a
value (not case sensitive). For example,
[PlateNumber] = "ABC123". To know more about the operators and identifiers that can be used, see Elements used in event-to-action conditions for license plate reads.
- 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, it's
preferable to use parentheses to force the order of the evaluation. For example, if you
[Speed] > 20 AND [Speed.unit] = "mph") OR ([Speed] > 50 AND [Speed.Unit] = "km/h") the AND operator takes precedence.
- You can use the exclamation point (!) to exclude an expression. For example, if you
[PlateNumber] contains "123" AND !([PlateState] = "QC"), any plate reads with a plate number that contains the value "123" and a plate state other than "QC" will trigger an action.
Sharp analytics are not generated 100% of the time. An event-to-action might not be executed if the Sharp is not able to generate the analytic specified in the condition. For example, if the condition is [Speed] > 50 and the Sharp cannot produce a value for speed, Security Center will evaluate the condition as being false and the action will not be executed.
When the outputs of an LPR Processing Unit are used to control building access through event-to-actions in Security Center, rebooting the LPR Processing Unit causes the outputs to activate which could lead to the opening of the access point. This output behavior is not ideal for access control, but is required in order to power the in-vehicle computer on vehicle startup. Create an event-to-action in Security Center that will send a "Normal" state to the outputs following a "Unit Connected" event. The access points will still open, but will close shortly afterward.
- 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 License plate read.
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, select the LPR unit that triggers the event.
- In the For drop-down list, select the desired entity.
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.