In this section we can create rules which will trigger certain actions, e.g. activate an alarm output when someone force opens door or send an e-mail to manager when one of the devices goes offline.
This feature is licensed and requires purchase of additional module.
Basically filters are the events or entities in CredoID that will act as a triggers.
A few examples of filters:
Click Add or select one of created rules from the list to open trigger configuration menu.
To create a new trigger filter
click Create filter button which is located in Trigger
section, top right side of the screen.
If any filter is selected there will be Edit filter button available instead.
Enter filter name and then select events or entitites to act as a trigger, click ‘>’ to move it to Selected
field and click Save.
In this example it's Door forced open
event from Event types
.
Filter
is created and can be selected from the list.
Action selection menu is shown after clicking Add button in “Actions” section.
Actions can be selected by using Search
function or by navigating through menu.
First of all - add a new rule or select an existing one from the list, rule configuration menu will open on the right side of the screen.
In Trigger
section enter name of the trigger, select filter from the list and then you can add an action to your rule by clicking Add in Actions section.
Select desired actions. In this example we will use Turn on output
action.
To filter which output or outputs are used in the action, click Create filter button.
Enter filter name i.e., "op1" and then select output or outputs, click ‘>’ to move it to Selected
field and click Save.
Filter for the action is created and can be selected from the list.
Apply your created filter and click Save.
To create a new rule, click Add.
Create a new trigger filter or select existing one.
Add action "Send e-mail". In the “Actions” section click Add → CredoID → Send e-mail.
Fields will use global configuration of your e-mail if you have set them in "Settings → General → Notifications". Otherwise, fields will be empty.
You can also use individual e-mail settings for each action i.e, if you want to send e-mail for certain action from different e-mail provider.
Fill in required fields.
Global e-mail configuration can be done in "Settings → General → Notifications"
Outgoing e-mail configuration like SMTP and SSL/TLS is provided by your e-mail provider.
You can add variables to e-mail template or to a subject line - click icon in bottom right corner of “Send e-mail” section.
Variables are also used in HTTP Triggers
.
Variables can be used to pass various information such as device name
, timestamp
, first&last name
, event type
etc.
In example, rule where e-mail is sent when doors are forced open - in the e-mail template, using variables, you can specify which doors was it, exact time when it happened etc.
To send a custom HTTP request when specific event is triggered firstly you need to create a trigger filter.
After creating filter you need to add HTTP Request as an action.
Select "CredoID" and then "HTTP request".
Now you need to configure HTTP request that will be sent when specific event is triggered.
Select Method
, enter Endpoint URL
and add needed Parameter/Header
keys(arguments) and their values. Also, Body
can be added as well.
Required details for HTTP Requests, if not publicly available, should be obtained through authorized sources.
In this example I'm using GET method to trigger a global event with attached message in "Digifort surveillance client". This HTTP Request will be triggered everytime "Door forced open" event is generated in "CredoID". This request also requires authentication, so I've added "AuthUser" and "AuthPass" keys.