Action Rule List
In the List tab, you can add, edit, enable, disable, and delete action rules. Surveillance Station uses two kinds of rules to automate a variety of surveillance functions: triggered and scheduled. Triggered action rules are executed when certain event conditions are present. Scheduled action rules are executed according to schedule. A list of all events and actions can seen at Action Rule.
To add a triggered action rule:
- Click Add to create a new action rule.
- Enter a name for the action rule in Name.
- Select Triggered from Rule type.
- Select either Interruptible or Uninterruptible from Action type. Interruptible rules will not ignore other newly triggered action rules. The newly triggered action rule will be executed instead of the originally triggered action rule. Uninterruptible rules will ignore other actions rules, continuing to execute the originally triggered action rule until the action is complete.
- Click Next to continue.
- In the Event window, configure the following parameters that will be used to trigger the action rule.
- Event source: Select the event source used to trigger the action rule.
- Server: Select which server the event source is connected to.
- Device: Select the specific device used to trigger the action rule.
- Event: Select the type of event used to trigger the action rule.
- Click Next to continue.
- In the Action window, configure the following parameters that will be used to execute the action rule.
- Action device: Select the action device type used to execute the action rule.
- Server: Select which server the action device is connected to.
- Device: Select the specific device used to execute the action rule.
- Action: Select the type of action used to be executed. Depending on the selected action, additional parameters will be available for configuration.
Note: You can click Add to add more actions. To cancel any actions, click Delete to select the actions to delete.
- Click Next to continue.
- In the Schedule window, determine when this action rule will be active by selecting cells on the grid. You can select an entire day by clicking on a day and a specific time by clicking on the hour.
- Click Finish to save the action rule.
Note:
- You can set at most five actions for any one action rule. These actions will be triggered at the same time by the event of the action rule.
- When a new action rule is being added, if any devices involved in the action rule are disabled, the rule will be saved as Invalid or Partial Invalid.
- Triggered action rules with the same action may be triggered repeatedly. In addition, Move to preset, Patrol, Auto pan, and Auto object tracking (each related to camera control) are treated as the same kind of action.
- If CMS is enabled, you can select a recording server from Server as well as devices connected to the recording server.
- External events are meant for third-party applications, and will be triggered by Web API. Please refer to the External Event section in Surveillance Station Web API for more information on configuring external events.
- When setting up Interruptible action rules related to camera lens control (i.e., Move to preset, Patrol, Auto pan, and Auto object tracking) for Motion Detection events, there is a possibility of an endless loop occurring. When a camera lens is adjusting, it may detect motion and trigger an action rule. If the triggered action rule is Interruptible, then it will be interrupted and a newly triggered action rule will execute. This may cause a loop of interruptible action rules to endlessly trigger. To avoid this, you can change the Action type to Uninterruptible.
To add a scheduled action rule:
- Click Add to create a new action rule.
- Enter a name for the action rule in Name.
- Select Scheduled from Rule type.
- Click Next to continue.
- In the Action window, configure the following parameters that will be used to execute the action rule.
- Action device: Select the action device type used to execute the action rule.
- Server: Select which server the action device is connected to.
- Device: Select the specific device used to execute the action rule.
- Action: Select the type of action used to be executed. Depending on the selected action, additional parameters will be available for configuration.
Note: You can click Add to add more actions. To cancel any actions, click Delete to select the actions to delete.
- Click Next to continue.
- In the Schedule window, determine when this action rule will be active by selecting cells on the grid. You can select an entire day by clicking on a day and a specific time by clicking on the hour.
- Click Finish to save the action rule.
Note:
- You can set at most five actions for any one action rule. These actions will be triggered at the same time by the event of the action rule.
- When a new action rule is being added, if any devices involved in the action rule are disabled, the rule will be saved as Invalid or Partial Invalid.
- If CMS is enabled, you can select a recording server from Server as well as devices connected to the recording server.
- External events are meant for third-party applications, and will be triggered by Web API. Please refer to the External Event section in Surveillance Station Web API for more information on configuring external events.
- Start recording is not available for scheduled action rules. Please go to IP Camera > Recording Settings > Schedule to set up scheduled recording.
To edit an action rule:
- Select an action rule from the list and click Edit.
- Modify settings in any of the Rule Information, Event, Action, and Schedule tabs.
- Click OK to save your changes.
To enable/disable an action rule:
- Select an action rule from the list.
- From the Enable drop-down menu, click Enable to enable the selected action rule or Disable to disable the selected action rule.
To delete an action rule:
- Select an action rule from the list and click Delete to delete the selected action rule.
- A confirmation prompt will appear. Click Yes to continue.
Action Rule Status
Surveillance Station displays three unique statuses for action rules when the action rules are not functioning normally.
- Disabled: The action rule will not be executed. Action rules will be disabled when the user manually disables the action rule.
- Invalid: All actions in the action rule will not be executed. The statuses of the event device or action devices/items for all actions are abnormal.
- Partial Invalid: The statuses of some action devices/items are abnormal. Valid actions will still run, while the invalid actions will not be executed.
Action Rule Priority
- Triggered rules have higher priority than scheduled rules.
- User operations in Live View have higher priority than action rules.
- If a user performs an operation in Live View that is the same action an action rule is currently executing, the action rule will be interrupted.
- Triggered action rules will be ignored if triggered by user operations in Live View.
Note:
- Except for PTZ operations executed in Patrol, the execution time for PTZ operations is treated as 10 seconds.
Device Status Changes
The following section describes various action rule behaviors for device status changes.
- When a device in use is deleted from Surveillance Station:
- The action rule will be deleted if the device was used to configure an event.
- The action rule status will change to Invalid if the device was used to configure an action.
- When a preset position/patrol path/audio pattern in use is deleted, the action rule status will change to Invalid.
- When the camera model is changed, the status of certain action rules using the new camera model will change to Invalid.
- When an action rule is functioning normally, i.e., the status is not Disabled or Invalid, and the event or action in use is anything other than Enable or Disable:
- Disabling a recording server in use will change the corresponding action rule status to Invalid.
- Enabling a recording server will change the corresponding action rule status back to normal.
- Once an action rule is disabled by a user:
- The action rule status will not be changed when the corresponding device in use is enabled or disabled.
Note:
- In the case above, we assume that the action rule was set with only one action, and the action rule's status will thus change to Invalid upon device status changes.
- Upon device status changes, if the action rule was set with multiple actions, it will show:
- Invalid: when all actions are invalid.
- Partial Invalid: when only some actions are still valid.