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.
- 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:
- When creating new action rules, if any devices in use by the rule are disabled, the rule will be saved as Disabled.
- If any devices in use by the rule are disabled, the rule cannot be enabled.
- 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.
- 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:
- When creating new action rules, if any devices in use by the rule are disabled, the rule will be saved as Disabled.
- If any devices in use by the rule are disabled, the rule cannot be enabled.
- 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 two 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 if any corresponding devices in use are disabled, or when the user manually disables the action rule.
- Invalid: The action rule will not be executed. This status indicates there may be some errors. Action rules cannot be enabled or disabled in this state, and can only be edited or deleted.
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 describes various action rule behavior 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 due to camera capabilities possibly being different. This behavior applies to the following event and action types:
- Event: Alarm detected, Audio detected, Tampering detected
- Action: Move to preset, Patrol, Auto pan, Auto object tracking, Audio output, Digital output
- 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:
- Enabling or disabling any camera/door/access controller in use will also enable or disable the corresponding action rule.
- 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.
- Disabling a recording server will change the action rule status to Invalid.
- Enabling a recording server will change the action rule status to Disabled.